generator_conf.html
29 lines
| 658 B
| text/html
|
HtmlDjangoLexer
r348 | {% extends "dev_conf.html" %} | ||
{% load static %} | |||
{% load bootstrap4 %} | |||
{% load main_tags %} | |||
{% block content-detail %} | |||
r350 | <h2>Generator</h2> | ||
r348 | <table class="table table-bordered"> | ||
<tr> | |||
<th>Status</th> | |||
<td class="text-{{dev_conf.device.status_color}}"><strong>{{dev_conf.device.get_status_display}}</strong></td> | |||
</tr> | |||
{% for key in dev_conf_keys %} | |||
<tr> | |||
<th>{% get_verbose_field_name dev_conf key %}</th> | |||
<td>{{dev_conf|attr:key}}</td> | |||
</tr> | |||
{% endfor %} | |||
</table> | |||
{% endblock %} | |||
{% block extra-js%} | |||
<script type="text/javascript"> | |||
$("#bt_toggle").click(function() { | |||
$(".panel-collapse").collapse('toggle') | |||
}); | |||
</script> | |||
{% endblock %} |