shared sessions now work
This commit is contained in:
@@ -8,11 +8,26 @@
|
||||
|
||||
<h1>Planned Session Library</h1>
|
||||
|
||||
{% if alltags %}
|
||||
<p>
|
||||
Click on a tag to filter:
|
||||
{% for tag in alltags %}
|
||||
<a href="/rowers/sessions/library/?tag={{ tag }}">{{ tag }}</a>
|
||||
{% endfor %}
|
||||
</p>
|
||||
<p>
|
||||
<a href="/rowers/sessions/library/">Clear tags</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<ul class="main-content">
|
||||
<li class="grid_4">
|
||||
{% if templates %}
|
||||
<p>
|
||||
Click on session name to view, edit to change the session.
|
||||
Sharing a session makes it available to all Rowsandall users on Self-Coach and Coach plans, so they can
|
||||
use it in their own training plans. You can make the session private again at any time, but users
|
||||
can save your session in their own private libraries.
|
||||
</p>
|
||||
<table width="90%" class="listtable shortpadded">
|
||||
<thead>
|
||||
@@ -20,8 +35,13 @@
|
||||
<th align="left">Name</th>
|
||||
<th align="left">Type</th>
|
||||
<th align="left">Mode</th>
|
||||
<th align="left">Value</th>
|
||||
<th align="left">Private/Public</th>
|
||||
<th align="left">Edit</th>
|
||||
<th align="left">
|
||||
<th align="left">Copy to Calendar</th>
|
||||
<th align="left">Share</th>
|
||||
<th align="left">Make Private</th>
|
||||
<th align="left">Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -29,23 +49,56 @@
|
||||
<tr>
|
||||
<td>
|
||||
{% if ps.name != '' %}
|
||||
<a class="small"
|
||||
href="/rowers/sessions/{{ ps.id }}/clone/user/{{ rower.user.id }}">{{ ps.name }}</a>
|
||||
{{ ps.name }}
|
||||
{% else %}
|
||||
<a class="small"
|
||||
href="/rowers/sessions/{{ ps.id }}/clone/user/{{ rower.user.id }}">Unnamed Session</a>
|
||||
Unnamed Session
|
||||
{% endif %}
|
||||
</td>
|
||||
<td> {{ ps.get_sessiontype_display }} </td>
|
||||
<td> {{ ps.get_sessionmode_display }} </td>
|
||||
<td> {{ ps.sessionvalue }} {{ ps.sessionunit }}</td>
|
||||
<td>
|
||||
{% if ps.is_public %}
|
||||
<i class="fas fa-lock-open-alt"></i>
|
||||
{% else %}
|
||||
<i class="fas fa-lock-alt"></i>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if ps.manager == request.user %}
|
||||
<a class="small"
|
||||
href="/rowers/sessions/{{ ps.id }}/templateedit/user/{{ rower.user.id }}">
|
||||
<i class="fas fa-pencil-alt fa-fw"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
<a class="small"
|
||||
href="/rowers/sessions/{{ ps.id }}/clone/user/{{ rower.user.id }}">
|
||||
<i class="fas fa-clone fa-fw"></i>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
{% if ps.manager == request.user %}
|
||||
<a class="small"
|
||||
href="/rowers/sessions/{{ ps.id }}/share/">
|
||||
<i class="fas fa-share-alt-square fa-fw"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if ps.manager == request.user %}
|
||||
<a class="small"
|
||||
href="/rowers/sessions/{{ ps.id }}/makeprivate/">
|
||||
<i class="fas fa-lock fa-fw"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if ps.manager == request.user %}
|
||||
<a class="small" href="/rowers/sessions/{{ ps.id }}/deleteconfirm/?next={{ request.path|urlencode }}"><i class="fas fa-trash-alt fa-fw"></i></a>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td> {{ ps.sessionvalue }} </td>
|
||||
<td> {{ ps.sessionunit }} </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
@@ -55,6 +108,9 @@
|
||||
{% endif %}
|
||||
|
||||
</li>
|
||||
<li class="grid_4">
|
||||
<a href="/rowers/sessions/createtemplate/">Add a session to the library</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user