rc_pulses.html
62 lines
| 1.4 KiB
| text/html
|
HtmlDjangoLexer
|
r45 | {% extends "dev_conf.html" %} | ||
{% load static %} | ||||
{% load bootstrap3 %} | ||||
{% load main_tags %} | ||||
{% block extra-head %} | ||||
|
r172 | <link href="http://cdn.pydata.org/bokeh/release/bokeh-0.12.1.min.css" rel="stylesheet" type="text/css"> | ||
|
r45 | {% endblock %} | ||
{% block content %} | ||||
|
r157 | |||
|
r79 | <div id="div_plot">{{div}}</div> | ||
|
r116 | <br> | ||
|
r157 | |||
<form class="form-horizontal"> | ||||
<div class="form-group"> | ||||
<label class="col-sm-2 control-label">Axis</label> | ||||
<div class="col-sm-4"> | ||||
<select class="form-control" id='id_axis'> | ||||
<option value=0>Units</option> | ||||
{%if km_selected %} | ||||
<option value=1 selected>Km</option> | ||||
{%else%} | ||||
<option value=1>Km</option> | ||||
|
r172 | {%endif%} | ||
|
r157 | </select> | ||
</div> | ||||
</div> | ||||
<div class="form-group"> | ||||
<label class="col-sm-2 control-label">1 Km</label> | ||||
<div class="col-sm-4"> | ||||
<p class="form-control-static">{{units}} Units</p> | ||||
</div> | ||||
</div> | ||||
<div class="form-group"> | ||||
<label class="col-sm-2 control-label">1 Unit</label> | ||||
<div class="col-sm-4"> | ||||
<p class="form-control-static">{{kms}} Km</p> | ||||
</div> | ||||
</div> | ||||
</form> | ||||
|
r45 | {% endblock %} | ||
{% block extra-js%} | ||||
|
r172 | <script src="{% static 'js/bokeh-0.12.1.min.js' %}"></script> | ||
|
r157 | |||
<script type="text/javascript"> | ||||
$("#id_axis").change(function() { | ||||
|
r172 | if($(this).val()=='0'){ | ||
|
r157 | document.location = '?unit'; | ||
}else{ | ||||
document.location = '?km' | ||||
} | ||||
}); | ||||
|
r172 | </script> | ||
|
r45 | {{script}} | ||
|
r172 | {% endblock %} | ||