Skip to content

Commit

Permalink
Use bootstrap 3 layout as default form theme
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Feb 7, 2020
1 parent 40ca359 commit 7562594
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{% trans_default_domain 'NucleosUserBundle' %}

{% form_theme form 'bootstrap_3_horizontal_layout.html.twig' %}

{{ form_start(form, { 'action': path('nucleos_user_change_password'), 'attr': { 'class': 'nucleos_user_change_password' } }) }}
{{ form_widget(form) }}
<div>
<input type="submit" value="{{ 'change_password.submit'|trans }}" />
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<input type="submit" class="btn btn-primary" value="{{ 'change_password.submit'|trans }}"/>
</div>
</div>
{{ form_end(form) }}
8 changes: 6 additions & 2 deletions src/Resources/views/Resetting/reset_content.html.twig
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{% trans_default_domain 'NucleosUserBundle' %}

{% form_theme form 'bootstrap_3_horizontal_layout.html.twig' %}

{{ form_start(form, { 'action': path('nucleos_user_resetting_reset', {'token': token}), 'attr': { 'class': 'nucleos_user_resetting_reset' } }) }}
{{ form_widget(form) }}
<div>
<input type="submit" value="{{ 'resetting.reset.submit'|trans }}" />
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<input type="submit" class="btn btn-primary" value="{{ 'resetting.reset.submit'|trans }}"/>
</div>
</div>
{{ form_end(form) }}

0 comments on commit 7562594

Please sign in to comment.