Statistics
| Branch: | Tag: | Revision:

one / src / sunstone / public / app / tabs / templates-tab / form-panels / create / wizard-tabs / general / html.hbs @ 6eb602e7

History | View | Annotate | Download (8.08 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
<div class="row">
17
  <div id="template_name_form"  class="medium-6 columns">
18
    <label  for="NAME">
19
      {{tr "Name"}}
20
      <input type="text" wizard_field="NAME" id="NAME" required/>
21
    </label>
22
  </div>
23
  <div  id="template_hypervisor_form" class="medium-6 columns">
24
    <label>{{tr "Hypervisor"}}</label>
25
    <input type="radio" wizard_field="HYPERVISOR" name="hypervisor" value="kvm" id="kvmRadio">
26
    <label for="kvmRadio">{{tr "KVM"}}</label>
27
    <input type="radio" wizard_field="HYPERVISOR" name="hypervisor" value="vcenter" id="vcenterRadio">
28
    <label for="vcenterRadio">{{tr "vCenter"}}</label>
29
  </div>
30
</div>
31
<div class="row">
32
  <div class="medium-6 columns">
33
    <label  for="DESCRIPTION">
34
      {{tr "Description"}}
35
    </label>
36
    <textarea type="text" wizard_field="DESCRIPTION" id="DESCRIPTION" name="DESCRIPTION" style="height: 70px;"/>
37
  </div>
38
  <div class="medium-6 columns">
39
    <div class="row">
40
      <div class="medium-6 columns">
41
        <label  for="LOGO">
42
          {{tr "Logo"}}
43
        </label>
44
        <select wizard_field="LOGO" id="LOGO" name="LOGO">
45
          <option value=""></option>
46
          {{#each logos}}
47
          <option value="{{path}}">{{name}}</option>
48
          {{/each}}
49
        </select>
50
      </div>
51
      <div id="template_create_logo" class="text-center medium-6 columns" style="margin-bottom: 15px"></div>
52
      <br></div>
53
  </div>
54
</div>
55
<fieldset class="hypervisor only_vcenter" style="display: none;">
56
  <legend>{{tr "vCenter"}}</legend>
57
  <div class="row hypervisor only_vcenter" style="display: none;">
58
    <div class="medium-6 columns">
59
      <label  for="vcenter_template_ref">
60
        {{tr "vCenter Template Ref"}}
61
      </label>
62
      <input type="text" id="vcenter_template_ref"/>
63
    </div>
64
  </div>
65
  <div class="row hypervisor only_vcenter" style="display: none;">
66
    <div class="medium-6 columns">
67
      <label  for="vcenter_ccr_ref">
68
        {{tr "vCenter Cluster Ref"}}
69
      </label>
70
      <input type="text" id="vcenter_ccr_ref"/>
71
    </div>
72
    <div class="medium-6 columns">
73
      <label  for="vcenter_instance_id">
74
        {{tr "vCenter Instance ID"}}
75
      </label>
76
      <input type="text" id="vcenter_instance_id"/>
77
    </div>
78
  </div>
79
  <div class="vcenter_rp_input row">
80
     <div class="large-3 medium-6 columns">
81
       <label>
82
         {{tr "Default Resource Pool"}}
83
         <input type="text" class="initial_rp" value="{{resourcePool.initial}}"/>
84
       </label>
85
     </div>
86
     <div class="large-3 medium-6 columns">
87
       <label>
88
         {{tr "Type"}}
89
         <select class="modify_rp">
90
           <option value="fixed">{{tr "Fixed"}}</option>
91
           <option value="list">{{tr "Provide on instantiation"}}</option>
92
         </select>
93
       </label>
94
     </div>
95
     <div class="large-6 medium-12 columns">
96
       <label>
97
         {{tr "Available Resource Pools"}}
98
         <input type="text" class="available_rps" value="{{resourcePool.params}}"/>
99
       </label>
100
     </div>
101
 </div>
102
  <div class="vcenter_vm_folder_input row">
103
    <div class="medium-6 columns">
104
      <label  for="vcenter_vm_folder">
105
        {{tr "vCenter VM Folder"}}
106
        {{{tip (tr "If specified, the the VMs and Template folder path where the VM will be created inside the data center. The path is delimited by slashes e.g /Management/VMs. If no path is set the VM will be placed in the same folder where the template is located.")}}}
107
      </label>
108
      <input type="text" id="vcenter_vm_folder"/>
109
    </div>
110
  </div>
111
</fieldset>
112
<div class="row">
113
  <div class="capacityCreate large-12 columns">{{{capacityCreateHTML}}}</div>
114
</div>
115
{{#isFeatureEnabled "showback"}}
116
<div class="row">
117
  <div class="medium-12 columns">
118
    <fieldset>
119
      <legend>
120
        {{tr "Cost"}}
121
        <span>
122
          <span id="total_cost"></span>
123
          <small>{{tr "COST"}} / {{tr "MONTH"}}</small>
124
        </span>
125
      </legend>
126
      <div class="medium-4 columns">
127
        <label  for="MEMORY_COST">
128
          {{tr "Memory"}}
129
            {{{tip (tr "Cost of each MB or GB per hour")}}}
130
        </label>
131
        <div class="input-group" style="margin-bottom:0;">
132
          <input type="number" step="any" min="0" wizard_field="MEMORY_COST" id="MEMORY_COST"/>
133
          <div class="input-group-button">
134
              <select id="MEMORY_UNIT_COST" wizard_field="MEMORY_UNIT_COST" class="mb_input_unit">
135
                <option value="MB" selected>{{tr "MB"}}</option>
136
                <option value="GB" >{{tr "GB"}}</option>
137
              </select>
138
            </div>
139
        </div>
140
        <div class="target_cost" align="center" style="background-color:lightgrey;">
141
          <label class="total_memory_cost" hidden="true">{{tr "TOTAL"}}</label>
142
          <label class="total_memory_cost" style="font-size:200%;" id="total_value_memory" hidden="true"></label>
143
          <label class="total_memory_cost" hidden="true">/{{tr "month"}}
144
          </label>
145
        </div>
146
      </div>
147
      <div class="medium-4 columns">
148
        <label  for="CPU_COST">
149
          {{tr "CPU"}}
150
            {{{tip (tr "Cost of each CPU per hour")}}}
151
        </label>
152
        <input type="number" step="any" min="0" wizard_field="CPU_COST" id="CPU_COST"/>
153
        <span></span>
154
         <div class="target_cost" align="center" style="background-color:lightgrey;">
155
          <label class="total_cpu_cost" hidden="true">{{tr "TOTAL"}}</label>
156
          <label class="total_cpu_cost" style="font-size:200%;" id="total_value_cpu" hidden="true"></label>
157
          <label class="total_cpu_cost" hidden="true">/{{tr "month"}}</label>
158
        </div>
159
      </div>
160
      <div class="medium-4 columns left">
161
        <label  for="DISK_COST">
162
          {{tr "Disk"}}
163
            {{{tip (tr "Cost of each GB per hour")}}}
164
        </label>
165
        <input type="number" step="any" min="0" wizard_field="DISK_COST" id="DISK_COST"/>
166
        <div class="target_cost" align="center" style="background-color:lightgrey;">
167
          <label class="total_disk_cost" hidden="true">{{tr "TOTAL"}}</label>
168
          <label class="total_disk_cost" style="font-size:200%;" id="total_value_disk" hidden="true"></label>
169
          <label class="total_disk_cost" hidden="true">/{{tr "month"}}</label>
170
        </div>
171
      </div>
172
    </fieldset>
173
  </div>
174
</div>
175
{{/isFeatureEnabled}}
176
<div class="row">
177
  <div class="large-6 columns">
178
    <input type="checkbox" id="sunstone_network_select"/>
179
    <label  for="sunstone_network_select">
180
      {{tr "Do not allow to modify network configuration"}}
181
      {{{tip (tr "Users will not be able to remove or add new NICs")}}}
182
    </label>
183
  </div>
184
</div>
185
<div class="row">
186
  <div class="large-12 columns">
187
    <input type="checkbox" wizard_field="VROUTER" id="VROUTER" value="YES"/>
188
    <label  for="VROUTER">
189
      {{tr "Make this template available for Virtual Router machines only"}}
190
      {{{tip (tr "Virtual Routers create Virtual Machines from a source Template. This checkbox makes this template available to be selected in the New Virtual Router wizard")}}}
191
    </label>
192
  </div>
193
</div>