promote "Share" to main navigation
[mygpo.git] / mygpo / web / templates / device-edit.html
blobfce4169b85c3260bd6802e0f8cf9337cc11f1db9
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load humanize %}
4 {% load devices %}
5 {% load podcasts %}
7 {% load menu %}
8 {% block mainmenu %}{{ "/subscriptions/"|main_menu }}{% endblock %}
9 {% block sectionmenu %}{{ "/device/"|section_menu:device.name }}{% endblock %}
11 {% block title %}{% blocktrans with device.name|striptags as devicename %}Device {{ devicename }}{% endblocktrans %}{% endblock %}
13 {% block content %}
14 <h1>{{ device.name|striptags }}</h1>
15 <hr/>
17 <a href="/device/{{ device.id }}">{% trans "Back to" %} {{ device|device_icon }} {{device|striptags}}</a>
19 {% if device.deleted %}<div class="info">{% trans "This device was deleted." %}</div>{% endif %}
21 {% if not device.deleted %}
24 <h2>{% trans "Edit" %}</h2>
25 {% if success %}
26 <div class="success">{% trans "Your settings have been saved." %}</div>
27 {% endif %}
29 <form action="" method="POST">
30 {% csrf_token %}
31 <table class="form">
32 {{ device_form.as_table }}
33 <tr>
34 <td></td>
35 <td>
36 <input type="submit" value="Save" />
37 </td>
38 </tr>
39 </table>
40 </form>
42 <h2>{% trans "Delete" %}</h2>
43 <form action="/device/{{ device.id }}/delete" method="POST">
44 {% csrf_token %}
45 <input type="submit" value="{% trans "Delete this device" %}" />
46 </form>
47 <br />
48 {% endif %}
49 <div class="info">The <strong>Device ID</strong> connects your physical device with this page, so you should enter the same text on your device and here.</div>
51 {% endblock %}