-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace hardcoded forms with symfony forms
- Loading branch information
Showing
11 changed files
with
238 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 10 additions & 14 deletions
24
src/Resources/views/Admin/Security/Resetting/request.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
{% extends '@NucleosUserAdmin/Admin/Security/layout.html.twig' %} | ||
|
||
{% form_theme form 'bootstrap_3_layout.html.twig' %} | ||
|
||
{% block login_box_content %} | ||
<p class="login-box-msg"> | ||
{{ 'resetting.request.submit'|trans({}, 'NucleosUserBundle') }} | ||
</p> | ||
|
||
<form action="{{ path('nucleos_user_admin_resetting_send_email') }}" method="post" role="form"> | ||
<div class="form-group has-feedback"> | ||
<input type="text" class="form-control" id="username" name="username" required="required" | ||
placeholder="{{ 'resetting.request.username'|trans({}, 'NucleosUserBundle')|replace({':': ''}) }}"/> | ||
<span class="glyphicon glyphicon-user form-control-feedback"></span> | ||
</div> | ||
{{ form_start(form) }} | ||
|
||
{% set actions %}{{ form_widget(form.save, { attr: { class: 'btn btn-primary btn-block' } }) }}{% endset %} | ||
|
||
{{ form_widget(form) }} | ||
|
||
{{ actions }} | ||
|
||
<div class="row"> | ||
<div class="col-xs-12"> | ||
<button type="submit" class="btn btn-primary btn-block btn-flat"> | ||
{{ 'resetting.request.submit'|trans({}, 'NucleosUserBundle') }} | ||
</button> | ||
</div> | ||
</div> | ||
</form> | ||
{{ form_end(form) }} | ||
{% endblock %} |
10 changes: 8 additions & 2 deletions
10
src/Resources/views/Admin/Security/Resetting/reset.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
{% extends '@NucleosUserAdmin/Admin/Security/layout.html.twig' %} | ||
|
||
{% form_theme form 'bootstrap_3_layout.html.twig' %} | ||
|
||
{% block login_box_content %} | ||
<p class="login-box-msg"> | ||
{{ 'resetting.reset.submit'|trans({}, 'NucleosUserBundle') }} | ||
</p> | ||
|
||
{{ form_start(form, { 'action': path('nucleos_user_admin_resetting_reset', {'token': token}) }) }} | ||
{{ form_start(form) }} | ||
|
||
{% set actions %}{{ form_widget(form.save, { attr: { class: 'btn btn-primary btn-block' } }) }}{% endset %} | ||
|
||
{{ form_widget(form) }} | ||
|
||
{{ actions }} | ||
|
||
{{ form_end(form) }} | ||
{% endblock sonata_wrapper %} | ||
{% endblock login_box_content %} |
Oops, something went wrong.