1 {% extends
"base.html" %}
8 {% block mainmenu %}{{
"/subscriptions/"|main_menu }}{% endblock %}
9 {% block sectionmenu %}{{
"/devices/"|section_menu }}{% endblock %}
11 {% block title %}{% trans
"Create Device " %}{% endblock %}
14 <h1>{% trans
"Create Device" %}
</h1>
21 <form class=
"form-horizontal" action=
"{% url "device-create
" %}" method=
"POST">
23 {{ device_form.non_field_errors }}
28 <div class=
"control-group">
29 <label class=
"control-label">Name
</label>
30 <div class=
"controls">
31 {{ device_form.name }}
35 <div class=
"control-group">
36 <label class=
"control-label">Type
</label>
37 <div class=
"controls">
38 {{ device_form.type }}
42 <div class=
"control-group">
43 <label class=
"control-label">Device-ID
45 <div class=
"controls">
47 <p class=
"help-block">use the same in your client
</p>
51 <div class=
"control-group">
52 <div class=
"controls">
53 <button class=
"btn btn-primary" type=
"submit">{% trans
"Create" %}
</button>
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 %}