abs_patterns.html
54 lines
| 1.1 KiB
| text/html
|
HtmlDjangoLexer
|
r166 | {% extends "dev_conf.html" %} | ||
{% load static %} | ||||
{% load bootstrap3 %} | ||||
{% load main_tags %} | ||||
{% block content %} | ||||
<style> | ||||
</style> | ||||
|
r178 | |||
|
r166 | {% if abs_beams %} | ||
<div> | ||||
<h4>Beams:</h4> | ||||
<div class="container"> | ||||
|
r178 | <div class="btn-group"> | ||
{% for abs_beam in abs_beams %} | ||||
<button id="bt_beam{{ forloop.counter }}" type="button" class="btn btn-default">{{ forloop.counter }}</button> | ||||
{% endfor %} | ||||
</div> | ||||
|
r166 | </div> | ||
|
r178 | </div> | ||
|
r166 | <br> | ||
|
r178 | |||
{% if beam %} | ||||
{% include "abs_pattern.html" %} | ||||
{% endif %} | ||||
|
r166 | |||
{% else %} | ||||
<div> | ||||
<h4>Beams:</h4> | ||||
<p style="color:#b4bcc2; margin-left: 5%;"><i>No Beams...</i></p> | ||||
</div> | ||||
{% endif %} | ||||
<script> | ||||
|
r178 | {% for abs_beam in abs_beams %} | ||
$("#bt_beam{{ forloop.counter }}").click(function() { | ||||
document.location = "{% url 'url_plot_abs_pattern' abs_beam.abs_conf.id abs_beam.id %}"; | ||||
}); | ||||
{% endfor %} | ||||
//function ChangeColor() { | ||||
// document.getElementById("button_1").style.backgroundColor = "#2c3e50"; | ||||
// document.getElementById("button_1").style.color = "#ecf0f1"; | ||||
//} | ||||
|
r166 | </script> | ||
|
r178 | |||
{% endblock %} | ||||