##// 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
experiment_edit.html
92 lines | 2.9 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 exp-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>
{% if configurations %}
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<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" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseThree">
Device Configurations
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingTwo">
<div class="panel-body">
<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|value:key }}</td>
{% endfor %}
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
</div>
{% endif %}
{% if button %}
<br>
<button type="submit" class="btn btn-primary pull-right">{{button}}</button>
{% endif %}
</form>
{% 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">
$('.input-group.time').datetimepicker({
format: 'HH:mm:ss',
pickDate: false,
pickSeconds: true
});
$('#id_create_from').change(function() {
var url = "{% url 'url_add_experiment' %}";
if ($(this).val()=="2"){
document.location = url+"?template=0";
}else if ($(this).val()=="1"){
document.location = url+"?blank=0";
}else{
document.location = url;
}
});
$('#id_choose_template').change(function() {
var url = "{% url 'url_add_experiment' %}";
document.location = url+"?template="+$(this).val();
});
</script>
{% endblock %}