mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-03 12:10:55 -06:00
d9f6baac72
- Using the 'gettext' as oppose to '_', which is not defined - Define missing variables - Fixed escape character in string with double quote - Removed some dead code in a test case - Removed unnecessary self assignment Includes some fixes for Accessibility improvements - Use semantic markup to mark emphasized or special text - Added hidden legend in <fieldset> for better screen reader support
31 lines
1.6 KiB
HTML
31 lines
1.6 KiB
HTML
{% extends "base.html" %}
|
|
{% from "security/fields.html" import render_field_with_errors %}
|
|
{% block body %}
|
|
<div class="container-fluid change_pass">
|
|
{% include "security/messages.html" %}
|
|
<div class="row align-items-center h-100">
|
|
<div class="col-md-4"></div>
|
|
<div class="col-md-4">
|
|
<div class="panel-header h4"><i class="app-icon pg-icon-blue" aria-hidden="true"></i> {{ _('%(appname)s', appname=config.APP_NAME) }}</div>
|
|
<div class="panel-body">
|
|
<div class="d-block text-color pb-3 h5">{{ _('Password Change') }}</div>
|
|
{% if config.SERVER_MODE %}
|
|
<form action="{{ url_for('browser.change_password') }}" method="POST" name="change_password_form">
|
|
{{ change_password_form.hidden_tag() }}
|
|
<fieldset>
|
|
<legend class="skip-navigation">{{ _('Change Password Form') }}</legend>
|
|
{{ render_field_with_errors(change_password_form.password, "password") }}
|
|
{{ render_field_with_errors(change_password_form.new_password, "password") }}
|
|
{{ render_field_with_errors(change_password_form.new_password_confirm, "password") }}
|
|
<input class="btn btn-primary btn-block btn-change-pass" type="submit" value="{{ _('Change Password') }}"
|
|
title="{{ _('Change Password') }}">
|
|
</fieldset>
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4"></div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|