##// 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_confs.html
49 lines | 1.2 KiB | text/html | HtmlDjangoLexer
{% extends "base.html" %}
{% load bootstrap3 %}
{% load static %}
{% load main_tags %}
{% block extra-head %}
<link href="{% static 'css/bootstrap-datetimepicker.min.css' %}" media="screen" rel="stylesheet">
{% endblock %}
{% block conf-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 configuration_keys %}
<th>{{ key|title }}</th>
{% endfor%}
</tr>
{% for item in configurations %}
<tr class="clickable-row" data-href="{{item.get_absolute_url}}">
<td>{{ forloop.counter }}</td>
{% for key in configuration_keys %}
<td>{{ item|attr:key }}</td>
{% endfor %}
</tr>
{% endfor %}
</table>
<button class="btn btn-primary pull-right" id="bt_add">{{button}}</button>
{% endblock %}
{% block sidebar%}
{% include "sidebar_devices.html" %}
{% endblock %}
{% block extra-js%}
<script type="text/javascript">
$("#bt_add").click(function() {
document.location = "{% url 'url_add_dev_conf' 0%}";
});
$(".clickable-row").click(function() {
document.location = $(this).data("href");
});
</script>
{% endblock %}