Fill VSP server field with Proxmox VM CT ID data
This commit is contained in:
@@ -4,15 +4,15 @@
|
||||
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
|
||||
<t t-call="portal.portal_docs_entry">
|
||||
<t t-set="title">VPS Servers</t>
|
||||
<t t-set="url" t-value="'/my/vps-servers'" />
|
||||
<t t-set="placeholder_count" t-value="'vps_server_count'" />
|
||||
<t t-set="url" t-value="'/my/vps-servers'"/>
|
||||
<t t-set="placeholder_count" t-value="'vps_server_count'"/>
|
||||
</t>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="portal_my_vps_servers" name="My VPS Servers">
|
||||
<t t-call="portal.portal_layout">
|
||||
<t t-set="breadcrumbs_searchbar" t-value="True" />
|
||||
<t t-set="breadcrumbs_searchbar" t-value="True"/>
|
||||
<t t-call="portal.portal_searchbar">
|
||||
<t t-set="title">VPS Servers</t>
|
||||
</t>
|
||||
@@ -20,9 +20,10 @@
|
||||
<thead>
|
||||
<tr class="active">
|
||||
<th>Server Name</th>
|
||||
<th class='d-none d-md-table-cell'>IP Address</th>
|
||||
<th class='d-none d-md-table-cell'>CPU</th>
|
||||
<th class='text-right'>RAM</th>
|
||||
<th class='d-none d-md-table-cell'>IPv4 Address</th>
|
||||
<th class='d-none d-md-table-cell'>IPv6 Address</th>
|
||||
<th class='text-right'>CPU</th>
|
||||
<th class='text-right'>RAM (GB)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -32,17 +33,20 @@
|
||||
<a t-att-href="server.get_portal_url()"
|
||||
t-attf-class="tr_vps_server_link"
|
||||
t-att-title="server.name">
|
||||
<t t-esc="server.name" />
|
||||
<t t-esc="server.name"/>
|
||||
</a>
|
||||
</td>
|
||||
<td class="d-none d-md-table-cell">
|
||||
<span t-field="server.ip_address" />
|
||||
<span t-field="server.ipv4_address"/>
|
||||
</td>
|
||||
<td class="d-none d-md-table-cell">
|
||||
<span t-field="server.cpu" />
|
||||
<span t-field="server.ipv6_address"/>
|
||||
</td>
|
||||
<td class='text-right'>
|
||||
<span t-field="server.ram" />
|
||||
<span t-field="server.cpu"/>
|
||||
</td>
|
||||
<td class='text-right'>
|
||||
<span t-field="server.ram"/>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
@@ -68,7 +72,10 @@
|
||||
<t t-set="card_body">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6">
|
||||
<strong>IP Address:</strong> <span t-field="vps_server.ip_address"/>
|
||||
<strong>IPv4 Address:</strong> <span t-field="vps_server.ipv4_address"/>
|
||||
</div>
|
||||
<div class="col-12 col-md-6">
|
||||
<strong>IPv6 Address:</strong> <span t-field="vps_server.ipv6_address"/>
|
||||
</div>
|
||||
<div class="col-12 col-md-6">
|
||||
<strong>CPU:</strong> <span t-field="vps_server.cpu"/> cores
|
||||
|
||||
Reference in New Issue
Block a user