2013-04-03 11:04:23 +00:00
|
|
|
{% extends "app/website/templates/html/page.html" %}
|
2013-03-22 07:15:44 +00:00
|
|
|
|
|
|
|
{% set title=doc.name %}
|
|
|
|
|
2013-09-04 11:16:08 +00:00
|
|
|
{% set status_label = {
|
|
|
|
"Open": "label-success",
|
|
|
|
"To Reply": "label-danger",
|
|
|
|
"Closed": "label-default"
|
|
|
|
} %}
|
|
|
|
|
2013-03-22 07:15:44 +00:00
|
|
|
{% 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 -%}
|
2013-09-04 11:16:08 +00:00
|
|
|
{% if doc.status == "Waiting for Customer" -%}
|
|
|
|
{% set status = "To Reply" %}
|
|
|
|
{% else %}
|
|
|
|
{% set status = doc.status %}
|
|
|
|
{%- endif -%}
|
2013-03-22 07:15:44 +00:00
|
|
|
<div class="row">
|
2013-09-04 11:16:08 +00:00
|
|
|
<div class="col-md-2" style="margin-bottom: 7px;">
|
|
|
|
<span class="label {{ status_label.get(status) or 'label-default' }}">{{ status }}</span>
|
2013-03-22 07:15:44 +00:00
|
|
|
</div>
|
2013-09-04 11:16:08 +00:00
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="row col-md-12">{{ doc.subject }}</div>
|
2013-03-22 07:15:44 +00:00
|
|
|
</div>
|
2013-09-04 11:16:08 +00:00
|
|
|
<div class="col-md-2 pull-right">
|
|
|
|
<span class="text-muted">{{ utils.formatdate(doc.creation) }}</span>
|
2013-03-22 07:15:44 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<h4>Messages</h4>
|
|
|
|
{%- if doclist.get({"doctype":"Communication"}) -%}
|
2013-09-04 11:16:08 +00:00
|
|
|
<div>
|
2013-03-22 07:15:44 +00:00
|
|
|
<table class="table table-bordered table-striped">
|
|
|
|
<tbody>
|
|
|
|
{%- for comm in doclist.get({"doctype":"Communication"}) %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
2013-09-04 11:16:08 +00:00
|
|
|
<h5 style="text-transform: none">
|
|
|
|
{{ comm.sender }} on {{ utils.formatdate(doc.modified) }}</h5>
|
|
|
|
<p>{{ webnotes.utils.is_html(comm.content) and comm.content or
|
|
|
|
comm.content.replace("\n", "<br>")}}</p>
|
2013-03-22 07:15:44 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor -%}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{%- else -%}
|
|
|
|
<div class="alert">No messages</div>
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endif -%}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|