moin-2.0 / MoinMoin / templates / usersettings_forms.html

{% import "forms.html" as forms %}

{% macro personal(form) %}
{{ gen.form.open(form, method="post", action=url_for('frontend.usersettings')) }}
{{ forms.render_errors(form) }}
<dl>
    {{ forms.render(form['name']) }}
    {{ forms.render(form['display_name']) }}
    {{ forms.render(form['openid']) }}
    {{ forms.render(form['timezone']) }}
    {{ forms.render(form['locale']) }}
</dl>
{{ forms.render_hidden('part', 'personal') }}
{{ forms.render_submit(form) }}
{{ gen.form.close() }}
{% endmacro %}


{% macro password(form) %}
{{ gen.form.open(form, method="post", action=url_for('frontend.usersettings')) }}
{{ forms.render_errors(form) }}
<dl>
    {{ forms.render(form['password_current']) }}
    {{ forms.render(form['password1']) }}
    {{ forms.render(form['password2']) }}
</dl>
{{ forms.render_hidden('part', 'password') }}
{{ forms.render_submit(form) }}
{{ gen.form.close() }}
{% endmacro %}

{% macro notification(form) %}
{{ gen.form.open(form, method="post", action=url_for('frontend.usersettings')) }}
{% if cfg.user_email_verification %}
<p>{{ _("Changing your email address requires you to verify it. A link will be sent to you.") }}</p>
{% endif %}
{{ forms.render_errors(form) }}
<dl>
    {{ forms.render(form['email']) }}
</dl>
{{ forms.render_hidden('part', 'notification') }}
{{ forms.render_submit(form) }}
{{ gen.form.close() }}
{% endmacro %}

{% macro ui(form) %}
{{ gen.form.open(form, method="post", action=url_for('frontend.usersettings')) }}
{{ forms.render_errors(form) }}
<dl>
    {{ forms.render(form['theme_name']) }}
    {{ forms.render(form['css_url']) }}
    {{ forms.render(form['edit_rows']) }}
    {{ forms.render(form['results_per_page']) }}
</dl>
{{ forms.render_hidden('part', 'ui') }}
{{ forms.render_submit(form) }}
{{ gen.form.close() }}
{% endmacro %}

{% macro navigation(form) %}
{{ gen.form.open(form, method="post", action=url_for('frontend.usersettings')) }}
{{ forms.render_errors(form) }}
<dl>
    {# TODO: find a good way to handle quicklinks #}
</dl>
{{ forms.render_hidden('part', 'navigation') }}
{{ forms.render_submit(form) }}
{{ gen.form.close() }}
{% endmacro %}

{% macro options(form) %}
{{ gen.form.open(form, method="post", action=url_for('frontend.usersettings')) }}
{{ forms.render_errors(form) }}
<dl>
    {{ forms.render(form['mailto_author']) }}
    {{ forms.render(form['edit_on_doubleclick']) }}
    {{ forms.render(form['scroll_page_after_edit']) }}
    {{ forms.render(form['show_comments']) }}
    {{ forms.render(form['disabled']) }}
</dl>
{{ forms.render_hidden('part', 'options') }}
{{ forms.render_submit(form) }}
{{ gen.form.close() }}
{% endmacro %}

{% macro subscriptions(form) %}
{{ gen.form.open(form, method="post", action=url_for('frontend.usersettings')) }}
{{ forms.render_errors(form) }}
<dl>
    {{ forms.render(form['subscriptions']) }}
</dl>
{{ forms.render_hidden('part', 'subscriptions') }}
{{ forms.render_submit(form) }}
{{ gen.form.close() }}
{% endmacro %}

{# javascript functions within common.js are dependent upon the structure, classes and ids defined here #}
{% macro all_usersettings_forms(form_objs) %}
<div id="moin-usersettings">
    <div id="personal" class="moin-tab-body moin-form">
        <h2 class="moin-settings-head"><a href="#personal">{{ _("Personal Settings") }}</a></h2>
        {{ personal(form_objs.personal) }}
    </div>
    <div id="password" class="moin-tab-body moin-form">
        <h2 class="moin-settings-head"><a href="#password">{{ _("Change Password") }}</a></h2>
        {{ password(form_objs.password) }}
    </div>
    <div id="notification" class="moin-tab-body moin-form">
        <h2 class="moin-settings-head"><a href="#notification">{{ _("Notification Settings") }}</a></h2>
        {{ notification(form_objs.notification) }}
    </div>
    <div id="ui" class="moin-tab-body moin-form">
        <h2 class="moin-settings-head"><a href="#ui">{{ _("Wiki Appearance Settings") }}</a></h2>
        {{ ui(form_objs.ui) }}
    </div>
    <div id="navigation" class="moin-tab-body moin-form">
        <h2 class="moin-settings-head"><a href="#navigation">{{ _("Navigation Settings") }}</a></h2>
        {{ navigation(form_objs.navigation) }}
    </div>
    <div id="options" class="moin-tab-body moin-form">
        <h2 class="moin-settings-head"><a href="#options">{{ _("Options") }}</a></h2>
        {{ options(form_objs.options) }}
    </div>
    <div id="subscriptions" class="moin-tab-body moin-form">
        <h2 class="moin-settings-head"><a href="#subscriptions">{{ _("Subscriptions") }}</a></h2>
        {{ subscriptions(form_objs.subscriptions) }}
    </div>
</div>
{% endmacro %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.