improve layout of activity type form

This commit is contained in:
Julien Fastré 2016-11-15 14:32:11 +01:00
parent 5dda66342a
commit 9f3cdfdff8
2 changed files with 28 additions and 18 deletions

View File

@ -20,15 +20,21 @@
<h1>{{ 'ActivityType edit'|trans }}</h1> <h1>{{ 'ActivityType edit'|trans }}</h1>
{{ form_start(edit_form) }} {{ form_start(edit_form) }}
{{ form_row(edit_form.active) }}
{{ form_row(edit_form.name) }} {{ form_row(edit_form.name) }}
{{ form_row(edit_form.submit, { 'attr' : { 'class' : 'sc-button orange' } } ) }}
{{ form_end(edit_form) }}
<ul class="record_actions"> <ul class="record_actions">
<li> <li>
<a href="{{ path('chill_activity_activitytype') }}"> <a href="{{ path('chill_activity_activitytype') }}">
{{ 'Back to the list'|trans }} {{ 'Back to the list'|trans }}
</a> </a>
</li> </li>
</ul> <li>
{{ form_widget(edit_form.submit, { 'attr' : { 'class' : 'sc-button bt-update' } } ) }}
</li>
</ul>
{{ form_end(edit_form) }}
{% endblock %} {% endblock %}

View File

@ -20,15 +20,19 @@
<h1>{{ 'ActivityType creation'|trans }}</h1> <h1>{{ 'ActivityType creation'|trans }}</h1>
{{ form_start(form) }} {{ form_start(form) }}
{{ form_row(form.active) }}
{{ form_row(form.name) }} {{ form_row(form.name) }}
{{ form_row(form.submit, { 'attr' : { 'class' : 'sc-button blue' } } ) }}
<ul class="record_actions">
<li>
<a href="{{ path('chill_activity_activitytype') }}">
{{ 'Back to the list'|trans }}
</a>
</li>
<li>
{{ form_widget(form.submit, { 'attr' : { 'class' : 'sc-button blue' } } ) }}
</li>
</ul>
{{ form_end(form) }} {{ form_end(form) }}
<ul class="record_actions">
<li>
<a href="{{ path('chill_activity_activitytype') }}">
{{ 'Back to the list'|trans }}
</a>
</li>
</ul>
{% endblock %} {% endblock %}