'Create VPS' template added

feature/node-rewrite
Sven Slootweg 11 years ago
parent 3cfe9bf059
commit 80f87892be

@ -45,6 +45,6 @@
</div> </div>
<div class="pure-controls"> <div class="pure-controls">
<button type="submit" name="submit">{%!button-admin-addnode}</button> <button type="submit" name="submit" class="pure-button add">{%!button-admin-addnode}</button>
</div> </div>
</form> </form>

@ -0,0 +1,77 @@
<h2>{%!title-admin-addvps}</h2>
{%if isempty|errors == false}
<div class="error">
<div class="title"><i class="fa fa-times-circle"></i> {%!error-form}</div>
<div class="message">
<ul>
{%foreach error in errors}
<li>{%?error}</li>
{%/foreach}
</ul>
</div>
</div>
{%/if}
<form method="post" action="/admin/vpses/add/" class="pure-form pure-form-aligned">
<div class="pure-control-group">
<label for="form_addvps_node">{%!addvps-node}</label>
{%select group="addvps" name="node"}
{%foreach node in nodes}
{%option value="(?node[id])" text="(?node[name]) ((?node[location]))"}
{%/foreach}
{%/select}
</div>
<div class="pure-control-group">
<label for="form_addvps_template">{%!addvps-template}</label>
{%select group="addvps" name="template"}
{%foreach template in templates}
{%option value="(?template[id])" text="(?template[name])"}
{%/foreach}
{%/select}
</div>
<div class="pure-control-group">
<label for="form_addvps_user">{%!addvps-user}</label>
{%select group="addvps" name="user"}
{%foreach user in users}
{%option value="(?user[id])" text="(?user[username]) (#(?user[id]))"}
{%/foreach}
{%/select}
</div>
<div class="pure-control-group">
<label for="form_addnode_diskspace">{%!addvps-diskspace}</label>
{%input type="text" group="addvps" name="diskspace"}
</div>
<div class="pure-control-group">
<label for="form_addnode_guaranteed">{%!addvps-guaranteed}</label>
{%input type="text" group="addvps" name="guaranteed"}
</div>
<div class="pure-control-group">
<label for="form_addnode_burstable">{%!addvps-burstable}</label>
{%input type="text" group="addvps" name="burstable"}
</div>
<div class="pure-control-group">
<label for="form_addnode_cpucount">{%!addvps-cpucount}</label>
{%input type="text" group="addvps" name="cpucount"}
</div>
<div class="pure-control-group">
<label for="form_addnode_traffic">{%!addvps-traffic}</label>
{%input type="text" group="addvps" name="traffic"}
</div>
<div class="pure-control-group">
<label for="form_addnode_hostname">{%!addvps-hostname}</label>
{%input type="text" group="addvps" name="hostname"}
</div>
<div class="pure-controls">
<button type="submit" name="submit" class="pure-button add">{%!button-admin-addvps}</button>
</div>
</form>

@ -22,6 +22,8 @@
text-align: left; text-align: left;
vertical-align: bottom; vertical-align: bottom;
border-bottom: 1px solid #cbcbcb; } border-bottom: 1px solid #cbcbcb; }
.wrapper .pure-button.add {
#background-color: #7ECB9A; }
.wrapper section { .wrapper section {
margin-bottom: 16px; } margin-bottom: 16px; }
.wrapper .error { .wrapper .error {

@ -50,6 +50,14 @@
} }
} }
.pure-button
{
&.add
{
#background-color: #7ECB9A;
}
}
section section
{ {
margin-bottom: 16px; margin-bottom: 16px;

Loading…
Cancel
Save