Statistics
| Branch: | Tag: | Revision:

one / src / sunstone / public / app / tabs / templates-tab / form-panels / instantiate / html.hbs @ d289fb8f

History | View | Annotate | Download (3.47 KB)

1
{{! -------------------------------------------------------------------------- }}
2
{{! Copyright 2002-2017, OpenNebula Project, OpenNebula Systems                }}
3
{{!                                                                            }}
4
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may    }}
5
{{! not use this file except in compliance with the License. You may obtain    }}
6
{{! a copy of the License at                                                   }}
7
{{!                                                                            }}
8
{{! http://www.apache.org/licenses/LICENSE-2.0                                 }}
9
{{!                                                                            }}
10
{{! Unless required by applicable law or agreed to in writing, software        }}
11
{{! distributed under the License is distributed on an "AS IS" BASIS,          }}
12
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   }}
13
{{! See the License for the specific language governing permissions and        }}
14
{{! limitations under the License.                                             }}
15
{{! -------------------------------------------------------------------------- }}
16

    
17
<form data-abide novalidate id="{{formPanelId}}Wizard" class="custom creation">
18
  <div class="row">
19
    <div class="large-12 large-centered columns selectTemplateTable">
20
    </div>
21
  </div>
22
  <div class="row persistentContainer">
23
    <div class="large-12 large-centered columns">
24
      {{#isFeatureEnabled "instantiate_persistent"}}
25
      <div class="switch left">
26
        <input class="switch-input instantiate_pers" id="{{formPanelId}}instantiate_pers" type="checkbox">
27
        <label class="switch-paddle" for="{{formPanelId}}instantiate_pers">
28
        </label>
29
      </div>
30
      <label class="left">
31
        &nbsp;&nbsp;
32
        {{tr "Instantiate as persistent"}}
33
        {{{tip (tr "Creates a private persistent copy of the template plus any image defined in DISK, and instantiates that copy")}}}
34
      </label>
35
       {{/isFeatureEnabled}}
36
    </div>
37
  </div>
38
  <div class="row nameContainer">
39
    <div class="medium-4 columns">
40
      <label for="vm_name">
41
        {{tr "VM name"}}
42
        <span class="tip">
43
          {{tr "Defaults to 'template name-<vmid>' when empty. When creating several VMs, the wildcard %i will be replaced with a number starting from 0"}}.
44
        </span>
45
      </label>
46
      <input type="text" name="vm_name" id="vm_name" />
47
    </div> 
48
    <div class="medium-4 columns">
49
      <label for="vm_n_times">
50
        {{tr "Number of instances"}}
51
      </label>
52
      <input type="number" name="vm_n_times" id="vm_n_times" value="1" min="1">
53
      <input type="number" name="vm_n_times_disabled" id="vm_n_times_disabled" value="1" disabled>
54
    </div>
55
    <div class="medium-4 columns">
56
      {{#isTabActionEnabled "vms-tab" "VM.hold"}}
57
      <label>
58
        <input type="checkbox" name="hold" id="hold"/>
59
        {{tr "Start on hold"}}
60
        <span class="tip">
61
          {{tr "Sets the new VM to hold state, instead of pending. The scheduler will not deploy VMs in this state. It can be released later, or deployed manually."}}
62
        </span>
63
      </label>
64
      {{/isTabActionEnabled}}
65
    </div>
66
  </div>
67
  <div class="row">
68
    <div class="large-12 large-centered columns list_of_templates">
69
      <span class="fa-stack fa-5x">
70
        <i class="fa fa-cloud fa-stack-2x"></i>
71
        <i class="fa  fa-spinner fa-spin fa-stack-1x fa-inverse"></i>
72
      </span>
73
    </div>
74
  </div>
75
</form>