forked from WHMCS/templates-six
-
Notifications
You must be signed in to change notification settings - Fork 0
/
managessl.tpl
90 lines (86 loc) · 6.17 KB
/
managessl.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{include file="$template/includes/tablelist.tpl" tableName="SslList" startOrderCol="3" filterColumn="0" noSortColumns="4"}
<div class="alert alert-table-ssl-manage hidden"></div>
<div class="table-container clearfix">
<table id="tableSslList" class="table table-list">
<thead>
<tr>
<th>Domain</th>
<th>SSL Product</th>
<th>Order Date</th>
<th>Renewal Date</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{foreach $sslProducts as $sslProduct}
<tr>
{if $sslProduct->addonId && $sslProduct->addonId > 0}
<td>
{if $sslProduct->status == $sslStatusAwaitingConfiguration}
<label class="label label-info">Awaiting Configuration</label>
{else}
{if $sslProduct->addon->service->domain}{$sslProduct->addon->service->domain}{else}-{/if}
{if $sslProduct->addon->nextDueDate instanceof Carbon}
{if $sslProduct->addon->nextDueDate->isPast()}
<label class="label label-default">Expired</label>
{elseif $sslProduct->addon->nextDueDate->diffInDays() < 60}
<label class="label label-danger">Expiring Soon!</label>
{/if}
{/if}
{/if}
</td>
<td>
{$sslProduct->addon->productAddon->name}
<label class="label label-{if $sslProduct->validationType == 'DV'}default{elseif $sslProduct->validationType == 'OV'}warning{elseif $sslProduct->validationType == 'EV'}success{/if}">
{$sslProduct->validationType}
</label>
</td>
<td>{if $sslProduct->addon->registrationDate instanceof Carbon}<span class="hidden">{$sslProduct->addon->registrationDate->toDateString()}</span>{$sslProduct->addon->registrationDate->format({$smarty.const.CLIENT_DATE_FORMAT})}{/if}</td>
<td>{if $sslProduct->addon->nextDueDate instanceof Carbon}<span class="hidden">{$sslProduct->addon->nextDueDate->toDateString()}</span>{$sslProduct->addon->nextDueDate->format({$smarty.const.CLIENT_DATE_FORMAT})}{/if}</td>
<td>
{if $sslProduct->status == $sslStatusAwaitingIssuance}
<button class="btn btn-default btn-sm btn-resend-approver-email" data-url="{routePath('store-ssl-certificates-resend-approver-email')}" data-addonid="{$sslProduct->addonId}">Resend Email</button>
{/if}
{if $sslProduct->status == $sslStatusAwaitingConfiguration}
<a href="{$sslProduct->getConfigurationUrl()}" class="btn btn-default btn-sm">Configure</a>
{/if}
{if $sslProduct->addon->nextDueDate instanceof Carbon && $sslProduct->addon->nextDueDate->subDay()->isFuture()}
<a href="#" class="btn btn-default btn-sm"{if $sslProduct->validationType == 'EV'} disabled="disabled"{/if}>Upgrade</a>
{/if}
<a href="#" class="btn btn-default btn-sm">Renew</a>
</td>
{else}
<td>
{if $sslProduct->status == $sslStatusAwaitingConfiguration}
<label class="label label-info">Awaiting Configuration</label>
{else}
{if $sslProduct->service->domain}{$sslProduct->service->domain}{else}-{/if}
{if $sslProduct->service->nextDueDate instanceof Carbon && $sslProduct->service->nextDueDate->isPast()}
<label class="label label-default">Expired</label>
{elseif $sslProduct->service->nextDueDate instanceof Carbon && $sslProduct->service->nextDueDate->diffInDays() < 60}
<label class="label label-danger">Expiring Soon!</label>
{/if}
{/if}
</td>
<td>
{$sslProduct->service->product->name}
<label class="label label-{if $sslProduct->validationType == 'DV'}default{elseif $sslProduct->validationType == 'OV'}warning{elseif $sslProduct->validationType == 'EV'}success{/if}">
{$sslProduct->validationType}
</label>
</td>
<td>{if $sslProduct->service->registrationDate instanceof Carbon}<span class="hidden">{$sslProduct->service->registrationDate->toDateString()}</span>{$sslProduct->service->registrationDate->format({$smarty.const.CLIENT_DATE_FORMAT})}{/if}</td>
<td>{if $sslProduct->service->nextDueDate instanceof Carbon}<span class="hidden">{$sslProduct->service->nextDueDate->toDateString()}</span>{$sslProduct->service->nextDueDate->format({$smarty.const.CLIENT_DATE_FORMAT})}{/if}</td>
<td>
{if $sslProduct->status == $sslStatusAwaitingIssuance}
<button class="btn btn-default btn-sm btn-resend-approver-email" data-url="{routePath('store-ssl-certificates-resend-approver-email')}" data-serviceid="{$sslProduct->serviceId}">Resend Email</button>
{/if}
{if $sslProduct->status == $sslStatusAwaitingConfiguration}
<a href="{$sslProduct->getConfigurationUrl()}" class="btn btn-default btn-sm">Configure</a>
{/if}
</td>
{/if}
</tr>
{/foreach}
</tbody>
</table>
</div>