| {% extends "layout.html" %} | |
| {% import "bootstrap/wtf.html" as wtf %} | |
| {% block title %}Ticket {{ ticket.number }}{% endblock title %} | |
| {% block page_content %} | |
| <div class="panel panel-primary"> | |
| <div class="panel-body"> | |
| <table class="table table-condensed table-striped"> | |
| <tr> | |
| <th>Number:</th> | |
| <td>{{ ticket.number }}</td> | |
| </tr> | |
| <tr> | |
| <th>Status:</th> | |
| <td>{{ ticket.status.name }}</td> | |
| </tr> | |
| <tr> | |
| <th>Submitted On:</th> | |
| <td>{{ ticket.created_on }}</td> | |
| </tr> | |
| <tr> | |
| <th>Last Updated:</th> | |
| <td>{{ ticket.updated_on }}</td> | |
| </tr> | |
| <tr> | |
| <th>Subject:</th> | |
| <td>{{ ticket.subject }}</td> | |
| </tr> | |
| <tr> | |
| <th>Details:</th> | |
| <td>{{ ticket.body }}</td> | |
| </tr> | |
| <tr> | |
| <th>Comments ({{ ticket.comments|length }}):</th> | |
| <td> | |
| <table class="table table-condensed table-striped"> | |
| {% for comment in ticket.comments %} | |
| <tr> | |
| <th>Commenter: {{ comment.commenter }}</th> | |
| <td>{{ comment.body }}</td> | |
| </tr> | |
| {% endfor %} | |
| <tr> | |
| <td colspan="2"> | |
| {{ wtf.quick_form(form) }} | |
| </td> | |
| </tr> | |
| </table> | |
| </td> | |
| </tr> | |
| </table> | |
| </div> | |
| </div> | |
| {% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment