sticky submit and reset buttons ref #336

This commit is contained in:
Marc Ducobu 2014-11-18 09:35:06 +01:00
parent d86b5d1921
commit c3fc6295cc
3 changed files with 16 additions and 8 deletions

View File

@ -192,8 +192,6 @@ class ReportController extends Controller
'cFGroup' => $cFGroup,
));
$form->add('submit', 'submit', array('label' => 'Create'));
return $form;
}
@ -264,8 +262,6 @@ class ReportController extends Controller
'cFGroup' => $entity->getCFGroup(),
));
$form->add('submit', 'submit', array('label' => 'Update'));
return $form;
}

View File

@ -21,7 +21,12 @@
{% block title %}{{ 'Edition du rapport' |trans() }}{% endblock title %}
{% block personcontent %}
{{ form_start(edit_form) }}
{{ form(edit_form) }}
{{ form_widget(edit_form) }}
<div class="grid-12 centered sticky-form-buttons">
<button class="sc-button green" type="submit"><i class="fa fa-save"></i> Save</button>
<button class="sc-button red" type="reset"><i class="fa fa-eraser"></i>Reset</button>
</div>
{{ form_end(edit_form) }}
{% endblock %}

View File

@ -21,5 +21,12 @@
{% block title %}{{ 'Ajout d\' un rapport' |trans() }}{% endblock title %}
{% block personcontent %}
{{ form(form) }}
{{ form_start(form) }}
{{ form_widget(form) }}
<div class="grid-12 centered sticky-form-buttons">
<button class="sc-button green" type="submit"><i class="fa fa-save"></i> Save</button>
<button class="sc-button red" type="reset"><i class="fa fa-eraser"></i>Reset</button>
</div>
{{ form_end(form) }}
{% endblock %}