more options for left panel
This commit is contained in:
@@ -58,10 +58,11 @@ class DocumentsForm(forms.Form):
|
||||
class Meta:
|
||||
fields = ['title','file','workouttype','fileformat']
|
||||
|
||||
from utils import workflowleftpanel,workflowmiddlepanel
|
||||
from utils import (
|
||||
workflowleftpanel,workflowmiddlepanel,
|
||||
defaultleft,defaultmiddle
|
||||
)
|
||||
|
||||
defaultleft = [p[0] for p in workflowleftpanel]
|
||||
defaultmiddle = [p[0] for p in workflowmiddlepanel]
|
||||
|
||||
# Form to change Workflow page layout
|
||||
class WorkFlowLeftPanelForm(forms.Form):
|
||||
|
||||
@@ -196,10 +196,10 @@ class TeamRequest(models.Model):
|
||||
issuedate = models.DateField(default=timezone.now)
|
||||
code = models.CharField(max_length=150,unique=True)
|
||||
|
||||
from utils import workflowleftpanel,workflowmiddlepanel
|
||||
|
||||
defaultleft = [p[0] for p in workflowleftpanel]
|
||||
defaultmiddle = [p[0] for p in workflowmiddlepanel]
|
||||
from utils import (
|
||||
workflowleftpanel,workflowmiddlepanel,
|
||||
defaultleft,defaultmiddle
|
||||
)
|
||||
|
||||
# Extension of User with rowing specific data
|
||||
class Rower(models.Model):
|
||||
|
||||
5
rowers/templates/panel_advancededit.html
Normal file
5
rowers/templates/panel_advancededit.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="grid_2 alpha">
|
||||
<p>
|
||||
<a class="button gray small" href="/rowers/workout/{{ workout.id }}/advanced">Advanced</a>
|
||||
</p>
|
||||
</div>
|
||||
@@ -1,18 +1,5 @@
|
||||
<div class="grid_2 alpha">
|
||||
<h2>Navigation</h2>
|
||||
</div>
|
||||
<div class="grid_2 alpha">
|
||||
<p>
|
||||
<a class="button gray small" href="/rowers/workout/{{ workout.id }}/edit">Edit Workout</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="grid_2 alpha">
|
||||
<p>
|
||||
<a class="button gray small" href="/rowers/workout/{{ workout.id }}/advanced">Advanced</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="grid_2 alpha">
|
||||
<p>
|
||||
<a class="button gray small" href="/rowers/workout/{{ workout.id }}/editintervals">Edit Intervals</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
5
rowers/templates/panel_editintervals.html
Normal file
5
rowers/templates/panel_editintervals.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="grid_2 alpha">
|
||||
<p>
|
||||
<a class="button gray small" href="/rowers/workout/{{ workout.id }}/editintervals">Edit Intervals</a>
|
||||
</p>
|
||||
</div>
|
||||
5
rowers/templates/panel_editstream.html
Normal file
5
rowers/templates/panel_editstream.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="grid_2 alpha">
|
||||
<p>
|
||||
<a class="button gray small" href="/rowers/workout/{{ workout.id }}/stream">Edit Stream Data</a>
|
||||
</p>
|
||||
</div>
|
||||
5
rowers/templates/panel_editwind.html
Normal file
5
rowers/templates/panel_editwind.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="grid_2 alpha">
|
||||
<p>
|
||||
<a class="button gray small" href="/rowers/workout/{{ workout.id }}/wind">Edit Wind Data</a>
|
||||
</p>
|
||||
</div>
|
||||
3
rowers/templates/panel_geekyheader.html
Normal file
3
rowers/templates/panel_geekyheader.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="grid_2 alpha">
|
||||
<h2>Geeky Stuff</h2>
|
||||
</div>
|
||||
3
rowers/templates/panel_navigationheader.html
Normal file
3
rowers/templates/panel_navigationheader.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="grid_2 alpha">
|
||||
<h2>Navigation</h2>
|
||||
</div>
|
||||
5
rowers/templates/panel_otwpower.html
Normal file
5
rowers/templates/panel_otwpower.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="grid_2 alpha">
|
||||
<p>
|
||||
<a class="button gray small" href="/rowers/workout/{{ workout.id }}/otwsetpower">OTW Power</a>
|
||||
</p>
|
||||
</div>
|
||||
@@ -31,6 +31,11 @@
|
||||
</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/workflowconfig">Configure this page</a>
|
||||
</p>
|
||||
</div>
|
||||
{% for templateName in leftTemplates %}
|
||||
{% include templateName %}
|
||||
{% endfor %}
|
||||
|
||||
@@ -10,7 +10,12 @@
|
||||
|
||||
<div class="grid_12 alpha">
|
||||
<h1>Workflow Page Configuration</h1>
|
||||
|
||||
<p>On this page, you can add and remove elements from the left and middle
|
||||
panels of your Workflow page.
|
||||
Use the arrows on the right to move selected elements up and down to
|
||||
determine the order.
|
||||
In this way, you can configure the page to
|
||||
streamline your regular workout analysis workflow.</p>
|
||||
<h2>Left Panel</h2>
|
||||
<form enctype="multipart/form-data" action="" method="post">
|
||||
<div class="grid_11 alpha">
|
||||
|
||||
@@ -11,12 +11,33 @@ workflowmiddlepanel = (
|
||||
('panel_summary.html','Summary'),
|
||||
)
|
||||
|
||||
defaultmiddle = ['panel_statcharts.html',
|
||||
'flexthumbnails.html',
|
||||
'panel_summary.html']
|
||||
|
||||
workflowleftpanel = (
|
||||
('panel_editbuttons.html','Edit Links'),
|
||||
('panel_stats.html','Stats'),
|
||||
('panel_staticchart.html','Create Static Charts')
|
||||
('panel_navigationheader.html','Navigation Header'),
|
||||
('panel_editbuttons.html','Edit Workout Button'),
|
||||
('panel_advancededit.html','Advanced Workout Edit Button'),
|
||||
('panel_editintervals.html','Edit Intervals Button'),
|
||||
('panel_stats.html','Workout Statistics Button'),
|
||||
('panel_staticchart.html','Create Static Charts Buttons'),
|
||||
('panel_geekyheader.html','Geeky Header'),
|
||||
('panel_editwind.html','Edit Wind Data'),
|
||||
('panel_editstream.html','Edit Stream Data'),
|
||||
('panel_otwpower.html','Run OTW Power Calculations')
|
||||
)
|
||||
|
||||
defaultleft = [
|
||||
'panel_navigationheader.html',
|
||||
'panel_editbuttons.html',
|
||||
'panel_advancededit.html',
|
||||
'panel_editintervals.html'
|
||||
'panel_stats.html',
|
||||
'panel_staticchart.html',
|
||||
]
|
||||
|
||||
|
||||
def absolute(request):
|
||||
urls = {
|
||||
'ABSOLUTE_ROOT': request.build_absolute_uri('/')[:-1].strip("/"),
|
||||
|
||||
Reference in New Issue
Block a user