mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Add renew password template
This commit is contained in:
58
templates/web/login/renew-password.html.twig
Normal file
58
templates/web/login/renew-password.html.twig
Normal file
@@ -0,0 +1,58 @@
|
||||
{% extends "login/layout/sidebar-layout.html.twig" %}
|
||||
|
||||
{% import "login/common/macros.html.twig" as auth_macro %}
|
||||
|
||||
{% block title %}
|
||||
{% trans "Renew password" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
<div class="well-large sidebar-block">
|
||||
<div class="row-fluid">
|
||||
<div class="span12 authentication-sidebar-title">
|
||||
<div class="text-title">
|
||||
{% trans "Choose a new password" %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
{{ auth_macro.flashes() }}
|
||||
<form
|
||||
ng-controller="passwordRenewFormCtrl"
|
||||
novalidate
|
||||
name="passwordRenewForm"
|
||||
ng-submit="submit();"
|
||||
method="POST"
|
||||
action="{{ path('login_renew_password') }}"
|
||||
check-form-submission
|
||||
>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
{{ auth_macro.fieldInput(form.password, "passwordRenewForm", 'icon-lock') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
{{ auth_macro.fieldInput(form.passwordConfirm, "passwordRenewForm", 'icon-lock', {
|
||||
"ui-validate" : " '$value==" ~ form.password.vars.name ~ "' ",
|
||||
"ui-validate-watch" : "'" ~ form.password.vars.name ~ "'"
|
||||
}, {
|
||||
"validate_message" : "Passwords do not match"|trans
|
||||
})
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
{{ form_rest(form) }}
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<button type="submit" class="btn btn-success btn-trigger ">
|
||||
{% trans "Save" %}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user