workflow view
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{% extends "base.html" %}
|
||||
{% extends "newbase.html" %}
|
||||
{% load staticfiles %}
|
||||
{% load rowerfilters %}
|
||||
{% load tz %}
|
||||
@@ -37,69 +37,44 @@
|
||||
var counter=0;
|
||||
$("#id_sitready").remove();
|
||||
$("#id_thumbs").append(
|
||||
"<p>Click on the thumbnails to view the full chart.</p>");
|
||||
"<li class=\"grid_4\"><p>Click on the thumbnails to view the full chart.</p></li>");
|
||||
$.each(json, function(index, element) {
|
||||
console.log('adding thumbnail');
|
||||
var counter2 = counter+1;
|
||||
if (shownotes) {
|
||||
$("#id_thumbs").append(
|
||||
"<div class=\"grid_3 alpha\">"+
|
||||
"<li>"+
|
||||
"<big>"+counter2+"</big>"+
|
||||
"<div class=\"grid_3 tooltip\">"+
|
||||
"<a href=\"/rowers/workout/"+workoutid+"/flexchart?favoritechart="+counter+"\">"+element.div+"</a>"+
|
||||
"<span class=\"tooltiptext\">"+element.notes+"</span>"+
|
||||
"</div></div>");
|
||||
} else {
|
||||
$("#id_thumbs").append(
|
||||
"<div class=\"grid_3 alpha\">"+
|
||||
"<big>"+counter2+"</big>"+
|
||||
"<div class=\"grid_3 tooltip\">"+
|
||||
"<a href=\"/rowers/workout/"+workoutid+"/flexchart?favoritechart="+counter+"\">"+element.div+"</a>"+
|
||||
"</div></div>");
|
||||
"</li>");
|
||||
|
||||
}
|
||||
$("#id_thumbscripts").append(element.script);
|
||||
counter += 1;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
<div id="page" class="grid_12 alpha">
|
||||
<div class="grid_10 prefix_2 alpha">
|
||||
<h1>{{ workout.name }}</h1>
|
||||
{% if workout.user.user != user %}
|
||||
<h2>{{ workout.user.user.first_name }} {{ workout.user.user.last_name }}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div id="leftpanel" class="grid_2 alpha">
|
||||
{% block left_panel %}
|
||||
<div class="grid_2 alpha">
|
||||
<p>
|
||||
<a class="button gray small" href="/rowers/me/workflowconfig2">Configure this page</a>
|
||||
</p>
|
||||
</div>
|
||||
{% for templateName in leftTemplates %}
|
||||
{% include templateName %}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
<div id="middlepanel" class="grid_9">
|
||||
{% block middle_panel %}
|
||||
{% for templateName in middleTemplates %}
|
||||
<div class="grid_9">
|
||||
{% include templateName %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
<div id="rightpanel" class="grid_1">
|
||||
{% block right_panel %}
|
||||
<p> </p>
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% block main %}
|
||||
<h1>{{ workout.name }}</h1>
|
||||
{% if workout.user.user != user %}
|
||||
<h2>{{ workout.user.user.first_name }} {{ workout.user.user.last_name }}</h2>
|
||||
{% endif %}
|
||||
|
||||
{% block middle_panel %}
|
||||
{% for templateName in middleTemplates %}
|
||||
{% include templateName %}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
{% block right_panel %}
|
||||
{% endblock %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
{% include 'menu_workout.html' %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user