add placeholder text, autofocus to search page
[mygpo.git] / mygpo / web / templates / device-create.html
blob75f6d10dbc1f6cb6632fc0f37420c0b67dfd9ba6
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 %}{{ "/devices/"|section_menu }}{% endblock %}
11 {% block title %}{% trans "Create Device " %}{% endblock %}
13 {% block header %}
14 <h1>{% trans "Create Device" %}</h1>
15 {% endblock %}
18 {% block content %}
20 <div class="well">
21 <form class="form-horizontal" action="{% url "device-create" %}" method="POST">
23 {{ device_form.non_field_errors }}
24 {% csrf_token %}
26 <fieldset>
28 <div class="control-group">
29 <label class="control-label">Name</label>
30 <div class="controls">
31 {{ device_form.name }}
32 </div>
33 </div>
35 <div class="control-group">
36 <label class="control-label">Type</label>
37 <div class="controls">
38 {{ device_form.type }}
39 </div>
40 </div>
42 <div class="control-group">
43 <label class="control-label">Device-ID
44 </label>
45 <div class="controls">
46 {{ device_form.uid }}
47 <p class="help-block">use the same in your client</p>
48 </div>
49 </div>
51 <div class="control-group">
52 <div class="controls">
53 <button class="btn btn-primary" type="submit">{% trans "Create" %}</button>
54 </div>
55 </div>
56 </fieldset>
57 </form>
58 </div>
60 {% endblock %}
63 {% block sidebar %}
65 <div class="well">
66 <h3>{% trans "Device ID" %}</h3>
67 {% blocktrans %}The Device ID connects your physical device with this page, so you should enter the same text on your device and here.{% endblocktrans %}
68 </div>
70 {% endblock %}