Added buttons to view and edit people from index.

Updated additional ajax realted template things
This commit is contained in:
Tom Price
2014-11-04 00:11:04 +00:00
parent 194d9d6782
commit d8f399bfe3
6 changed files with 39 additions and 12 deletions

View File

@@ -28,7 +28,12 @@
<td>{{ person.email }}</td>
<td>{{ person.phone }}</td>
<td>{{ person.notes|yesno|capfirst }}</td>
<td>Add buttons</td>
<td>
<a href="{% url 'person_detail' person.pk %}" class="btn btn-default" data-toggle="modal" data-target="#modal">
<span class="glyphicon glyphicon-eye-open"></span>
</a>
<a href="{% url 'person_update' person.pk %}" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span></a>
</td>
</tr>
{% empty %}
<tr>