dev_conf.html
37 lines
| 1.1 KiB
| text/html
|
HtmlDjangoLexer
|
r13 | {% extends "base.html" %} | |
{% load bootstrap3 %} | |||
{% load static %} | |||
{% load main_tags %} | |||
{% block conf-active %}active{% endblock %} | |||
{% block content-title %}{{title}}{% endblock %} | |||
{% block content-suptitle %}{{suptitle}}{% endblock %} | |||
{% block content %} | |||
|
r26 | ||
|
r13 | <table class="table table-bordered"> | |
|
r26 | <tr><th>Status</th><td>{%if connected == True %} ☘ Connected {% else %} ⛔ Disconnected {% endif %}</td></tr> | |
|
r13 | {% for key in dev_conf_keys %} | |
<tr><th>{{key|title}}</th><td>{{dev_conf|attr:key}}</td></tr> | |||
{% endfor %} | |||
</table> | |||
|
r26 | ||
|
r15 | <button class="btn btn-primary pull-right" style="margin-left: 10px" id="bt_send">Send</button> | |
<button class="btn btn-primary pull-right" style="margin-left: 10px" id="bt_export">Export</button> | |||
<button class="btn btn-primary pull-right" style="margin-left: 10px" id="bt_edit">Edit</button> | |||
|
r13 | <br></br> | |
{% endblock %} | |||
{% block sidebar%} | |||
{% include "sidebar_devices.html" %} | |||
{% endblock %} | |||
{% block extra-js%} | |||
<script type="text/javascript"> | |||
|
r15 | $("#bt_edit").click(function() { | |
|
r13 | document.location = "{% url 'url_edit_dev_conf' dev_conf.id%}"; | |
}); | |||
</script> | |||
{% endblock %} |