Revision 9568051d src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs/html.hbs

View differences:

src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs/html.hbs
1
<div class="">
2
  <input type="hidden" wizard_field="MEMORY" id="MEMORY" name="memory" />
3
</div>
4 1
<div class="row">
5
  <div class="large-7 columns">
6
    <div class="row">
7
      <div class="large-12 columns">
8
        <label class="" for="MEMORY">
9
          {{tr "Memory"}}
10
          {{{tip (tr "Amount of RAM required for the VM, in Megabytes.")}}}
11
        </label>
12
        <div class="large-8 columns memory_slider_container">
13
          <div id="memory_slider" class="range-slider radius" data-slider data-options="start: 0; end: 409600; step: 12800;">
14
            <span class="range-slider-handle"></span>
15
            <span class="range-slider-active-segment"></span>
16
            <input type="hidden">
17
          </div>
18
        </div>
19
        <div class="large-2 columns">
20
          <input type="text" id="MEMORY_TMP" name="memory_tmp" size="4" />
21
        </div>
22
        <div class="large-2 columns">
23
          <select id="memory_unit" name="MEMORY_UNIT">
24
            <option value="MB">{{tr "MB"}}</option>
25
            <option value="GB">{{tr "GB"}}</option>
26
          </select>
27
        </div>
28
      </div>
2
  <div class="large-12 columns">
3
    <div class="">
4
      <input type="hidden" wizard_field="MEMORY" id="MEMORY" name="memory" />
29 5
    </div>
30
    <div class="row">
31
      <div class="large-12 columns">
32
        <label class="" for="CPU">
33
          {{tr "CPU"}}
34
          {{{tip (tr "Percentage of CPU divided by 100 required for the Virtual Machine. Half a processor is written 0.5.")}}}
35
        </label>
36
        <div class="large-10 columns">
37
          <div id="cpu_slider" class="range-slider radius" data-slider data-options="start: 0; end: 1600; step: 50;">
38
            <span class="range-slider-handle"></span>
39
            <span class="range-slider-active-segment"></span>
40
            <input type="hidden">
41
          </div>
42
        </div>
43
        <div class="large-2 columns">
44
          <input type="text" wizard_field="CPU" id="CPU" name="cpu"/>
45
        </div>
6
    <label class="" for="MEMORY">
7
      {{tr "Memory"}}
8
      {{{tip (tr "Amount of RAM required for the VM, in Megabytes.")}}}
9
    </label>
10
    <div class="large-8 columns memory_slider_container">
11
      <div id="memory_slider" class="range-slider radius" data-slider data-options="start: 0; end: 409600; step: 12800;">
12
        <span class="range-slider-handle"></span>
13
        <span class="range-slider-active-segment"></span>
14
        <input type="hidden">
46 15
      </div>
47 16
    </div>
48
    <div class="row">
49
      <div class="large-12 columns">
50
        <label class="" for="VCPU">
51
          {{tr "VCPU"}}
52
          {{{tip (tr "Number of virtual cpus. This value is optional, the default hypervisor behavior is used, usually one virtual CPU.")}}}
53
        </label>
54
        <div class="large-10 columns">
55
          <div id="vcpu_slider" class="range-slider radius" data-slider data-options="start: 100; end: 1600; step: 100;">
56
            <span class="range-slider-handle"></span>
57
            <span class="range-slider-active-segment"></span>
58
            <input type="hidden">
59
          </div>
60
        </div>
61
        <div class="large-2 columns">
62
          <input type="text" wizard_field="VCPU" id="VCPU" name="vcpu"/>
63
        </div>
17
    <div class="large-2 columns">
18
      <input type="text" id="MEMORY_TMP" name="memory_tmp" size="4" />
19
    </div>
20
    <div class="large-2 columns">
21
      <select id="memory_unit" name="MEMORY_UNIT">
22
        <option value="MB">{{tr "MB"}}</option>
23
        <option value="GB">{{tr "GB"}}</option>
24
      </select>
25
    </div>
26
  </div>
27
</div>
28
<div class="row">
29
  <div class="large-12 columns">
30
    <label class="" for="CPU">
31
      {{tr "CPU"}}
32
      {{{tip (tr "Percentage of CPU divided by 100 required for the Virtual Machine. Half a processor is written 0.5.")}}}
33
    </label>
34
    <div class="large-10 columns">
35
      <div id="cpu_slider" class="range-slider radius" data-slider data-options="start: 0; end: 1600; step: 50;">
36
        <span class="range-slider-handle"></span>
37
        <span class="range-slider-active-segment"></span>
38
        <input type="hidden">
64 39
      </div>
65
      <div class="large-5 columns"></div>
40
    </div>
41
    <div class="large-2 columns">
42
      <input type="text" wizard_field="CPU" id="CPU" name="cpu"/>
66 43
    </div>
67 44
  </div>
68
  <div class="large-5 columns">
69
    {{#isFeatureEnabled "showback"}}
70
    <fieldset>
71
      <legend>{{tr "Cost"}}</legend>
72
        <div class="large-6 columns">
73
          <label  for="MEMORY_COST">
74
            {{tr "Memory"}}
75
            {{{tip (tr "Cost of each MB per hour")}}}
76
          </label>
77
          <input type="text" wizard_field="MEMORY_COST" id="MEMORY_COST" name="name"/>
78
        </div>
79
        <div class="large-6 columns">
80
          <label  for="CPU_COST">
81
            {{tr "CPU"}}
82
            {{{tip (tr "Cost of each CPU per hour")}}}
83
          </label>
84
          <input type="text" wizard_field="CPU_COST" id="CPU_COST" name="name"/>
85
        </div>
86
        <div class="large-6 columns left">
87
          <label  for="DISK_COST">
88
            {{tr "Disk"}}
89
            {{{tip (tr "Cost of each MB per hour")}}}
90
          </label>
91
          <input type="text" wizard_field="DISK_COST" id="DISK_COST" name="name"/>
92
        </div>
93
    </fieldset>
94
    {{/isFeatureEnabled}}
45
</div>
46
<div class="row">
47
  <div class="large-12 columns">
48
    <label class="" for="VCPU">
49
      {{tr "VCPU"}}
50
      {{{tip (tr "Number of virtual cpus. This value is optional, the default hypervisor behavior is used, usually one virtual CPU.")}}}
51
    </label>
52
    <div class="large-10 columns">
53
      <div id="vcpu_slider" class="range-slider radius" data-slider data-options="start: 100; end: 1600; step: 100;">
54
        <span class="range-slider-handle"></span>
55
        <span class="range-slider-active-segment"></span>
56
        <input type="hidden">
57
      </div>
58
    </div>
59
    <div class="large-2 columns">
60
      <input type="text" wizard_field="VCPU" id="VCPU" name="vcpu"/>
61
    </div>
95 62
  </div>
63
  <div class="large-5 columns"></div>
96 64
</div>

Also available in: Unified diff