]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/osqaadmin/maintenance.html
enabling the CSRF protection middleware and adding the {% csrf_token %} tag to the...
[osqa.git] / forum / skins / default / templates / osqaadmin / maintenance.html
1 {% extends basetemplate %}
2
3 {% load i18n %}
4
5 {% block subtitle %}{% trans "Maintenance mode" %}{% endblock %}
6 {% block pagename %}{% trans "Maintenance mode" %}{% endblock %}
7 {% block description %}{% trans "Maintainance mode allows you to close your site for maintainance, allowing only a predetermined set of ip addresses to access it normally." %}{% endblock %}
8
9 {% block admincontent %}
10 <form method="POST" action="">
11     {% csrf_token %}
12     {% if in_maintenance %}
13         <h1>{% trans "Your site is currently running on maintenance mode." %}</h1>
14         <p>{% trans "You can adjust the settings bellow" %}</p>
15     {% endif %}
16     <table>
17     {{ form.as_table }}
18     </table>
19     {% if in_maintenance %}
20         <input type="submit" name="adjust" value="{% trans "Adjust settings" %}" />
21         <input type="submit" name="open" value="{% trans "Open site" %}" />
22     {% else %}
23         <input type="submit" name="close" value="{% trans "Close for maintenance" %}" />
24     {% endif %}
25 </form>
26 {% endblock %}