##// END OF EJS Templates
siderbar_devices.html updated...
siderbar_devices.html updated git-svn-id: http://jro-dev.igp.gob.pe/svn/jro_hard/radarsys/trunk/webapp@31 aa17d016-51d5-4e8b-934c-7b2bbb1bbe71

File last commit:

r15:78ae9462c516
r17:853d2d2bd93a
Show More
device.html
35 lines | 940 B | text/html | HtmlDjangoLexer
{% extends "base.html" %}
{% load bootstrap3 %}
{% load static %}
{% load main_tags %}
{% block dev-active %}active{% endblock %}
{% block content-title %}{{title}}{% endblock %}
{% block content-suptitle %}{{suptitle}}{% endblock %}
{% block content %}
<table class="table table-bordered">
{% for key in device_keys %}
<tr><th>{{key|title}}</th><td>{{device|attr:key}}</td></tr>
{% endfor %}
</table>
<button class="btn btn-primary pull-right" style="margin-left: 10px" id="bt_edit_device">Edit</button>
<br></br>
<br></br>
{% endblock %}
{% block sidebar%}
{% include "sidebar_devices.html" %}
{% endblock %}
{% block extra-js%}
<script src="{% static 'js/moment.min.js' %}"></script>
<script src="{% static 'js/bootstrap-datetimepicker.min.js' %}"></script>
<script type="text/javascript">
$("#bt_edit_device").click(function() {
document.location = "{% url 'url_edit_device' device.id%}";
});
</script>
{% endblock %}