-
Notifications
You must be signed in to change notification settings - Fork 64
/
domainrenewals.tpl
121 lines (105 loc) · 5.7 KB
/
domainrenewals.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{include file="orderforms/standard_cart/common.tpl"}
<div id="order-standard_cart">
<div class="row">
<div class="pull-md-right col-md-9">
<div class="header-lined">
<h1>{$LANG.domainrenewals}</h1>
</div>
</div>
<div class="col-md-3 pull-md-left sidebar hidden-xs hidden-sm">
{include file="orderforms/standard_cart/sidebar-categories.tpl"}
</div>
<div class="col-md-9 pull-md-right">
{include file="orderforms/standard_cart/sidebar-categories-collapsed.tpl"}
<p>{$LANG.domainrenewdesc}</p>
<form method="post" action="cart.php?a=add&renewals=true">
<table class="table table-hover table-striped renewals">
<thead>
<tr>
<th width="20"></th>
<th>{$LANG.orderdomain}</th>
<th class="text-center">{$LANG.domainstatus}</th>
<th class="text-center">{$LANG.domaindaysuntilexpiry}</th>
<th></th>
</tr>
</thead>
<tbody>
{foreach from=$renewals item=renewal}
<tr>
<td>
{if !$renewal.beforeRenewLimit && !($renewal.pastGracePeriod && $renewal.pastRedemptionGracePeriod)}
<input type="checkbox" name="renewalids[]" value="{$renewal.id}" />
{/if}
</td>
<td>
{$renewal.domain}
</td>
<td class="text-center">
{$renewal.status}
</td>
<td class="text-center">
{if $renewal.daysuntilexpiry > 30}
<span class="text-success">
{$renewal.daysuntilexpiry} {$LANG.domainrenewalsdays}
</span>
{elseif $renewal.daysuntilexpiry > 0}
<span class="text-danger">
{$renewal.daysuntilexpiry} {$LANG.domainrenewalsdays}
</span>
{elseif $renewal.daysuntilexpiry === 0}
<span class="text-danger">
{lang key="expiresToday"}
</span>
{else}
<span>
{$renewal.daysuntilexpiry*-1} {$LANG.domainrenewalsdaysago}
</span>
{/if}
{if $renewal.ingraceperiod || $renewal.inRedemptionGracePeriod}
<br />
<span class="text-danger">
{if $renewal.inGracePeriod}
{lang key='domainrenewalsingraceperiod'}
{else}
{lang key='domainRenewalsInRedemptionGracePeriod'}
{/if}
</span>
{/if}
</td>
<td>
{if $renewal.beforerenewlimit}
<span class="text-danger">
{$LANG.domainrenewalsbeforerenewlimit|sprintf2:$renewal.beforerenewlimitdays}
</span>
{elseif $renewal.pastgraceperiod && $renewal.pastRedemptionGracePeriod}
<span class="text-danger">
{$LANG.domainrenewalspastgraceperiod}
</span>
{else}
<select class="form-control" name="renewalperiod[{$renewal.id}]">
{foreach from=$renewal.renewaloptions item=renewaloption}
<option value="{$renewaloption.period}">
{$renewaloption.period} {$LANG.orderyears} @ {$renewaloption.price}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
{foreachelse}
<tr class="carttablerow">
<td colspan="5">{$LANG.domainrenewalsnoneavailable}</td>
</tr>
{/foreach}
</tbody>
</table>
<p class="text-center">
<button type="submit" class="btn btn-success">
<i class="fa fa-shopping-cart"></i>
{$LANG.ordernowbutton}
</button>
</p>
</form>
</div>
</div>
</div>