##// END OF EJS Templates
Models changed:...
Models changed: -Radar eliminated -Experiment has location and campaign as attributes -Configuration has new methods "read, write, start, stop, etc." git-svn-id: http://jro-dev.igp.gob.pe/svn/jro_hard/radarsys/trunk/webapp@74 aa17d016-51d5-4e8b-934c-7b2bbb1bbe71

File last commit:

r53:5104723250fd
r53:5104723250fd
Show More
operation.html
102 lines | 3.0 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 camp-active %}active{% endblock %}
{% block content-title %}{{title}}{% endblock %}
{% block content-suptitle %}{{suptitle}}{% endblock %}
{% block content %}
<form class="form" method="post" action="">
{% csrf_token %}
{% bootstrap_form form layout='horizontal' size='medium' %}
<div style="clear: both;"></div>
<br>
<button type="submit" class="btn btn-primary pull-right">{{button}}</button>
<br>
<br>
</form>
<br>
<br>
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true" >
{% for location in locations %}
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingTwo">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" href="#collapseTwo-{{ location.id }}" aria-expanded="false" aria-controls="collapseTwo">
{{location.name}}: Experiment List
<span>
</span>
</a>
<button type="button" class="btn btn-primary pull-right btn-xs" aria-label="Left Align" style="margin-left: 10px">
<span class="glyphicon glyphicon-play" aria-hidden="true"></span>
</button>
<button type="button" class="btn btn-primary pull-right btn-xs" aria-label="Left Align" style="margin-left: 10px">
<span class="glyphicon glyphicon-stop" aria-hidden="true"></span>
</button>
</h4>
</div>
<div id="collapseTwo-{{ location.name }}" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingTwo">
<div class="panel-body">
<table class="table table-hover">
<tr>
<th>#</th>
{% for header in experiment_keys %}
<th>{{ header|title }}</th>
{% endfor%}
</tr>
{% for item in experiments %}
{% if location.name in item.location.name %}
<tr class="clickable-row" data-href="{% url 'url_experiment' item.id %}" >
<td>{{ forloop.counter }}</td>
{% for key in experiment_keys %}
<td>{{ item|value:key }}</td>
{% endfor %}
</tr>
{% endif %}
{% endfor %}
</table>
</div>
</div>
</div>
{% endfor %}
</div>
{% endblock %}
{% block extra-js%}
<script type="text/javascript">
//$("#bt_add").click(function() {
//alert("sometext");
// document.location = "{% url 'url_operation' campaign.id %}";
//});
$(".clickable-row").click(function() {
document.location = $(this).data("href");
});
$(document).ready(function() {
$("#id_campaign").change(function() {
var id_camp = document.getElementById("id_campaign").value;
//alert(id_camp);
document.location = "{% url 'url_operation'%}"+String(id_camp);
});
});
</script>
{% endblock %}