workflow view
This commit is contained in:
@@ -3509,7 +3509,8 @@ def thumbnail_flex_chart(rowdata,id=0,promember=0,
|
||||
|
||||
|
||||
|
||||
plot.sizing_mode = 'scale_width'
|
||||
# plot.sizing_mode = 'scale_width'
|
||||
plot.sizing_mode = 'fixed'
|
||||
plot.toolbar.logo = None
|
||||
plot.toolbar_location = None
|
||||
#plot.yaxis.visible = False
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
|
||||
|
||||
<h2>Flex Charts</h2>
|
||||
<div id="id_thumbscripts">
|
||||
|
||||
</div>
|
||||
<div id="id_thumbs">
|
||||
{{ charts | safe }}
|
||||
</div>
|
||||
<ul class="main-content" id="id_thumbs">
|
||||
{{ charts| safe }}
|
||||
</ul>
|
||||
|
||||
@@ -1,31 +1,34 @@
|
||||
{% load rowerfilters %}
|
||||
{% load tz %}
|
||||
<div class="grid_6 suffix_3 alpha">
|
||||
<table width=100%>
|
||||
<tr>
|
||||
{% localtime on %}
|
||||
<th>Date/Time:</th><td>{{ workout.startdatetime|localtime}}</td>
|
||||
{% endlocaltime %}
|
||||
</tr><tr>
|
||||
<th>Distance:</th><td>{{ workout.distance }}m</td>
|
||||
</tr><tr>
|
||||
<th>Duration:</th><td>{{ workout.duration |durationprint:"%H:%M:%S.%f" }}</td>
|
||||
</tr><tr>
|
||||
<th>Public link to this workout</th>
|
||||
<td>
|
||||
<a href="/rowers/workout/{{ workout.id }}">https://rowsandall.com/rowers/workout/{{ workout.id }}</a>
|
||||
</td>
|
||||
</tr><tr>
|
||||
<th>Comments</th>
|
||||
<td>
|
||||
<ul class="main-content">
|
||||
<li class="grid_2">
|
||||
<table width=100%>
|
||||
<tr>
|
||||
{% localtime on %}
|
||||
<th>Date/Time:</th><td>{{ workout.startdatetime|localtime}}</td>
|
||||
{% endlocaltime %}
|
||||
</tr><tr>
|
||||
<th>Distance:</th><td>{{ workout.distance }}m</td>
|
||||
</tr><tr>
|
||||
<th>Duration:</th><td>{{ workout.duration |durationprint:"%H:%M:%S.%f" }}</td>
|
||||
</tr><tr>
|
||||
<th>Public link to this workout</th>
|
||||
<td>
|
||||
<a href="/rowers/workout/{{ workout.id }}">https://rowsandall.com/rowers/workout/{{ workout.id }}</a>
|
||||
</td>
|
||||
</tr><tr>
|
||||
<th>Comments</th>
|
||||
<td>
|
||||
<a href="/rowers/workout/{{ workout.id }}/comment">Comment ({{ aantalcomments }})</a>
|
||||
</td>
|
||||
|
||||
</tr><tr>
|
||||
<th>Public link to interactive chart</th>
|
||||
<td>
|
||||
<a href="/rowers/workout/{{ workout.id }}/interactiveplot">https://rowsandall.com/rowers/workout/{{ workout.id }}/interactiveplot</a>
|
||||
<td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr><tr>
|
||||
<th>Public link to interactive chart</th>
|
||||
<td>
|
||||
<a href="/rowers/workout/{{ workout.id }}/interactiveplot">https://rowsandall.com/rowers/workout/{{ workout.id }}/interactiveplot</a>
|
||||
<td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
<div style="height:100%;" id="theplot" class="grid_9 alpha flexplot">
|
||||
{{ mapdiv|safe }}
|
||||
|
||||
|
||||
{{ mapscript|safe }}
|
||||
</div>
|
||||
<ul class="main-content">
|
||||
<li class="grid_2">
|
||||
<div class="mapdiv">
|
||||
{{ mapdiv|safe }}
|
||||
|
||||
|
||||
{{ mapscript|safe }}
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
<div class="grid_9">
|
||||
<div class="grid_1 alpha">
|
||||
<p>
|
||||
<div class="fb-share-button" data-href="https://rowsandall.com/rowers/workout/{{ workout.id }}" data-layout="button" data-size="small" data-mobile-iframe="false">
|
||||
<a class="fb-xfbml-parse-ignore" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https://rowsandall.com/rowers/workout/{{ workout.id }}">Share</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid_1 suffix_7 omega">
|
||||
<a class="twitter-share-button"
|
||||
</p>
|
||||
<p>
|
||||
<a class="twitter-share-button"
|
||||
href="https://twitter.com/intent/tweet"
|
||||
data-url="https://rowsandall.com/rowers/workout/{{ workout.id }}"
|
||||
data-text="@rowsandall #rowingdata">Tweet</a>
|
||||
</div>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{% load rowerfilters %}
|
||||
{% load tz %}
|
||||
<div class="grid_6 suffix_3 alpha">
|
||||
<ul class="main-content">
|
||||
<li>
|
||||
<table width=100%>
|
||||
<tr>
|
||||
<th>Comments</th>
|
||||
@@ -10,4 +11,5 @@
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
{% if statcharts %}
|
||||
<h2>Static Charts</h2>
|
||||
{% for graph in statcharts %}
|
||||
<div id="thumb-container" class="grid_3 alpha">
|
||||
<a href="/rowers/graph/{{ graph.id }}/">
|
||||
<img src="/{{ graph.filename }}"
|
||||
onerror="this.src='/static/img/rowingtimer.gif'"
|
||||
alt="{{ graph.filename }}" width="180" height="150"></a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<ul class="main-content">
|
||||
{% for graph in statcharts %}
|
||||
<li>
|
||||
<a href="/rowers/graph/{{ graph.id }}/">
|
||||
<img src="/{{ graph.filename }}"
|
||||
onerror="this.src='/static/img/rowingtimer.gif'"
|
||||
alt="{{ graph.filename }}" width="180" height="150">
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<div class="grid_2 alpha">
|
||||
<p>
|
||||
<a class="button gray small" href="/rowers/workout/{{ workout.id }}/stats">Workout Stats</a>
|
||||
</p>
|
||||
</div>
|
||||
<p>
|
||||
<a class="button gray small" href="/rowers/workout/{{ workout.id }}/stats">Workout Stats</a>
|
||||
</p>
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -525,8 +525,7 @@ urlpatterns = [
|
||||
url(r'^courses/(?P<id>\d+)$',views.course_view),
|
||||
url(r'^courses/(?P<id>\d+)/map$',views.course_map_view),
|
||||
# URLS to be created
|
||||
# url(r'^me/preferences$',views.user_preferences_view),
|
||||
# url(r'^help$',views.user_preferences_view),TemplateView.as_view(template_name='help.html'), name='help'),
|
||||
url(r'^help$',TemplateView.as_view(template_name='help.html'), name='help'),
|
||||
|
||||
]
|
||||
|
||||
|
||||
@@ -8543,11 +8543,29 @@ def workout_workflow_view(request,id):
|
||||
pass
|
||||
|
||||
|
||||
breadcrumbs = [
|
||||
{
|
||||
'url':'/rowers/list-workouts',
|
||||
'name':'Workouts'
|
||||
},
|
||||
{
|
||||
'url':get_workout_default_page(request,id),
|
||||
'name': str(row.id)
|
||||
},
|
||||
{
|
||||
'url':reverse(workout_workflow_view,kwargs={'id':id}),
|
||||
'name': 'View'
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
return render(request,
|
||||
'workflow.html',
|
||||
{
|
||||
'middleTemplates':middleTemplates,
|
||||
'leftTemplates':leftTemplates,
|
||||
'active':'nav-workouts',
|
||||
'breadcrumbs':breadcrumbs,
|
||||
'charts':charts,
|
||||
'workout':row,
|
||||
'mapscript':mapscript,
|
||||
|
||||
Reference in New Issue
Block a user