brotherton-erpnext/website/templates/pages/ticket.html

49 lines
1.2 KiB
HTML
Raw Normal View History

{% extends "app/website/templates/html/page.html" %}
2013-03-22 07:15:44 +00:00
{% set title=doc.name %}
{% block content %}
2013-08-21 12:18:08 +00:00
<div class="col-md-12">
2013-03-22 07:15:44 +00:00
<ul class="breadcrumb">
2013-08-29 12:16:40 +00:00
<li><a href="index">Home</a></li>
<li><a href="account">My Account</a></li>
<li><a href="tickets">My Tickets</a></li>
<li class="active"><i class="icon-ticket icon-fixed-width"></i> {{ doc.name }}</li>
2013-03-22 07:15:44 +00:00
</ul>
2013-08-29 12:16:40 +00:00
<h3><i class="icon-ticket icon-fixed-width"></i> {{ doc.name }}</h3>
2013-03-22 07:15:44 +00:00
<hr>
{%- if doc.status -%}
<div class="row">
2013-08-21 12:18:08 +00:00
<div class="col-md-2">
2013-03-22 07:15:44 +00:00
<div class="label">{{ doc.status }}</div>
</div>
2013-08-21 12:18:08 +00:00
<div class="col-md-7">
2013-03-22 07:15:44 +00:00
{{ doc.subject }}
</div>
2013-08-21 12:18:08 +00:00
<div class="col-md-3">
2013-03-22 07:15:44 +00:00
{{ utils.formatdate(doc.transaction_date) }}
</div>
</div>
<br>
<h4>Messages</h4>
{%- if doclist.get({"doctype":"Communication"}) -%}
<div style="font-size: 13px;">
<table class="table table-bordered table-striped">
<tbody>
{%- for comm in doclist.get({"doctype":"Communication"}) %}
<tr>
<td>
<h5>{{ comm.sender }} on {{ utils.formatdate(doc.modified) }}</h5>
<p>{{ comm.content }}</p>
</td>
</tr>
{% endfor -%}
</tbody>
</table>
</div>
{%- else -%}
<div class="alert">No messages</div>
{%- endif -%}
{%- endif -%}
</div>
{% endblock %}