summaryrefslogtreecommitdiff
path: root/templates/changepw/change_other_m.html
blob: df30d9d4a854904328bc40eb31a486d46affc78b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% extends "base_m.html" %}
{% block js %}
{% endblock %}
{% block title %}Change other{% endblock %}

{% block header %}<h1>Change other</h1>{% endblock %}

{% block content %}
<h2>Change other</h2>
{% if return_value == None %}
    <form action="{% url changeother %}" method="post" autocomplete="off">{% csrf_token %}
        <table>
            <tr>
                <td class="formlabel">Some input:</td>
            </tr>
            <tr>
                <td class="formfield">
                    <textarea name="change_input" cols="50" rows="10"></textarea>
                </td>
            </tr>
            <tr>
                <td class="formbutton"><input type="submit" value="Submit" /></td>
            </tr>
        </table>
    </form>
{% else %}
    {% if return_value == 0 %}
            <p>Updated successfully.</p>
        {% else %}
        <p>Something went wrong. Please contact an administrator.</p>
        <p>Return code: {{ return_value }}</p>
    {% endif %}
{% endif %}
{% endblock %}

{% block footer %}
<a href="{% url index %}" data-role="button" data-icon="back">Back</a>
<a href="{% url logout %}" rel="external" data-role="button" data-icon="delete">Log out</a>
{% endblock %}