94 lines
2.4 KiB
HTML
94 lines
2.4 KiB
HTML
{% extends "newbase.html" %}
|
|
{% load staticfiles %}
|
|
{% load rowerfilters %}
|
|
{% load tz %}
|
|
|
|
{% block title %} Flexible Plot {% endblock %}
|
|
|
|
{% localtime on %}
|
|
{% block main %}
|
|
|
|
{{ js_res | safe }}
|
|
{{ css_res| safe }}
|
|
|
|
<script type="text/javascript" src="/static/js/bokeh-0.12.3.min.js"></script>
|
|
<script type="text/javascript" src="/static/js/bokeh-widgets-0.12.3.min.js"></script>
|
|
<script async="true" type="text/javascript">
|
|
Bokeh.set_log_level("info");
|
|
</script>
|
|
|
|
{{ the_script |safe }}
|
|
|
|
|
|
<h1>Flexible Chart</h1>
|
|
|
|
<ul class="main-content">
|
|
<li class="grid_4">
|
|
<div id="theplot" class="flexplot" style="min-width:300px;">
|
|
{{ the_div|safe }}
|
|
</div>
|
|
</li>
|
|
<li class="grid_2">
|
|
<form enctype="multipart/form-data"
|
|
action=""
|
|
method="post">
|
|
{% csrf_token %}
|
|
<table>
|
|
{{ chartform.as_table }}
|
|
</table>
|
|
<table>
|
|
{{ optionsform.as_table }}
|
|
</table>
|
|
<p>
|
|
<input name="chartform" class="button green" type="submit"
|
|
value="Submit">
|
|
</p>
|
|
</form>
|
|
</li>
|
|
|
|
<li class="grid_2">
|
|
<form enctype="multipart/form-data" action="{{ formloc }}" method="post">
|
|
{% if favoritenr > 0 %}
|
|
<a
|
|
href="/rowers/workout/{{ id }}/flexchart?favoritechart={{ favoritenr|add:-1 }}">
|
|
<i class="fas fa-arrow-alt-left"></i>
|
|
</a>
|
|
{% else %}
|
|
<a
|
|
href="/rowers/workout/{{ id }}/flexchart?favoritechart={{ maxfav }}">
|
|
<i class="fas fa-arrow-alt-left"></i>
|
|
</a>
|
|
{% endif %}
|
|
{% csrf_token %}
|
|
<input class="grid_2 alpha button blue small" type="hidden" name="savefavorite" value="True">
|
|
{% if workstrokesonly %}
|
|
<input type="hidden" name="workstrokesonlysave" value="False">
|
|
{% else %}
|
|
<input type="hidden" name="workstrokesonlysave" value="True">
|
|
{% endif %}
|
|
<input value="Make Favorite" type="Submit">
|
|
{% if favoritenr < maxfav %}
|
|
<a
|
|
href="/rowers/workout/{{ id }}/flexchart?favoritechart={{ favoritenr|add:1 }}">
|
|
<i class="fas fa-arrow-alt-right"></i>
|
|
</a>
|
|
{% else %}
|
|
<a
|
|
href="/rowers/workout/{{ id }}/flexchart?favoritechart=0">
|
|
<i class="fas fa-arrow-alt-right"></i>
|
|
</a>
|
|
{% endif %}
|
|
</form>
|
|
{% if favoritechartnotes %}
|
|
<p>Chart {{ favoritenr|add:1 }}:{{ favoritechartnotes }}</p>
|
|
{% endif %}
|
|
</li>
|
|
</ul>
|
|
|
|
{% endblock %}
|
|
{% endlocaltime %}
|
|
|
|
{% block sidebar %}
|
|
{% include 'menu_workout.html' %}
|
|
{% endblock %}
|