some error
This commit is contained in:
parent
34f8693c17
commit
10c007f739
|
@ -138,7 +138,6 @@ addEventListener("DOMContentLoaded", function() {
|
||||||
<th>HDD</th>
|
<th>HDD</th>
|
||||||
<th>Network</th>
|
<th>Network</th>
|
||||||
<th>Control</th>
|
<th>Control</th>
|
||||||
<th></th>
|
|
||||||
<th>Time Left</th>
|
<th>Time Left</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -215,8 +214,8 @@ addEventListener("DOMContentLoaded", function() {
|
||||||
<td data-title="Category">{{ service.category }}</td>
|
<td data-title="Category">{{ service.category }}</td>
|
||||||
<td data-title="Description" >{{ service.description }}</td>
|
<td data-title="Description" >{{ service.description }}</td>
|
||||||
<td data-title="Last Charged">{{ moment(service.date_last_charge).format('lll') }} ({{ moment(service.date_last_charge).fromNow() }})</td>
|
<td data-title="Last Charged">{{ moment(service.date_last_charge).format('lll') }} ({{ moment(service.date_last_charge).fromNow() }})</td>
|
||||||
{% if service.warning == True %}
|
{% if service.warning == True % or service.enabled == True}
|
||||||
<td data-title="Time Left"><button class="btn btn-default btn-success" onclick="window.open('/smanager/activate/{{ service.pid }}');"><span class="glyphicon glyphicon-bell" aria-hidden="true"></span> Renew</button></td>
|
<td data-title="Time Left"><button class="btn btn-default btn-success" onclick="window.open('/smanager/activate/{{ service.pid }}');"><span class="glyphicon glyphicon-bell" aria-hidden="true"></span> Activate</button></td>
|
||||||
{% else %}
|
{% else %}
|
||||||
<td data-title="Time Left">{{ service.daysleft }} day(s)</td>
|
<td data-title="Time Left">{{ service.daysleft }} day(s)</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -249,11 +248,15 @@ addEventListener("DOMContentLoaded", function() {
|
||||||
<tr>
|
<tr>
|
||||||
<td data-title="Domain"><b><a href="http://{{ domain.fqdn }}">{{ domain.fqdn }}</a></b></td>
|
<td data-title="Domain"><b><a href="http://{{ domain.fqdn }}">{{ domain.fqdn }}</a></b></td>
|
||||||
<td data-title="Expiry Date">{{ domain.date_expire }}</td>
|
<td data-title="Expiry Date">{{ domain.date_expire }}</td>
|
||||||
|
{% if domain.enabled == True %}
|
||||||
{% if domain.warning == True %}
|
{% if domain.warning == True %}
|
||||||
<td data-title="Time Left"><button class="btn btn-default btn-success" onclick="window.open('/dmanager/activate/{{ domain.pid }}');"><span class="glyphicon glyphicon-bell" aria-hidden="true"></span> Renew</button></td>
|
<td data-title="Time Left"><button class="btn btn-default btn-success" onclick="window.open('/dmanager/activate/{{ domain.pid }}');"><span class="glyphicon glyphicon-bell" aria-hidden="true"></span> Activate</button></td>
|
||||||
{% else %}
|
{% else %}
|
||||||
<td data-title="Time Left">{{ domain.daysleft }} day(s)</td>
|
<td data-title="Time Left">{{ domain.daysleft }} day(s)</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
<td data-title="Time Left">EXPIRED</td>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue