fix "create" page with translation and layout

This commit is contained in:
Julien Fastré 2015-11-05 22:41:54 +01:00
parent 9d65ca5088
commit bb1e690bec
3 changed files with 16 additions and 16 deletions

View File

@ -4,6 +4,7 @@
Custom fields configuration: Configuration des champs personnalisés
CustomFieldsGroup list: Groupes de champs personnalisés
CustomFieldsGroup creation: Nouveau groupe de champs personnalisés
Entity: Entité
"Is default ?": "Par défaut ?"
"Some module select default groups for some usage. Example: the default person group is shown under person page.": "Certains modules sélectionnent en priorité les formulaires par défaut. Exemple: le formulaire par défaut pour une personne est affiché sur la page principale pour la personne"

View File

@ -57,11 +57,9 @@
</tbody>
</table>
<ul>
<li>
<a href="{{ path('customfieldsgroup_new') }}">
{{ 'Create a new group'|trans }}
</a>
</li>
</ul>
<p>
<a href="{{ path('customfieldsgroup_new') }}" class="sc-button bt-create">
{{ 'Create a new group'|trans }}
</a>
</p>
{% endblock %}

View File

@ -17,15 +17,16 @@
{% extends "ChillCustomFieldsBundle::Admin/layout.html.twig" %}
{% block admin_content %}
<h1>CustomFieldsGroup creation</h1>
<h1>{{ 'CustomFieldsGroup creation'|trans }}</h1>
{{ form(form) }}
<ul class="record_actions">
<li>
<a href="{{ path('customfieldsgroup') }}">
Back to the list
{{ form_start(form) }}
{{ form_row(form.name) }}
{{ form_row(form.entity) }}
<p>
{{ form_widget(form.submit, { 'attr' : { 'class': 'sc-button bt-create' } } ) }}
<a href="{{ path('customfieldsgroup') }}" class="sc-button bt-cancel">
{{ 'Back to the list'|trans }}
</a>
</li>
</ul>
</p>
{{ form_end(form) }}
{% endblock %}