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>
16 <a href=
"{% url "device
" device.uid %}">{% trans
"Back to" %} {{ device|device_icon }} {{device|striptags}}
</a>
22 {% if device.deleted %}
<div class=
"alert alert-info">{% trans
"This device was deleted." %}
</div>{% endif %}
24 {% if not device.deleted %}
26 <div class=
"panel panel-default">
27 <div class=
"panel-heading">
28 <h2 class=
"panel-title">{% trans
"Edit" %}
</h2>
30 <div class=
"panel-body">
31 <form class=
"form" action=
"{% url "device-update
" device.uid %}" method=
"POST">
33 {{ device_form.non_field_errors }}
36 <div class=
"form-group">
37 <label class=
"control-label">Name
</label>
38 {{ device_form.name }}
41 <div class=
"form-group">
42 <label class=
"control-label">Type
</label>
43 {{ device_form.type }}
46 <div class=
"form-group">
47 <label class=
"control-label">Device-ID
50 <span class=
"help-block">use the same in your client
</span>
53 <button class=
"btn btn-default" type=
"submit">{% trans
"Save" %}
</button>
59 <div class=
"panel panel-default">
60 <div class=
"panel-heading">
61 <h2 class=
"panel-title">{% trans
"Replace Subscriptions" %}
</h2>
63 <div class=
"panel-body">
64 <form class=
"form-inline" method=
"post" action=
"{% url "device-upload-opml
" device.uid %}" enctype=
"multipart/form-data">
65 <p>{% trans
"Replace your current subscriptions by uploading an OPML file." %}
</p>
68 <input type=
"file" class=
"input-xlarge" name=
"opml" id=
"opml" />
70 <button class=
"btn" type=
"submit">{% trans
"Upload" %}
</button>
75 <div class=
"panel panel-danger">
76 <div class=
"panel-heading">
77 <h2 class=
"panel-title">{% trans
"Delete" %}
</h2>
79 <div class=
"panel-body">
80 <form action=
"{% url "device-delete
" device.uid %}" method=
"POST">
82 <button class=
"btn btn-danger" type=
"submit">
83 <i class=
"icon-trash"></i> {% trans
"Delete Device" %}
95 {% if not device.deleted %}
99 <h4>{% trans
"Synchronize" %}
</h4>
100 <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>
102 {% if synced_with|length_is:
"0" %}
104 <p>{% blocktrans with device.name|striptags as devicename %}{{ devicename }} is currently not synchronized with other devices.{% endblocktrans %}
</p>
108 <p>{% blocktrans with device.name|striptags as devicename and synced_with|device_list as synclist %}{{ devicename }} is currently synchronized with {{ synclist }}.{% endblocktrans %}
</p>
109 <a href=
"{% url "device-unsync
" device.uid %}">{% blocktrans with device.name|striptags as devicename %}Stop synchronisation for {{ devicename }} {% endblocktrans %}
</a>
113 {% if has_sync_targets %}
114 <form action=
"{% url "device-sync
" device.uid %}" method=
"POST">
117 <button class=
"btn" type=
"submit">{% trans
"Synchronize" %}
</button>