Converted all templates and code to new CPHP advanced parser
parent
cb24748048
commit
e3bca7524b
@ -1,14 +1,14 @@
|
||||
<form method="post" action="/admin/container/<%?id>/suspend/">
|
||||
<%if suspended == false>
|
||||
<h2><%!title-admin-vps-suspend></h2>
|
||||
<p><%!vps-admin-suspend-text></p>
|
||||
<form method="post" action="/admin/container/{%?id}/suspend/">
|
||||
{%if suspended == false}
|
||||
<h2>{%!title-admin-vps-suspend}</h2>
|
||||
<p>{%!vps-admin-suspend-text}</p>
|
||||
<input type="hidden" name="action" value="suspend">
|
||||
<button type="submit" name="submit" class="padded"><%!button-admin-vps-suspend></button>
|
||||
<%/if><%if suspended == true>
|
||||
<h2><%!title-admin-vps-unsuspend></h2>
|
||||
<p><%!vps-admin-unsuspend-text></p>
|
||||
<button type="submit" name="submit" class="padded">{%!button-admin-vps-suspend}</button>
|
||||
{%/if}{%if suspended == true}
|
||||
<h2>{%!title-admin-vps-unsuspend}</h2>
|
||||
<p>{%!vps-admin-unsuspend-text}</p>
|
||||
<input type="hidden" name="action" value="unsuspend">
|
||||
<button type="submit" name="submit" class="padded"><%!button-admin-vps-unsuspend></button>
|
||||
<%/if>
|
||||
<button type="submit" name="submit" class="padded">{%!button-admin-vps-unsuspend}</button>
|
||||
{%/if}
|
||||
</form>
|
||||
|
||||
|
@ -1,52 +1,52 @@
|
||||
<h2><%!title-admin-containerlist></h2>
|
||||
<h2>{%!title-admin-containerlist}</h2>
|
||||
|
||||
<table class="vpslist">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th><%!list-column-hostname></th>
|
||||
<th><%!list-column-platform></th>
|
||||
<th><%!list-column-disk></th>
|
||||
<th><%!list-column-ram></th>
|
||||
<th><%!list-column-template></th>
|
||||
<th>{%!list-column-hostname}</th>
|
||||
<th>{%!list-column-platform}</th>
|
||||
<th>{%!list-column-disk}</th>
|
||||
<th>{%!list-column-ram}</th>
|
||||
<th>{%!list-column-template}</th>
|
||||
</tr>
|
||||
<%foreach container in containers>
|
||||
<tr class="clickable" data-url="/<%?container[id]>/">
|
||||
{%foreach container in containers}
|
||||
<tr class="clickable" data-url="/{%?container[id]}/">
|
||||
<td class="container-status">
|
||||
<%if container[status] == running>
|
||||
<img src="/images/icon_online.png" alt="<%!list-status-running>">
|
||||
<%/if><%if container[status] == stopped>
|
||||
<img src="/images/icon_offline.png" alt="<%!list-status-stopped>">
|
||||
<%/if><%if container[status] == suspended>
|
||||
<img src="/images/icon_suspended.png" alt="<%!list-status-suspended>">
|
||||
<%/if>
|
||||
{%if container[status] == running}
|
||||
<img src="/images/icon_online.png" alt="{%!list-status-running}">
|
||||
{%/if}{%if container[status] == stopped}
|
||||
<img src="/images/icon_offline.png" alt="{%!list-status-stopped}">
|
||||
{%/if}{%if container[status] == suspended}
|
||||
<img src="/images/icon_suspended.png" alt="{%!list-status-suspended}">
|
||||
{%/if}
|
||||
</td>
|
||||
<td>
|
||||
<a href="/<%?container[id]>/">
|
||||
<%?container[hostname]>
|
||||
<a href="/{%?container[id]}/">
|
||||
{%?container[hostname]}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/<%?container[id]>/">
|
||||
<%if container[virtualization-type] == 1>
|
||||
<a href="/{%?container[id]}/">
|
||||
{%if container[virtualization-type] == 1}
|
||||
OpenVZ
|
||||
<%/if><%if container[virtualization-type] == 2>
|
||||
{%/if}{%if container[virtualization-type] == 2}
|
||||
Xen PV
|
||||
<%/if><%if container[virtualization-type] == 3>
|
||||
{%/if}{%if container[virtualization-type] == 3}
|
||||
Xen HVM
|
||||
<%/if><%if container[virtualization-type] == 4>
|
||||
{%/if}{%if container[virtualization-type] == 4}
|
||||
KVM
|
||||
<%/if>
|
||||
{%/if}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<%?container[diskspace]>
|
||||
<span class="unit"><%?container[diskspace-unit]></span>
|
||||
{%?container[diskspace]}
|
||||
<span class="unit">{%?container[diskspace-unit]}</span>
|
||||
</td>
|
||||
<td>
|
||||
<%?container[guaranteed-ram]>
|
||||
<span class="unit"><%?container[guaranteed-ram-unit]></span>
|
||||
{%?container[guaranteed-ram]}
|
||||
<span class="unit">{%?container[guaranteed-ram-unit]}</span>
|
||||
</td>
|
||||
<td><%?container[template]></td>
|
||||
<td>{%?container[template]}</td>
|
||||
</tr>
|
||||
<%/foreach>
|
||||
{%/foreach}
|
||||
</table>
|
||||
|
@ -1,3 +1,3 @@
|
||||
<h2><%!title-admin-overview></h2>
|
||||
<h2>{%!title-admin-overview}</h2>
|
||||
|
||||
<p><%!admin-overview-message></p>
|
||||
<p>{%!admin-overview-message}</p>
|
||||
|
@ -1,86 +1,86 @@
|
||||
<h2><%!title-admin-userinfo></h2>
|
||||
<h2>{%!title-admin-userinfo}</h2>
|
||||
|
||||
<table class="userinfo vertical">
|
||||
<tr>
|
||||
<th><%!admin-title-id></th>
|
||||
<td><%?id></td>
|
||||
<th>{%!admin-title-id}</th>
|
||||
<td>{%?id}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!admin-title-username></th>
|
||||
<td><%?username></td>
|
||||
<th>{%!admin-title-username}</th>
|
||||
<td>{%?username}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!admin-title-email></th>
|
||||
<td><%?email></td>
|
||||
<th>{%!admin-title-email}</th>
|
||||
<td>{%?email}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!admin-title-accesslevel></th>
|
||||
<th>{%!admin-title-accesslevel}</th>
|
||||
<td>
|
||||
<%if accesslevel == 1>
|
||||
<%!admin-level-enduser>
|
||||
<%/if><%if accesslevel == 10>
|
||||
<%!admin-level-reseller>
|
||||
<%/if><%if accesslevel == 20>
|
||||
<%!admin-level-nodeadmin>
|
||||
<%/if><%if accesslevel == 30>
|
||||
<%!admin-level-masteradmin>
|
||||
<%/if>
|
||||
{%if accesslevel == 1}
|
||||
{%!admin-level-enduser}
|
||||
{%/if}{%if accesslevel == 10}
|
||||
{%!admin-level-reseller}
|
||||
{%/if}{%if accesslevel == 20}
|
||||
{%!admin-level-nodeadmin}
|
||||
{%/if}{%if accesslevel == 30}
|
||||
{%!admin-level-masteradmin}
|
||||
{%/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!admin-title-containers></th>
|
||||
<td><%?containercount></td>
|
||||
<th>{%!admin-title-containers}</th>
|
||||
<td>{%?containercount}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h3><%!header-admin-user-containers></h3>
|
||||
<h3>{%!header-admin-user-containers}</h3>
|
||||
<table class="vpslist">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th><%!list-column-hostname></th>
|
||||
<th><%!list-column-platform></th>
|
||||
<th><%!list-column-disk></th>
|
||||
<th><%!list-column-ram></th>
|
||||
<th><%!list-column-template></th>
|
||||
<th>{%!list-column-hostname}</th>
|
||||
<th>{%!list-column-platform}</th>
|
||||
<th>{%!list-column-disk}</th>
|
||||
<th>{%!list-column-ram}</th>
|
||||
<th>{%!list-column-template}</th>
|
||||
</tr>
|
||||
<%foreach container in containers>
|
||||
<tr class="clickable" data-url="/<%?container[id]>/">
|
||||
{%foreach container in containers}
|
||||
<tr class="clickable" data-url="/{%?container[id]}/">
|
||||
<td class="container-status">
|
||||
<%if container[status] == running>
|
||||
<img src="/images/icon_online.png" alt="<%!list-status-running>">
|
||||
<%/if><%if container[status] == stopped>
|
||||
<img src="/images/icon_offline.png" alt="<%!list-status-stopped>">
|
||||
<%/if><%if container[status] == suspended>
|
||||
<img src="/images/icon_suspended.png" alt="<%!list-status-suspended>">
|
||||
<%/if>
|
||||
{%if container[status] == running}
|
||||
<img src="/images/icon_online.png" alt="{%!list-status-running}">
|
||||
{%/if}{%if container[status] == stopped}
|
||||
<img src="/images/icon_offline.png" alt="{%!list-status-stopped}">
|
||||
{%/if}{%if container[status] == suspended}
|
||||
<img src="/images/icon_suspended.png" alt="{%!list-status-suspended}">
|
||||
{%/if}
|
||||
</td>
|
||||
<td>
|
||||
<a href="/<%?container[id]>/">
|
||||
<%?container[hostname]>
|
||||
<a href="/{%?container[id]}/">
|
||||
{%?container[hostname]}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/<%?container[id]>/">
|
||||
<%if container[virtualization-type] == 1>
|
||||
<a href="/{%?container[id]}/">
|
||||
{%if container[virtualization-type] == 1}
|
||||
OpenVZ
|
||||
<%/if><%if container[virtualization-type] == 2>
|
||||
{%/if}{%if container[virtualization-type] == 2}
|
||||
Xen PV
|
||||
<%/if><%if container[virtualization-type] == 3>
|
||||
{%/if}{%if container[virtualization-type] == 3}
|
||||
Xen HVM
|
||||
<%/if><%if container[virtualization-type] == 4>
|
||||
{%/if}{%if container[virtualization-type] == 4}
|
||||
KVM
|
||||
<%/if>
|
||||
{%/if}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<%?container[diskspace]>
|
||||
<span class="unit"><%?container[diskspace-unit]></span>
|
||||
{%?container[diskspace]}
|
||||
<span class="unit">{%?container[diskspace-unit]}</span>
|
||||
</td>
|
||||
<td>
|
||||
<%?container[guaranteed-ram]>
|
||||
<span class="unit"><%?container[guaranteed-ram-unit]></span>
|
||||
{%?container[guaranteed-ram]}
|
||||
<span class="unit">{%?container[guaranteed-ram-unit]}</span>
|
||||
</td>
|
||||
<td><%?container[template]></td>
|
||||
<td>{%?container[template]}</td>
|
||||
</tr>
|
||||
<%/foreach>
|
||||
{%/foreach}
|
||||
</table>
|
||||
|
@ -1,26 +1,26 @@
|
||||
<h2><%!title-admin-userlist></h2>
|
||||
<h2>{%!title-admin-userlist}</h2>
|
||||
|
||||
<table class="userlist">
|
||||
<tr>
|
||||
<th><%!admin-title-username></th>
|
||||
<th><%!admin-title-email></th>
|
||||
<th><%!admin-title-accesslevel></th>
|
||||
<th>{%!admin-title-username}</th>
|
||||
<th>{%!admin-title-email}</th>
|
||||
<th>{%!admin-title-accesslevel}</th>
|
||||
</tr>
|
||||
<%foreach user in users>
|
||||
<tr class="clickable" data-url="/admin/user/<%?user[id]>/">
|
||||
<td><%?user[username]></td>
|
||||
<td><%?user[email]></td>
|
||||
{%foreach user in users}
|
||||
<tr class="clickable" data-url="/admin/user/{%?user[id]}/">
|
||||
<td>{%?user[username]}</td>
|
||||
<td>{%?user[email]}</td>
|
||||
<td>
|
||||
<%if user[accesslevel] == 1>
|
||||
<%!admin-level-enduser>
|
||||
<%/if><%if user[accesslevel] == 10>
|
||||
<%!admin-level-reseller>
|
||||
<%/if><%if user[accesslevel] == 20>
|
||||
<%!admin-level-nodeadmin>
|
||||
<%/if><%if user[accesslevel] == 30>
|
||||
<%!admin-level-masteradmin>
|
||||
<%/if>
|
||||
{%if user[accesslevel] == 1}
|
||||
{%!admin-level-enduser}
|
||||
{%/if}{%if user[accesslevel] == 10}
|
||||
{%!admin-level-reseller}
|
||||
{%/if}{%if user[accesslevel] == 20}
|
||||
{%!admin-level-nodeadmin}
|
||||
{%/if}{%if user[accesslevel] == 30}
|
||||
{%!admin-level-masteradmin}
|
||||
{%/if}
|
||||
</td>
|
||||
</tr>
|
||||
<%/foreach>
|
||||
{%/foreach}
|
||||
</table>
|
||||
|
@ -1 +1 @@
|
||||
<%!notfound>
|
||||
{%!notfound}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div class="errorhandler error-error">
|
||||
<div class="error-title"><%?title></div>
|
||||
<div class="error-message"><%?message></div>
|
||||
<div class="error-title">{%?title}</div>
|
||||
<div class="error-message">{%?message}</div>
|
||||
</div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div class="errorhandler error-info">
|
||||
<div class="error-title"><%?title></div>
|
||||
<div class="error-message"><%?message></div>
|
||||
<div class="error-title">{%?title}</div>
|
||||
<div class="error-message">{%?message}</div>
|
||||
</div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div class="errorhandler error-success">
|
||||
<div class="error-title"><%?title></div>
|
||||
<div class="error-message"><%?message></div>
|
||||
<div class="error-title">{%?title}</div>
|
||||
<div class="error-message">{%?message}</div>
|
||||
</div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div class="errorhandler error-warning">
|
||||
<div class="error-title"><%?title></div>
|
||||
<div class="error-message"><%?message></div>
|
||||
<div class="error-title">{%?title}</div>
|
||||
<div class="error-message">{%?message}</div>
|
||||
</div>
|
||||
|
@ -1,57 +1,57 @@
|
||||
<table class="vpslist">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th><%!list-column-hostname></th>
|
||||
<th><%!list-column-platform></th>
|
||||
<th><%!list-column-node></th>
|
||||
<th><%!list-column-disk></th>
|
||||
<th><%!list-column-ram></th>
|
||||
<th><%!list-column-template></th>
|
||||
<th>{%!list-column-hostname}</th>
|
||||
<th>{%!list-column-platform}</th>
|
||||
<th>{%!list-column-node}</th>
|
||||
<th>{%!list-column-disk}</th>
|
||||
<th>{%!list-column-ram}</th>
|
||||
<th>{%!list-column-template}</th>
|
||||
</tr>
|
||||
<%foreach container in containers>
|
||||
<tr class="clickable" data-url="/<%?container[id]>/">
|
||||
{%foreach container in containers}
|
||||
<tr class="clickable" data-url="/{%?container[id]}/">
|
||||
<td class="container-status">
|
||||
<%if container[status] == running>
|
||||
<img src="/images/icon_online.png" alt="<%!list-status-running>">
|
||||
<%/if><%if container[status] == stopped>
|
||||
<img src="/images/icon_offline.png" alt="<%!list-status-stopped>">
|
||||
<%/if><%if container[status] == suspended>
|
||||
<img src="/images/icon_suspended.png" alt="<%!list-status-suspended>">
|
||||
<%/if>
|
||||
{%if container[status] == running}
|
||||
<img src="/images/icon_online.png" alt="{%!list-status-running}">
|
||||
{%/if}{%if container[status] == stopped}
|
||||
<img src="/images/icon_offline.png" alt="{%!list-status-stopped}">
|
||||
{%/if}{%if container[status] == suspended}
|
||||
<img src="/images/icon_suspended.png" alt="{%!list-status-suspended}">
|
||||
{%/if}
|
||||
</td>
|
||||
<td>
|
||||
<a href="/<%?container[id]>/">
|
||||
<%?container[hostname]>
|
||||
<a href="/{%?container[id]}/">
|
||||
{%?container[hostname]}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/<%?container[id]>/">
|
||||
<%if container[virtualization-type] == 1>
|
||||
<a href="/{%?container[id]}/">
|
||||
{%if container[virtualization-type] == 1}
|
||||
OpenVZ
|
||||
<%/if><%if container[virtualization-type] == 2>
|
||||
{%/if}{%if container[virtualization-type] == 2}
|
||||
Xen PV
|
||||
<%/if><%if container[virtualization-type] == 3>
|
||||
{%/if}{%if container[virtualization-type] == 3}
|
||||
Xen HVM
|
||||
<%/if><%if container[virtualization-type] == 4>
|
||||
{%/if}{%if container[virtualization-type] == 4}
|
||||
KVM
|
||||
<%/if>
|
||||
{%/if}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/<%?container[id]>/">
|
||||
<span class="nodename"><%?container[node]></span>
|
||||
<span class="hostname">(<%?container[node-hostname]>)</span>
|
||||
<a href="/{%?container[id]}/">
|
||||
<span class="nodename">{%?container[node]}</span>
|
||||
<span class="hostname">({%?container[node-hostname]})</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<%?container[diskspace]>
|
||||
<span class="unit"><%?container[diskspace-unit]></span>
|
||||
{%?container[diskspace]}
|
||||
<span class="unit">{%?container[diskspace-unit]}</span>
|
||||
</td>
|
||||
<td>
|
||||
<%?container[guaranteed-ram]>
|
||||
<span class="unit"><%?container[guaranteed-ram-unit]></span>
|
||||
{%?container[guaranteed-ram]}
|
||||
<span class="unit">{%?container[guaranteed-ram-unit]}</span>
|
||||
</td>
|
||||
<td><%?container[template]></td>
|
||||
<td>{%?container[template]}</td>
|
||||
</tr>
|
||||
<%/foreach>
|
||||
{%/foreach}
|
||||
</table>
|
||||
|
@ -1,18 +1,18 @@
|
||||
<h1><%!title-login></h1>
|
||||
<h1>{%!title-login}</h1>
|
||||
|
||||
<%?error>
|
||||
{%?error}
|
||||
|
||||
<form method="post" action="/login/" class="col_12">
|
||||
<div class="col_3"></div>
|
||||
<label class="col_2" for="field_username"><%!login-username></label>
|
||||
<label class="col_2" for="field_username">{%!login-username}</label>
|
||||
<input class="col_4" type="text" name="username" id="field_username" value="">
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="col_3"></div>
|
||||
<label class="col_2" for="field_password"><%!login-password></label>
|
||||
<label class="col_2" for="field_password">{%!login-password}</label>
|
||||
<input class="col_4" type="password" name="password" id="field_password">
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="col_7"></div>
|
||||
<button class="col_2" type="submit" name="submit"><%!button-login></button>
|
||||
<button class="col_2" type="submit" name="submit">{%!button-login}</button>
|
||||
</form>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<div class="sidebar">
|
||||
<a class="sidebutton" href="/admin/"><%!menu-admin-overview></a>
|
||||
<a class="sidebutton" href="/admin/users/"><%!menu-admin-users></a>
|
||||
<a class="sidebutton" href="/admin/containers/"><%!menu-admin-containers></a>
|
||||
<a class="sidebutton" href="/admin/">{%!menu-admin-overview}</a>
|
||||
<a class="sidebutton" href="/admin/users/">{%!menu-admin-users}</a>
|
||||
<a class="sidebutton" href="/admin/containers/">{%!menu-admin-containers}</a>
|
||||
</div>
|
||||
|
||||
<%?contents>
|
||||
{%?contents}
|
||||
|
@ -1,15 +1,15 @@
|
||||
<div class="sidebar">
|
||||
<a class="sidebutton" id="button_overview" href="/<%?id>/"><%!menu-overview></a>
|
||||
<!-- <a class="sidebutton" id="button_statistics" href="/<%?id>/statistics/"><%!menu-statistics></a> -->
|
||||
<a class="sidebutton" id="button_reinstall" href="/<%?id>/reinstall/"><%!menu-reinstall></a>
|
||||
<!-- <a class="sidebutton" id="button_backup" href="/<%?id>/backup/"><%!menu-backups></a> -->
|
||||
<a class="sidebutton" id="button_webshell" href="/<%?id>/console/"><%!menu-console></a>
|
||||
<a class="sidebutton" id="button_password" href="/<%?id>/password/"><%!menu-password></a>
|
||||
<a class="sidebutton" id="button_ip" href="/<%?id>/ip/"><%!menu-ip></a>
|
||||
<!-- <a class="sidebutton" id="button_alerts" href="/<%?id>/alerts/"><%!menu-alerts></a>
|
||||
<a class="sidebutton" id="button_api" href="/<%?id>/api/"><%!menu-api></a> -->
|
||||
<a class="sidebutton" id="button_overview" href="/{%?id}/">{%!menu-overview}</a>
|
||||
<!-- <a class="sidebutton" id="button_statistics" href="/{%?id}/statistics/">{%!menu-statistics}</a> -->
|
||||
<a class="sidebutton" id="button_reinstall" href="/{%?id}/reinstall/">{%!menu-reinstall}</a>
|
||||
<!-- <a class="sidebutton" id="button_backup" href="/{%?id}/backup/">{%!menu-backups}</a> -->
|
||||
<a class="sidebutton" id="button_webshell" href="/{%?id}/console/">{%!menu-console}</a>
|
||||
<a class="sidebutton" id="button_password" href="/{%?id}/password/">{%!menu-password}</a>
|
||||
<a class="sidebutton" id="button_ip" href="/{%?id}/ip/">{%!menu-ip}</a>
|
||||
<!-- <a class="sidebutton" id="button_alerts" href="/{%?id}/alerts/">{%!menu-alerts}</a>
|
||||
<a class="sidebutton" id="button_api" href="/{%?id}/api/">{%!menu-api}</a> -->
|
||||
</div>
|
||||
|
||||
<%?error>
|
||||
{%?error}
|
||||
|
||||
<%?contents>
|
||||
{%?contents}
|
||||
|
@ -1,26 +1,26 @@
|
||||
<h2><%!title-console></h2>
|
||||
<h2>{%!title-console}</h2>
|
||||
|
||||
<p><%!console-introduction></p>
|
||||
<p>{%!console-introduction}</p>
|
||||
|
||||
<p><%!console-step1></p>
|
||||
<p>{%!console-step1}</p>
|
||||
|
||||
<table class="console vertical">
|
||||
<tr>
|
||||
<th><%!console-title-hostname></th>
|
||||
<td><%?host></td>
|
||||
<th>{%!console-title-hostname}</th>
|
||||
<td>{%?host}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!console-title-port></th>
|
||||
<th>{%!console-title-port}</th>
|
||||
<td>22</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!console-title-username></th>
|
||||
<th>{%!console-title-username}</th>
|
||||
<td>vz</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!console-title-password></th>
|
||||
<th>{%!console-title-password}</th>
|
||||
<td>vz</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><%!console-step2></p>
|
||||
<p>{%!console-step2}</p>
|
||||
|
@ -1,106 +1,106 @@
|
||||
<h1><%!title-overview></h1>
|
||||
<h1>{%!title-overview}</h1>
|
||||
|
||||
<div class="quota">
|
||||
<div class="quota-item">
|
||||
<h3><%!overview-quota-title-disk></h3>
|
||||
<h3>{%!overview-quota-title-disk}</h3>
|
||||
<div class="quota-bar">
|
||||
<div class="quota-bar-inner" style="width: <%?disk-percentage>%;"></div>
|
||||
<div class="quota-bar-label"><%?disk-used>/<%?disk-total><%?disk-unit></div>
|
||||
<div class="quota-bar-inner" style="width: {%?disk-percentage}%;"></div>
|
||||
<div class="quota-bar-label">{%?disk-used}/{%?disk-total}{%?disk-unit}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="quota-item">
|
||||
<h3><%!overview-quota-title-ram></h3>
|
||||
<h3>{%!overview-quota-title-ram}</h3>
|
||||
<div class="quota-bar">
|
||||
<div class="quota-bar-inner" style="width: <%?ram-percentage>%;"></div>
|
||||
<div class="quota-bar-label"><%?ram-used>/<%?ram-total><%?ram-unit></div>
|
||||
<div class="quota-bar-inner" style="width: {%?ram-percentage}%;"></div>
|
||||
<div class="quota-bar-label">{%?ram-used}/{%?ram-total}{%?ram-unit}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="quota-item last">
|
||||
<h3><%!overview-quota-title-traffic></h3>
|
||||
<h3>{%!overview-quota-title-traffic}</h3>
|
||||
<div class="quota-bar">
|
||||
<div class="quota-bar-inner" style="width: <%?traffic-percentage>%;"></div>
|
||||
<div class="quota-bar-label"><%?traffic-used>/<%?traffic-total><%?traffic-unit></div>
|
||||
<div class="quota-bar-inner" style="width: {%?traffic-percentage}%;"></div>
|
||||
<div class="quota-bar-label">{%?traffic-used}/{%?traffic-total}{%?traffic-unit}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="controlbox">
|
||||
<a class="controlbutton button-loader" href="/<%?id>/start/">
|
||||
<a class="controlbutton button-loader" href="/{%?id}/start/">
|
||||
<img src="/images/button_start.png" class="button-icon">
|
||||
<%!overview-button-start>
|
||||
{%!overview-button-start}
|
||||
</a>
|
||||
<a class="controlbutton button-loader" href="/<%?id>/restart/">
|
||||
<a class="controlbutton button-loader" href="/{%?id}/restart/">
|
||||
<img src="/images/button_restart.png" class="button-icon">
|
||||
<%!overview-button-restart>
|
||||
{%!overview-button-restart}
|
||||
</a>
|
||||
<a class="controlbutton button-loader last" href="/<%?id>/stop/">
|
||||
<a class="controlbutton button-loader last" href="/{%?id}/stop/">
|
||||
<img src="/images/button_stop.png" class="button-icon">
|
||||
<%!overview-button-stop>
|
||||
{%!overview-button-stop}
|
||||
</a>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<h2><%!overview-title-configuration></h2>
|
||||
<h2>{%!overview-title-configuration}</h2>
|
||||
<table class="vpsinfo vertical">
|
||||
<tr>
|
||||
<th><%!overview-title-status></th>
|
||||
<th>{%!overview-title-status}</th>
|
||||
<td>
|
||||
<%if status == running>
|
||||
<span class="online"><%!overview-status-running></span>
|
||||
<%/if><%if status == stopped>
|
||||
<span class="offline"><%!overview-status-stopped></span>
|
||||
<%/if><%if status == suspended>
|
||||
<span class="suspended"><%!overview-status-suspended></span>
|
||||
<%/if><%if status == unknown>
|
||||
<span class="unknown"><%!overview-status-unknown></span>
|
||||
<%/if>
|
||||
{%if status == running}
|
||||
<span class="online">{%!overview-status-running}</span>
|
||||
{%/if}{%if status == stopped}
|
||||
<span class="offline">{%!overview-status-stopped}</span>
|
||||
{%/if}{%if status == suspended}
|
||||
<span class="suspended">{%!overview-status-suspended}</span>
|
||||
{%/if}{%if status == unknown}
|
||||
<span class="unknown">{%!overview-status-unknown}</span>
|
||||
{%/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!overview-title-location></th>
|
||||
<td><%?server-location></td>
|
||||
<th>{%!overview-title-location}</th>
|
||||
<td>{%?server-location}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!overview-title-os></th>
|
||||
<td><%?operating-system></td>
|
||||
<th>{%!overview-title-os}</th>
|
||||
<td>{%?operating-system}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!overview-title-ipv4></th>
|
||||
<th>{%!overview-title-ipv4}</th>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!overview-title-ipv6></th>
|
||||
<th>{%!overview-title-ipv6}</th>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!overview-title-guaranteed></th>
|
||||
<td><%?guaranteed-ram></td>
|
||||
<th>{%!overview-title-guaranteed}</th>
|
||||
<td>{%?guaranteed-ram}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!overview-title-burstable></th>
|
||||
<td><%?burstable-ram></td>
|
||||
<th>{%!overview-title-burstable}</th>
|
||||
<td>{%?burstable-ram}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!overview-title-disk></th>
|
||||
<td><%?disk-space></td>
|
||||
<th>{%!overview-title-disk}</th>
|
||||
<td>{%?disk-space}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!overview-title-traffic></th>
|
||||
<td><%?total-traffic-limit></td>
|
||||
<th>{%!overview-title-traffic}</th>
|
||||
<td>{%?total-traffic-limit}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><%!overview-title-bandwidth></th>
|
||||
<td><%?bandwidth-limit></td>
|
||||
<th>{%!overview-title-bandwidth}</th>
|
||||
<td>{%?bandwidth-limit}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<%if accesslevel >= 20>
|
||||
<h3><%!header-vps-admin></h3>
|
||||
{%if accesslevel }= 20>
|
||||
<h3>{%!header-vps-admin}</h3>
|
||||
<div class="vps-admin">
|
||||
<a href="/admin/container/<%?id>/suspend/"><%!vps-admin-suspend></a>
|
||||
<a href="/admin/container/<%?id>/transfer/"><%!vps-admin-transfer></a>
|
||||
<a href="/admin/container/<%?id>/terminate/"><%!vps-admin-terminate></a>
|
||||
<a href="/admin/container/{%?id}/suspend/">{%!vps-admin-suspend}</a>
|
||||
<a href="/admin/container/{%?id}/transfer/">{%!vps-admin-transfer}</a>
|
||||
<a href="/admin/container/{%?id}/terminate/">{%!vps-admin-terminate}</a>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<%/if>
|
||||
{%/if}
|
||||
|
@ -1,14 +1,14 @@
|
||||
<h1><%!title-password></h1>
|
||||
<h1>{%!title-password}</h1>
|
||||
|
||||
<form method="post" action="/<%?id>/password/">
|
||||
<label class="col_4" for="field_password"><%!password-field-password></label>
|
||||
<form method="post" action="/{%?id}/password/">
|
||||
<label class="col_4" for="field_password">{%!password-field-password}</label>
|
||||
<input class="col_4" type="password" id="field_password" name="password">
|
||||
<div class="clear"></div>
|
||||
|
||||
<label class="col_4" for="field_confirm"><%!password-field-confirm></label>
|
||||
<label class="col_4" for="field_confirm">{%!password-field-confirm}</label>
|
||||
<input class="col_4" type="password" id="field_confirm" name="confirm">
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="col_4"></div>
|
||||
<button class="col_4" type="submit" name="submit"><%!button-password></button>
|
||||
<button class="col_4" type="submit" name="submit">{%!button-password}</button>
|
||||
</form>
|
||||
|
@ -1,23 +1,23 @@
|
||||
<h1><%!title-reinstall></h1>
|
||||
<h1>{%!title-reinstall}</h1>
|
||||
|
||||
<form method="post" action="../reinstall/">
|
||||
<%foreach template in templates>
|
||||
{%foreach template in templates}
|
||||
<div class="template-option">
|
||||
<div class="template-name">
|
||||
<input type="radio" id="tpl_<%?template[id]>" name="template" value="<%?template[id]>">
|
||||
<label for="tpl_<%?template[id]>"><%?template[name]></label>
|
||||
<input type="radio" id="tpl_{%?template[id]}" name="template" value="{%?template[id]}">
|
||||
<label for="tpl_{%?template[id]}">{%?template[name]}</label>
|
||||
</div>
|
||||
<div class="template-description"><%?template[description]></div>
|
||||
<div class="template-description">{%?template[description]}</div>
|
||||
</div>
|
||||
<%/foreach>
|
||||
{%/foreach}
|
||||
|
||||
<div class="confirm">
|
||||
<input type="checkbox" name="confirm" value="true" id="confirm_reinstall">
|
||||
<label for="confirm_reinstall" class="confirm-text"><%!reinstall-warning></label>
|
||||
<label for="confirm_reinstall" class="confirm-text">{%!reinstall-warning}</label>
|
||||
</div>
|
||||
|
||||
<div class="centered">
|
||||
<button type="submit" name="submit" value="submit" class="padded spaced"><%!button-reinstall></button>
|
||||
<%!reinstall-patience>
|
||||
<button type="submit" name="submit" value="submit" class="padded spaced">{%!button-reinstall}</button>
|
||||
{%!reinstall-patience}
|
||||
</div>
|
||||
</form>
|
||||
|
Loading…
Reference in New Issue