Commit 60a11fd0 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

lookout formatting

parent 15e52af6
......@@ -140,7 +140,7 @@ SRCT Bookshare • {{ student.user.first_name }} {{ student.user.last_name }}
<tr>
{% endif %}
<td class="text-center"><h5>{{ bid.listing.isbn }}</h5></td>
<td class="text-center"><h5><a href="{{ bid.listing.get_absolute_url }}">{{ bid.listing.isbn|isbn_name }}<a/></h5></td>
<td class="text-center"><h5><a href="{{ bid.listing.get_absolute_url }}">{{ bid.listing.isbn|isbn_name|title }}<a/></h5></td>
<td class="text-center"><h5>${{ bid.price }}</h5></td>
{% endfor %}
</tbody>
......@@ -178,7 +178,7 @@ SRCT Bookshare &bull; {{ student.user.first_name }} {{ student.user.last_name }}
{% for lookout in lookouts %}
<tr>
<td class="text-center"><h5>{{ lookout.isbn }}</h5></td>
<td class="text-center"><h5><a href="{{ lookout.get_absolute_url }}">{{ lookout.isbn|isbn_name }}<a/></h5></td>
<td class="text-center"><h5><a href="{{ lookout.get_absolute_url }}">{{ lookout.isbn|isbn_name|title }}<a/></h5></td>
<td class="text-center"><h5><a href="{% url 'delete_lookout' lookout.slug %}"><span class="label label-danger">Delete</span></a></h5></td>
{% endfor %}
</tbody>
......
......@@ -12,7 +12,7 @@ SRCT Bookshare &bull; Delete Lookout
<div class="row text-center">
<form action="" method="post">{% csrf_token %}
<h3>Are you sure you want to delete your lookout for <em>{{ lookout.isbn|isbn_name }}</em>?</h3>
<h3>Are you sure you want to delete your lookout for <em>{{ lookout.isbn|isbn_name|title }}</em>?</h3>
<input type="submit" value="Confirm" class="btn btn-danger btn-sm" />
<input type="cancel" value="Never Mind" class="btn btn-default btn-sm" onclick="history.back()"/>
</form>
......
......@@ -12,7 +12,7 @@ SRCT Bookshare &bull; Lookouts
<div class="row">
<div class="col-sm-12 text-center">
<h1><strong>SRCT</strong>&#8203;BOOKSHARE</h1>
<p class="lead"><strong>Your lookout for <em>{{ lookout.isbn|isbn_name }}</em>.</strong></p>
<p class="lead"><strong>Your lookout for <em>{{ lookout.isbn|isbn_name|title }}</em>.</strong></p>
<a href="{% url 'delete_lookout' lookout.slug %}"><button type="button" class="btn btn-danger btn-xs">Delete this Lookout</button></a>
</div>
</div>
......
......@@ -25,7 +25,7 @@ SRCT Bookshare &bull; Homepage
{% if lookouts %}
{% for lookout in lookouts %}
<legend><i class="fa fa-book"></i> <a href="{{ lookout.get_absolute_url }}">{{ lookout.isbn|isbn_name }}</a></legend>
<legend><i class="fa fa-book"></i> <a href="{{ lookout.get_absolute_url }}">{{ lookout.isbn|isbn_name|title }}</a></legend>
<div class="row">
{% for listing in lookout.get_listings %}
{% if not listing.cancelled or listing.sold %}
......
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