1 {% extends
"base.html" %}
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 %}
14 <h1>{{ device.name|striptags }}
</h1>
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>
26 <div class=
"success">{% trans
"Your settings have been saved." %}
</div>
29 <form action=
"" method=
"POST">
32 {{ device_form.as_table }}
36 <input type=
"submit" value=
"Save" />
42 <h2>{% trans
"Delete" %}
</h2>
43 <form action=
"/device/{{ device.id }}/delete" method=
"POST">
45 <input type=
"submit" value=
"{% trans "Delete this device
" %}" />
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>