Commit b8af8565 authored by Patrick Kimber's avatar Patrick Kimber

tidy menu and tables #1181

parent 3f9bcb37
<li class="pure-menu-item">
<a href="{% url 'booking.list' %}" class="pure-menu-link">
<i class="fa fa-calendar"></i>
Bookings
</a>
</li>
......@@ -30,39 +30,37 @@
</div>
<div class="pure-g">
<div class="pure-u-1">
<div class="l-box">
<table class="pure-table pure-table-bordered">
<thead>
<tr>
<th>Description</th>
<th>Property</th>
<th>Yes/No</th>
<table class="pure-table pure-table-bordered">
<thead>
<tr>
<th>Description</th>
<th>Property</th>
<th>Yes/No</th>
</tr>
</thead>
<tbody>
{% for o in object_list %}
<tr valign="top">
<td>
<a href="{% url 'booking.category.update' o.pk %}">
<i class="fa fa-edit"></i>
{{ o.description }}
</a>
</td>
<td>
Promote
<br />
Routine
</td>
<td>
{{ o.promote|yesno|capfirst }}
<br />
{{ o.routine|yesno|capfirst }}
</td>
</tr>
</thead>
<tbody>
{% for o in object_list %}
<tr valign="top">
<td>
<a href="{% url 'booking.category.update' o.pk %}">
<i class="fa fa-edit"></i>
{{ o.description }}
</a>
</td>
<td>
Promote
<br />
Routine
</td>
<td>
{{ o.promote|yesno|capfirst }}
<br />
{{ o.routine|yesno|capfirst }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock content %}
......
......@@ -31,37 +31,34 @@
</div>
<div class="pure-g">
<div class="pure-u-1">
<div class="l-box">
<table class="pure-table pure-table-bordered">
<thead>
<tr>
<th>Title</th>
<th>Description</th>
<table class="pure-table pure-table-bordered">
<thead>
<tr>
<th>Title</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for o in object_list %}
<tr valign="top">
<td>
<a href="{% url 'booking.location.update' o.pk %}">
<i class="fa fa-edit"></i>
{{ o.title }}
</a>
</td>
<td>
{% autoescape off %}
{{ o.description }}
{% endautoescape %}
<a href="{% url 'booking.location' o.pk %}">
Click to see the location detail page...
</a>
</td>
</tr>
</thead>
<tbody>
{% for o in object_list %}
<tr valign="top">
<td>
<a href="{% url 'booking.location.update' o.pk %}">
<i class="fa fa-edit"></i>
{{ o.title }}
</a>
</td>
<td>
{% autoescape off %}
{{ o.description }}
{% endautoescape %}
<a href="{% url 'booking.location' o.pk %}">
Click to see the location detail page...
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock content %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment