##// END OF EJS Templates
Update several views and models in main app...
Update several views and models in main app git-svn-id: http://jro-dev.igp.gob.pe/svn/jro_hard/radarsys/trunk/webapp@106 aa17d016-51d5-4e8b-934c-7b2bbb1bbe71

File last commit:

r85:d4fe0e132735
r85:d4fe0e132735
Show More
devices.html
42 lines | 904 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-hover">
<tr>
<th>#</th>
{% for key in device_keys %}
<th>{{ key|title }}</th>
{% endfor%}
</tr>
{% for device in devices %}
<tr class="clickable-row" data-href="{% url 'url_device' device.id %}">
<td>{{ forloop.counter }}</td>
{% for key in device_keys %}
<td>{{ device|attr:key }}</td>
{% endfor %}
</tr>
{% endfor %}
</table>
{% endblock %}
{% block sidebar%}
{% include "sidebar_devices.html" %}
{% endblock %}
{% block extra-js%}
<script type="text/javascript">
$(".clickable-row").click(function() {
document.location = $(this).data("href");
});
</script>
{% endblock %}