1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-15 05:57:23 +03:00

Feature #4400: Use switch for persistent selection in sunstone

This commit is contained in:
Carlos Martín 2016-04-21 09:57:54 +02:00
parent 9553c91471
commit 2990a07978
2 changed files with 15 additions and 5 deletions

View File

@ -24,9 +24,14 @@
<input type="text" id="vm_name" class="provision-input" placeholder="{{tr "Virtual Machine Name"}}"/>
</div>
<div class="large-3 columns">
<label>
<input type="checkbox" class="instantiate_pers"/>
{{tr "Persistent copy"}}
<div class="switch left">
<input class="switch-input instantiate_pers" id="instantiate_pers" type="checkbox">
<label class="switch-paddle" for="instantiate_pers">
</label>
</div>
<label class="left">
&nbsp;&nbsp;
{{tr "Persistent"}}
{{{tip (tr "Creates a private persistent copy of the template plus any image defined in DISK, and instantiates that copy")}}}
</label>
</div>

View File

@ -21,8 +21,13 @@
</div>
<div class="row">
<div class="large-12 large-centered columns">
<label>
<input type="checkbox" class="instantiate_pers"/>
<div class="switch left">
<input class="switch-input instantiate_pers" id="{{formPanelId}}instantiate_pers" type="checkbox">
<label class="switch-paddle" for="{{formPanelId}}instantiate_pers">
</label>
</div>
<label class="left">
&nbsp;&nbsp;
{{tr "Instantiate as persistent"}}
{{{tip (tr "Creates a private persistent copy of the template plus any image defined in DISK, and instantiates that copy")}}}
</label>