[UI] set action button bottom of edit form according to crud template

This commit is contained in:
Julien Fastré 2020-02-03 13:03:04 +01:00
parent 5154039182
commit ceb3b5e955
2 changed files with 12 additions and 4 deletions

View File

@ -74,3 +74,6 @@ Version 1.5.8
CRUD-init branch CRUD-init branch
================ ================
- create CRUD
- add the ability to add alt names to persons
- [UI] set action button bottom of edit form according to crud template

View File

@ -92,14 +92,19 @@
{{ form_rest(form) }} {{ form_rest(form) }}
<div class="grid-12 centered sticky-form-buttons">
<ul class="grid-12 sticky-form-buttons record_actions ">
<li class="cancel">
<a href="{{ path('chill_person_view', {'person_id' : person.id}) }}" class="sc-button grey center margin-5"> <a href="{{ path('chill_person_view', {'person_id' : person.id}) }}" class="sc-button grey center margin-5">
<i class="fa fa-arrow-left"></i> <i class="fa fa-arrow-left"></i>
{{ 'Return'|trans }} {{ 'Return'|trans }}
</a> </a>
<button class="sc-button green center margin-5" type="submit"><i class="fa fa-save"></i> {{ 'Submit'|trans }}</button> </li>
<button class="sc-button red center margin-5" type="reset"><i class="fa fa-eraser"></i> {{ 'Reset'|trans }}</button> <li>
</div> <button class="sc-button bt-save" type="submit">{{ 'Save'|trans }}</button>
</li>
</ul>
{{ form_end(form) }} {{ form_end(form) }}