1 {% extends
"base.html" %}
2 {% load url from future %}
9 {% block mainmenu %}{{
"/subscriptions/"|main_menu }}{% endblock %}
10 {% block sectionmenu %}{{
"/device/"|section_menu:device.name }}{% endblock %}
12 {% block title %}{% blocktrans with device.name|striptags as devicename %}Device {{ devicename }}{% endblocktrans %}{% endblock %}
15 <h1>{{ device.name|striptags }}
</h1>
17 <a href=
"{% url "device
" device.uid %}">{% trans
"Back to" %} {{ device|device_icon }} {{device|striptags}}
</a>
23 {% if device.deleted %}
<div class=
"info">{% trans
"This device was deleted." %}
</div>{% endif %}
25 {% if not device.deleted %}
28 <h2>{% trans
"Edit" %}
</h2>
29 <form class=
"form-horizontal" action=
"{% url "device-update
" device.uid %}" method=
"POST">
31 {{ device_form.non_field_errors }}
36 <div class=
"control-group">
37 <label class=
"control-label">Name
</label>
38 <div class=
"controls">
39 {{ device_form.name }}
43 <div class=
"control-group">
44 <label class=
"control-label">Type
</label>
45 <div class=
"controls">
46 {{ device_form.type }}
50 <div class=
"control-group">
51 <label class=
"control-label">Device-ID
53 <div class=
"controls">
55 <p class=
"help-block">use the same in your client
</p>
59 <div class=
"control-group">
60 <div class=
"controls">
61 <button class=
"btn" type=
"submit">{% trans
"Save" %}
</button>
69 <h2>{% trans
"Replace Subscriptions" %}
</h2>
70 <form class=
"form-inline" method=
"post" action=
"{% url "device-upload-opml
" device.uid %}" enctype=
"multipart/form-data">
71 <p>{% trans
"Replace your current subscriptions by uploading an OPML file." %}
</p>
74 <input type=
"file" class=
"input-xlarge" name=
"opml" id=
"opml" />
76 <button class=
"btn" type=
"submit">{% trans
"Upload" %}
</button>
81 <h2>{% trans
"Delete" %}
</h2>
82 <form action=
"{% url "device-delete
" device.uid %}" method=
"POST">
84 <button class=
"btn btn-danger" type=
"submit">
85 <i class=
"icon-trash"></i> {% trans
"Delete Device" %}
96 {% if not device.deleted %}
100 <h4>{% trans
"Synchronize" %}
</h4>
101 <p>{% blocktrans %}If you synchronize devices, they will always have the same subscriptions. A podcast that is subscribed on one device, will automatically be added to all synchronized devices.{% endblocktrans %}
</p>
103 {% if synced_with|length_is:
"0" %}
105 <p>{% blocktrans with device.name|striptags as devicename %}{{ devicename }} is currently not synchronized with other devices.{% endblocktrans %}
</p>
109 <p>{% blocktrans with device.name|striptags as devicename and synced_with|device_list as synclist %}{{ devicename }} is currently synchronized with {{ synclist }}.{% endblocktrans %}
</p>
110 <a href=
"{% url "device-unsync
" device.uid %}">{% blocktrans with device.name|striptags as devicename %}Stop synchronisation for {{ devicename }} {% endblocktrans %}
</a>
114 {% if has_sync_targets %}
115 <form action=
"{% url "device-sync
" device.uid %}" method=
"POST">
118 <button class=
"btn" type=
"submit">{% trans
"Synchronize" %}
</button>