dev_conf.html
35 lines
| 1001 B
| 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 %} | |||
<table class="table table-bordered"> | |||
{% for key in dev_conf_keys %} | |||
<tr><th>{{key|title}}</th><td>{{dev_conf|attr:key}}</td></tr> | |||
{% endfor %} | |||
</table> | |||
|
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> | |
<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 %} |