firefly-iii/resources/views/profile/change-password.twig
2022-10-23 17:36:26 +02:00

70 lines
3.1 KiB
Twig

{% extends './layout/default' %}
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
{% endblock %}
{% block content %}
<form method="POST" action="{{ route('profile.change-password.post') }}" accept-charset="UTF-8" class="form-horizontal" id="change-password">
<input name="_token" type="hidden" value="{{ csrf_token() }}">
<div class="row">
<div class="col-lg-6 col-md-12 col-sm-12">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">{{ 'change_your_password'|_ }}</h3>
</div>
<div class="box-body">
{% if errors|length > 0 %}
<ul>
{% for error in errors.all %}
<li class="text-danger">{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
<div class="form-group">
<label for="inputOldPassword" class="col-sm-4 control-label">{{ 'current_password'|_ }}</label>
<div class="col-sm-8">
<input type="password" class="form-control" id="inputOldPassword" placeholder="{{ 'current_password'|_ }}" spellcheck="false"
name="current_password">
</div>
</div>
<div class="form-group">
<label for="inputNewPassword1" class="col-sm-4 control-label">{{ 'new_password'|_ }}</label>
<div class="col-sm-8">
<input type="password" class="form-control" id="inputNewPassword1" placeholder="{{ 'new_password'|_ }}" name="new_password" spellcheck="false">
</div>
</div>
<div class="form-group">
<label for="inputNewPassword2" class="col-sm-4 control-label">{{ 'new_password_again'|_ }}</label>
<div class="col-sm-8">
<input type="password" class="form-control" id="inputNewPassword2" placeholder="{{ 'new_password_again'|_ }}" spellcheck="false"
name="new_password_confirmation">
</div>
</div>
{{ ExpandedForm.checkbox('verify_password','1', true) }}
<p>
<a data-toggle="modal" data-target="#passwordModal" href="#passwordModal">{{ 'what_is_pw_security'|_ }}</a>
</p>
</div>
<div class="box-footer">
<button type="submit" class="btn btn-success pull-right">{{ 'change_your_password'|_ }}</button>
</div>
</div>
</div>
</div>
</form>
{% include 'partials.password-modal' %}
{% endblock %}