mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 14:24:24 +00:00
sticky submit and reset buttons ref #336
This commit is contained in:
parent
d86b5d1921
commit
c3fc6295cc
@ -192,8 +192,6 @@ class ReportController extends Controller
|
|||||||
'cFGroup' => $cFGroup,
|
'cFGroup' => $cFGroup,
|
||||||
));
|
));
|
||||||
|
|
||||||
$form->add('submit', 'submit', array('label' => 'Create'));
|
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -264,8 +262,6 @@ class ReportController extends Controller
|
|||||||
'cFGroup' => $entity->getCFGroup(),
|
'cFGroup' => $entity->getCFGroup(),
|
||||||
));
|
));
|
||||||
|
|
||||||
$form->add('submit', 'submit', array('label' => 'Update'));
|
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +21,12 @@
|
|||||||
{% block title %}{{ 'Edition du rapport' |trans() }}{% endblock title %}
|
{% block title %}{{ 'Edition du rapport' |trans() }}{% endblock title %}
|
||||||
|
|
||||||
{% block personcontent %}
|
{% 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 %}
|
{% endblock %}
|
||||||
|
@ -21,5 +21,12 @@
|
|||||||
{% block title %}{{ 'Ajout d\' un rapport' |trans() }}{% endblock title %}
|
{% block title %}{{ 'Ajout d\' un rapport' |trans() }}{% endblock title %}
|
||||||
|
|
||||||
{% block personcontent %}
|
{% block personcontent %}
|
||||||
{{ form(form) }}
|
{{ form_start(form) }}
|
||||||
{% endblock %}
|
|
||||||
|
{{ 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 %}
|
Loading…
x
Reference in New Issue
Block a user