added set private/public to workout edit form
This commit is contained in:
@@ -69,7 +69,16 @@
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
{% csrf_token %}
|
||||
<div id="formbutton" class="grid_1 prefix_4 suffix_1">
|
||||
<div class="grid_2 prefix_2 alpha tooltip">
|
||||
{% if workout.privacy == 'visible' %}
|
||||
<a class="button blue small" href="/rowers/workout/{{ workout.id }}/setprivate">Set Private</a>
|
||||
<span class="tooltiptext">Only you can see this workout</span>
|
||||
{% else %}
|
||||
<a class="button blue small" href="/rowers/workout/{{ workout.id }}/makepublic">Make Public</a>
|
||||
<span class="tooltiptext">Make this workout visible to your teams and followers</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div id="formbutton" class="grid_1 suffix_1 omega">
|
||||
<input class="button green" type="submit" value="Save">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user