view_customer_old_demands.html
1 <script>
2 $(".content-header").hide();
3 </script>
4 <#include "action_bar.html" />
5 <#include "view_customer_tabs.html" />
6 <#include "demands_utils.html" />
7 <@actionMenu panels=panels customer=customer />
8 <div class="gru-wrapper">
9 <div id="customer-panel" class="row bg-gru-dark">
10 <div class="col-xs-12 col-sm-offset-4 col-sm-8">
11 <@customerDetails customer=customer />
12 </div>
13 </div>
14 <div id="demand-panel" class="row bg-gru-dark gru">
15 <div class="col-xs-12 col-sm-12">
16 <@tabs tab="oldDemands" customer=customer />
17 <div class="tab-content">
18 <div class="row">
19 <div class="col-xs-12 col-sm-offset-1 col-sm-10">
20 <#if demands_list?size > 0 >
21 <div role="tabpanel" class="tab-pane active">
22 <table class="table table-striped table-hover">
23 <thead>
24 <tr>
25 <th class="col-xs-12 col-sm-3">#i18n{gru.view_customer_demand.demand.panel.list.reference}</th>
26 <th class="col-xs-12 col-sm-3">#i18n{gru.view_customer_demand.demand.panel.deal.in}</th>
27 <th class="col-xs-12 col-sm-3">#i18n{gru.view_customer_demand.demand.panel.list.status.agent}</th>
28 <th class="col-xs-12 col-sm-3">#i18n{gru.view_customer_demand.demand.panel.list.demand.type}</th>
29 </tr>
30 </thead>
31 <tbody>
32 <#list demands_list as demand>
33 <tr data-url="jsp/admin/plugins/gru/ManageCustomers.jsp?view=viewDemand&id_demand=${demand.id}&id_demand_type=${demand.typeId}&id_customer=${customer.id}">
34 <td>
35 <a href="jsp/admin/plugins/gru/ManageCustomers.jsp?view=viewDemand&id_demand=${demand.id}&id_demand_type=${demand.typeId}&id_customer=${customer.id}">
36 ${demand.reference}
37 </a>
38 </td>
39 <td class="text-center">${displayTimeOpenedTicket2(demand)}</td>
40 <td>${demand.agentStatus!}</td>
41 <td>${demand.title}</td>
42 </tr>
43 </#list>
44 </tbody>
45 </table>
46 </div>
47 <div class="paginator-content">
48 <@paginationAdmin paginator=paginator combo=1 />
49 </div>
50 <#else>
51 <div id="no-content" >
52 <h2 class="text-muted">#i18n{gru.view_customer_demand.no.content.old}</h2>
53 <img class="img-responsive" src="images/admin/skin/plugins/gru/no_user.jpg" alt="No content" title="">
54 </div>
55 </#if>
56 </div>
57 </div>
58 </div>
59 </div>
60 </div>
61 </div>
62 <script src="js/plugins/gru/gru.js"></script>
63 <script src="js/plugins/gru/gru_action_bar.js"></script>
64 <script>
65 $(function () {
66 // Set link on whole tr
67 $("tr").on('click', function (e) {
68 redirectOnClick(this);
69 });
70 });
71 </script>