##// END OF EJS Templates
Buttons "Import", "Export, "Read" and "Write" added to Configuration View...
Buttons "Import", "Export, "Read" and "Write" added to Configuration View git-svn-id: http://jro-dev.igp.gob.pe/svn/jro_hard/radarsys/trunk/webapp@50 aa17d016-51d5-4e8b-934c-7b2bbb1bbe71

File last commit:

r30:64b312519049
r30:64b312519049
Show More
dev_conf.html
63 lines | 1.7 KiB | text/html | HtmlDjangoLexer
{% 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">
<tr>
<th>Status</th>
<td>{%if connected == True %} &#9752; Connected {% else %} &#9940; Disconnected {% endif %}</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>
<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_import">Import</button>
<button class="btn btn-primary pull-right" style="margin-left: 10px" id="bt_edit">Edit</button>
<button class="btn btn-primary pull-left" style="margin-left: 10px" id="bt_read">Read</button>
<button class="btn btn-primary pull-left" style="margin-left: 10px" id="bt_write">Write</button>
{% endblock %}
{% block sidebar%}
{% include "sidebar_devices.html" %}
{% endblock %}
{% block extra-js%}
<script type="text/javascript">
$("#bt_edit").click(function() {
document.location = "{{ dev_conf.get_absolute_url_edit }}";
});
$("#bt_read").click(function() {
document.location = "{{ dev_conf.get_absolute_url_read }}";
});
$("#bt_write").click(function() {
document.location = "{{ dev_conf.get_absolute_url_write }}";
});
$("#bt_import").click(function() {
document.location = "{{ dev_conf.get_absolute_url_import }}";
});
$("#bt_export").click(function() {
document.location = "{{ dev_conf.get_absolute_url_export }}";
});
</script>
{% endblock %}