Add restart vps in portal

This commit is contained in:
Mario
2024-08-04 23:45:11 +02:00
parent b79dbe4708
commit da325f0c79
5 changed files with 26 additions and 1 deletions

View File

@@ -70,6 +70,15 @@
</h5>
</t>
<t t-set="card_body">
<div class="row mb-4">
<div class="col-12 text-right">
<a t-att-href="'/my/vps/%s/restart' % vps_server.id"
class="btn btn-primary"
onclick="return confirm('Are you sure you want to restart this VPS?');">
<i class="fa fa-refresh"/> Restart VPS
</a>
</div>
</div>
<div class="row">
<div class="col-12 col-md-6">
<strong>IPv4 Address:</strong> <span t-field="vps_server.ipv4_address"/>
@@ -89,6 +98,9 @@
<div class="col-12 col-md-6">
<strong>Operating System:</strong> <span t-field="vps_server.os"/>
</div>
<div class="col-12 col-md-6">
<strong>State:</strong> <span t-field="vps_server.state"/>
</div>
</div>
</t>
</t>