plannedsessionteamedit
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
{% block main %}
|
{% block main %}
|
||||||
<h1>Create Team Session</h1>
|
<h1>Create Team Session</h1>
|
||||||
|
|
||||||
<form enctype="multipart/form-data" action="{{ formloc }}" method="post">
|
<form enctype="multipart/form-data" action="" method="post">
|
||||||
{% if form.errors %}
|
{% if form.errors %}
|
||||||
<p style="color: red;">
|
<p style="color: red;">
|
||||||
Please correct the error{{ form.errors|pluralize }} below.
|
Please correct the error{{ form.errors|pluralize }} below.
|
||||||
|
|||||||
@@ -1,55 +1,12 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "newbase.html" %}
|
||||||
{% load staticfiles %}
|
{% load staticfiles %}
|
||||||
{% load rowerfilters %}
|
{% load rowerfilters %}
|
||||||
|
|
||||||
{% block title %}New Planned Session{% endblock %}
|
{% block title %}New Planned Session{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block main %}
|
||||||
<div class="grid_12 alpha">
|
|
||||||
{% include "planningbuttons.html" %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="grid_12 alpha">
|
|
||||||
<div id="left" class="grid_6 alpha">
|
|
||||||
<h1>Edit Team Session</h1>
|
<h1>Edit Team Session</h1>
|
||||||
</div>
|
<form enctype="multipart/form-data" action="" method="post">
|
||||||
<div id="timeperiod" class="grid_2 dropdown">
|
|
||||||
<button class="grid_2 alpha button gray small dropbtn">Select Time Period ({{ timeperiod|verbosetimeperiod }})</button>
|
|
||||||
<div class="dropdown-content">
|
|
||||||
<a class="button gray small alpha"
|
|
||||||
href="/rowers/sessions/create/today/rower/{{ rower.id }}">
|
|
||||||
Today
|
|
||||||
</a>
|
|
||||||
<a class="button gray small alpha"
|
|
||||||
href="/rowers/sessions/create/thisweek/rower/{{ rower.id }}">
|
|
||||||
This Week
|
|
||||||
</a>
|
|
||||||
<a class="button gray small alpha"
|
|
||||||
href="/rowers/sessions/create/thismonth/rower/{{ rower.id }}">
|
|
||||||
This Month
|
|
||||||
</a>
|
|
||||||
<a class="button gray small alpha"
|
|
||||||
href="/rowers/sessions/create/lastweek/rower/{{ rower.id }}">
|
|
||||||
Last Week
|
|
||||||
</a>
|
|
||||||
<a class="button gray small alpha"
|
|
||||||
href="/rowers/sessions/create/lastmonth/rower/{{ rower.id }}">
|
|
||||||
Last Month
|
|
||||||
</a>
|
|
||||||
<a class="button gray small alpha"
|
|
||||||
href="/rowers/sessions/create/nextweek/rower/{{ rower.id }}">
|
|
||||||
Next Week
|
|
||||||
</a>
|
|
||||||
<a class="button gray small alpha"
|
|
||||||
href="/rowers/sessions/create/nextmonth/rower/{{ rower.id }}">
|
|
||||||
Next Month
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="grid_12 alpha">
|
|
||||||
<form enctype="multipart/form-data" action="{{ formloc }}" method="post">
|
|
||||||
{% if form.errors %}
|
{% if form.errors %}
|
||||||
<p style="color: red;">
|
<p style="color: red;">
|
||||||
Please correct the error{{ form.errors|pluralize }} below.
|
Please correct the error{{ form.errors|pluralize }} below.
|
||||||
@@ -57,7 +14,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
<div id="right" class="grid_6 alpha">
|
<ul class="main-content">
|
||||||
|
<li class="grid_2">
|
||||||
<h1>Select Team</h1>
|
<h1>Select Team</h1>
|
||||||
<p>
|
<p>
|
||||||
Selecting a team assigns this session to all members of the team.
|
Selecting a team assigns this session to all members of the team.
|
||||||
@@ -121,31 +79,28 @@
|
|||||||
</table>
|
</table>
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</li>
|
||||||
|
<li class="grid_2">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="grid_6 omega">
|
|
||||||
<h1>Session {{ plannedsession.name }}</h1>
|
<h1>Session {{ plannedsession.name }}</h1>
|
||||||
<table>
|
<table>
|
||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
</table>
|
</table>
|
||||||
<div class="grid_1 prefix_2 alpha">
|
<p>
|
||||||
<a class="red button small" href="/rowers/sessions/{{ plannedsession.id }}/deleteconfirm">Delete</a>
|
<a href="/rowers/sessions/{{ plannedsession.id }}/deleteconfirm">Delete</a>
|
||||||
</div>
|
</p>
|
||||||
<div class="grid_1">
|
<p>
|
||||||
<a class="gray button small" href="/rowers/sessions/{{ plannedsession.id }}/clone">Clone</a>
|
<a href="/rowers/sessions/{{ plannedsession.id }}/clone">Clone</a>
|
||||||
</div>
|
</p>
|
||||||
<div id="formbutton" class="grid_1 suffix_1 omega">
|
<p>
|
||||||
<input class="button green" type="submit" value="Save">
|
<input class="button green" type="submit" value="Save">
|
||||||
|
</p>
|
||||||
|
<div id="id_guidance" class="padded">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</form>
|
</form>
|
||||||
<div class="grid_6" id="id_guidance">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
@@ -258,3 +213,7 @@
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block sidebar %}
|
||||||
|
{% include 'menu_plan.html' %}
|
||||||
|
{% endblock %}
|
||||||
|
|||||||
@@ -13989,6 +13989,8 @@ def plannedsession_teamcreate_view(request,timeperiod='thisweek',
|
|||||||
def plannedsession_teamedit_view(request,timeperiod='thisweek',
|
def plannedsession_teamedit_view(request,timeperiod='thisweek',
|
||||||
sessionid=0):
|
sessionid=0):
|
||||||
|
|
||||||
|
r = getrequestrower(request)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
ps = PlannedSession.objects.get(id=sessionid)
|
ps = PlannedSession.objects.get(id=sessionid)
|
||||||
except PlannedSession.DoesNotExist:
|
except PlannedSession.DoesNotExist:
|
||||||
@@ -14098,6 +14100,8 @@ def plannedsession_teamedit_view(request,timeperiod='thisweek',
|
|||||||
{
|
{
|
||||||
'plannedsession':ps,
|
'plannedsession':ps,
|
||||||
'plan':trainingplan,
|
'plan':trainingplan,
|
||||||
|
'rower':r,
|
||||||
|
'active':'nav-plan',
|
||||||
'teams':get_my_teams(request.user),
|
'teams':get_my_teams(request.user),
|
||||||
'form':sessioncreateform,
|
'form':sessioncreateform,
|
||||||
'teamform':sessionteamselectform,
|
'teamform':sessionteamselectform,
|
||||||
|
|||||||
Reference in New Issue
Block a user