Source

iredadmin-ose / templates / default / ldap / admin_profile.html

{# defined: cur_lang, langmaps #}

{% extends "layout.html" %}

{% block js_tablesorter %}{% endblock %}
{% block title %}{{ _('Preferences') }}{% endblock %}
{% block submenu %}{% endblock submenu %}

{% block main %}
<div class="main-subhead">
    <h2 class="hn"><span>
            {% if admin == session.get('username') or admin is not defined %}
            {{ _('View/Update your preferences.') }}
            {% else %}
            {{ _("View/Update %s's preferences.") |format(admin) }}
            {% endif %}
    </span></h2>
</div>

{% if msg is not none %}
    {% if msg is sameas true %}
        <div class="main-submenu"><span class="success">{{ _('Changes are saved.') }}</span></div>
    {% endif %}
{% endif %}

<div class="frm parted">
    <form class="frm-form" method="post" action="{{ctx.homepath}}/preferences">
        <div class="content-head">
            <h2 class="hn"><span>{{ _('Default language') }}</span></h2>
        </div>

        <fieldset class="sf-set">
            <legend><span>{{ _('Default language') }}</span></legend>
            <div class="sf-box select">
                <label><span>{{ _('Default language') }}</span></label>
                <span class="fld-input">
                    <select name="preferredLanguage">
                        {% for lang in langmaps %}
                            <option value="{{lang}}" {% if lang == cur_lang %}selected{%endif%}>{{langmaps[lang]}}</option>
                        {% endfor %}
                    </select>
                </span>
            </div>
        </fieldset>

        <div class="content-head">
            <h2 class="hn"><span>{{ _('Change password') }}</span></h2>
        </div>
        <div class="sf-set">
            <div class="sf-box text">
                <label><span>{{ _('Current password') }}</span></label><br />
                <span class="fld-input"><input type="password" id="cur_passwd" name="cur_passwd" size="25" /></span>
            </div>

            <div class="sf-box text">
                <label><span>{{ _('New password') }}</span></label><br />
                <span class="fld-input"><input type="password" name="newpw" size="25" /></span>
            </div>

            <div class="sf-box text">
                <label><span>{{ _('Retype new password') }}</span></label><br />
                <span class="fld-input"><input type="password" name="confirmpw" size="25" /></span>
            </div>
        </div>

        <div class="frm-buttons">
            <span class="submit"><input type="submit" value="{{ _('Save changes') }}" /></span>
        </div>
    </form>
</div>
{% endblock main %}