coaches can edit video analysis
This commit is contained in:
@@ -306,7 +306,7 @@ function copyText() {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</li>
|
</li>
|
||||||
{% if user.is_authenticated and user == workout.user.user %}
|
{% if user.is_authenticated and workout|may_edit:request %}
|
||||||
<li class="grid_4">
|
<li class="grid_4">
|
||||||
<input type="checkbox" name="lock" id="lock" value="Lock">Lock Data and Video
|
<input type="checkbox" name="lock" id="lock" value="Lock">Lock Data and Video
|
||||||
</li>
|
</li>
|
||||||
@@ -322,7 +322,7 @@ function copyText() {
|
|||||||
<li class="grid_2">
|
<li class="grid_2">
|
||||||
|
|
||||||
|
|
||||||
{% if form and user.is_authenticated and user == workout.user.user %}
|
{% if form and user.is_authenticated and workout|may_edit:request %}
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
|
|||||||
@@ -172,6 +172,9 @@ def workout_video_create_view(request,id=0):
|
|||||||
else:
|
else:
|
||||||
mode = 'erg'
|
mode = 'erg'
|
||||||
|
|
||||||
|
|
||||||
|
mayedit = checkworkoutuser(request.user,w) and isprorower(request.user.rower)
|
||||||
|
|
||||||
# get video ID and offset
|
# get video ID and offset
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
form = VideoAnalysisCreateForm(request.POST)
|
form = VideoAnalysisCreateForm(request.POST)
|
||||||
|
|||||||
Reference in New Issue
Block a user