nicer design
This commit is contained in:
@@ -46,8 +46,11 @@
|
||||
#mypointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
div.columns { width: 100%; }
|
||||
div.columns div { width: 20%; padding: 10px; float: left; }
|
||||
</style>
|
||||
|
||||
|
||||
{% if team %}
|
||||
<h1>{{ team.name }} Team Workouts</h1>
|
||||
{% else %}
|
||||
@@ -153,50 +156,52 @@
|
||||
</span>
|
||||
</p>
|
||||
</li>
|
||||
<li class="grid_4">
|
||||
|
||||
{% if workouts %}
|
||||
<table class="listtable " style="width:100%">
|
||||
<tbody>
|
||||
{% for workout in workouts %}
|
||||
<tr>
|
||||
<td>
|
||||
{{ workout.workouttype }}
|
||||
</td>
|
||||
<td>
|
||||
{% if workout.name != '' %}
|
||||
<h2>
|
||||
<li class="grid_4 divlines">
|
||||
<div>
|
||||
{% if workout.name != '' %}
|
||||
<h2>
|
||||
{{ workout.name }}
|
||||
</h2>
|
||||
{% else %}
|
||||
<h2>
|
||||
{% else %}
|
||||
<h2>
|
||||
No Name
|
||||
</h2>
|
||||
{% endif %}
|
||||
<p> {{ workout.date|date:"Y-m-d" }} {{ workout.starttime|date:"H:i" }} </p>
|
||||
<p>{{ workout.distance }}m {{ workout.duration |durationprint:"%H:%M:%S.%f" }} </p>
|
||||
</td>
|
||||
<td>
|
||||
<p>{% if workout|may_edit:request %}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="columns">
|
||||
<div>
|
||||
{{ workout.workouttype }}
|
||||
</div>
|
||||
<div>
|
||||
{{ workout.date|date:"Y-m-d" }} {{ workout.starttime|date:"H:i" }}
|
||||
</div>
|
||||
<div>
|
||||
{{ workout.distance }}m
|
||||
</div>
|
||||
<div>
|
||||
{{ workout.duration |durationprint:"%H:%M:%S.%f" }}
|
||||
</div>
|
||||
<div>
|
||||
{% if workout|may_edit:request %}
|
||||
<a class="small"
|
||||
href={% url rower.defaultlandingpage id=workout.id|encode %}
|
||||
title="Edit">
|
||||
<i class="fas fa-search fa-fw"></i>
|
||||
</a>
|
||||
{% else %}
|
||||
|
||||
{% endif %}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
href={% url rower.defaultlandingpage id=workout.id|encode %}
|
||||
title="Edit">
|
||||
<i class="fas fa-search fa-fw"></i></a>
|
||||
{% else %}
|
||||
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% else %}
|
||||
<p> No workouts found </p>
|
||||
<li> No workouts found </li>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% if announcements %}
|
||||
<li class="grid_4">
|
||||
<h3>What's New?</h3>
|
||||
|
||||
@@ -2357,7 +2357,7 @@ def workouts_view(request,message='',successmessage='',
|
||||
else:
|
||||
searchform = SearchForm()
|
||||
|
||||
paginator = Paginator(workouts,20) # show 25 workouts per page
|
||||
paginator = Paginator(workouts,10) # show 25 workouts per page
|
||||
page = request.GET.get('page',1)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user