more options for left panel
This commit is contained in:
@@ -58,10 +58,11 @@ class DocumentsForm(forms.Form):
|
|||||||
class Meta:
|
class Meta:
|
||||||
fields = ['title','file','workouttype','fileformat']
|
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
|
# Form to change Workflow page layout
|
||||||
class WorkFlowLeftPanelForm(forms.Form):
|
class WorkFlowLeftPanelForm(forms.Form):
|
||||||
|
|||||||
@@ -196,10 +196,10 @@ class TeamRequest(models.Model):
|
|||||||
issuedate = models.DateField(default=timezone.now)
|
issuedate = models.DateField(default=timezone.now)
|
||||||
code = models.CharField(max_length=150,unique=True)
|
code = models.CharField(max_length=150,unique=True)
|
||||||
|
|
||||||
from utils import workflowleftpanel,workflowmiddlepanel
|
from utils import (
|
||||||
|
workflowleftpanel,workflowmiddlepanel,
|
||||||
defaultleft = [p[0] for p in workflowleftpanel]
|
defaultleft,defaultmiddle
|
||||||
defaultmiddle = [p[0] for p in workflowmiddlepanel]
|
)
|
||||||
|
|
||||||
# Extension of User with rowing specific data
|
# Extension of User with rowing specific data
|
||||||
class Rower(models.Model):
|
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">
|
<div class="grid_2 alpha">
|
||||||
<p>
|
<p>
|
||||||
<a class="button gray small" href="/rowers/workout/{{ workout.id }}/edit">Edit Workout</a>
|
<a class="button gray small" href="/rowers/workout/{{ workout.id }}/edit">Edit Workout</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</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>
|
||||||
<div id="leftpanel" class="grid_2 alpha">
|
<div id="leftpanel" class="grid_2 alpha">
|
||||||
{% block left_panel %}
|
{% 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 %}
|
{% for templateName in leftTemplates %}
|
||||||
{% include templateName %}
|
{% include templateName %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -10,7 +10,12 @@
|
|||||||
|
|
||||||
<div class="grid_12 alpha">
|
<div class="grid_12 alpha">
|
||||||
<h1>Workflow Page Configuration</h1>
|
<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>
|
<h2>Left Panel</h2>
|
||||||
<form enctype="multipart/form-data" action="" method="post">
|
<form enctype="multipart/form-data" action="" method="post">
|
||||||
<div class="grid_11 alpha">
|
<div class="grid_11 alpha">
|
||||||
|
|||||||
@@ -11,12 +11,33 @@ workflowmiddlepanel = (
|
|||||||
('panel_summary.html','Summary'),
|
('panel_summary.html','Summary'),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
defaultmiddle = ['panel_statcharts.html',
|
||||||
|
'flexthumbnails.html',
|
||||||
|
'panel_summary.html']
|
||||||
|
|
||||||
workflowleftpanel = (
|
workflowleftpanel = (
|
||||||
('panel_editbuttons.html','Edit Links'),
|
('panel_navigationheader.html','Navigation Header'),
|
||||||
('panel_stats.html','Stats'),
|
('panel_editbuttons.html','Edit Workout Button'),
|
||||||
('panel_staticchart.html','Create Static Charts')
|
('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):
|
def absolute(request):
|
||||||
urls = {
|
urls = {
|
||||||
'ABSOLUTE_ROOT': request.build_absolute_uri('/')[:-1].strip("/"),
|
'ABSOLUTE_ROOT': request.build_absolute_uri('/')[:-1].strip("/"),
|
||||||
|
|||||||
Reference in New Issue
Block a user