Statistics
| Branch: | Tag: | Revision:

one / src / sunstone / public / app / tabs / templates-tab / form-panels / instantiate / templateRow.hbs @ 9e19ea51

History | View | Annotate | Download (3.74 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
<div class="template-row" element-id="{{element.ID}}">
18
  <h5>
19
    {{element.NAME}}
20
    <span class="total_cost_div" hidden>
21
      <small class="cost_value">0.00</small>
22
      <small>{{tr "COST"}} / {{tr "HOUR"}}</small>
23
    </span>
24
  </h5>
25
  <span>
26
    <img src="{{element.TEMPLATE.LOGO}}">
27
  </span>
28
  <div class="row">
29
    <div class="medium-6 small-12 columns capacityContext{{element.ID}}">
30
      <fieldset>
31
        <legend>
32
          <i class="fa fa-laptop"></i> {{tr "Capacity"}}
33
          <span class="capacity_cost_div" hidden>
34
            <span class="cost_value">0.00</span>
35
            <small>{{tr "COST"}} / {{tr "HOUR"}}</small>
36
          </span>
37
        </legend>
38
        <div>
39
          {{{capacityInputsHTML}}}
40
        </div>
41
      </fieldset>
42
    </div>
43
    <div class="medium-6 small-12 columns disksContext{{element.ID}}"></div>
44
  </div>
45
  <div class="row">
46
    <div class="medium-6 small-12 columns template_user_inputs{{element.ID}}"></div>
47
  </div>
48
  <div class="row">
49
    <div class="small-12 columns nicsContext{{element.ID}}">
50
      <div class="provision_network_selector">
51
      </div>
52
    </div>
53
  </div>
54
  <div class="row">
55
    <div class="small-12 columns vmgroupContext{{element.ID}}">
56
      <fieldset>
57
        <legend>
58
          <i class="fa fa-globe"></i> {{tr "VM Group"}}
59
        </legend>
60
        <div>
61
          <a class="button small provision_add_vmgroup">
62
            <i class="fa fa-lg fa-plus-circle add_vmgroup"></i> {{tr "VM Group"}}
63
          </a>
64
        </div>
65
        <div class="provision_vmgroup_selector">
66
        </div>
67
      </fieldset>
68
    </div>
69
  </div>
70
  <div class="row">
71
    <div class="small-12 columns hostContext{{element.ID}}">
72
      <fieldset>
73
        <legend>
74
          <i class="fa fa-globe"></i> {{tr "Host"}}
75
        </legend>
76
        <div class="provision_host_selector{{element.ID}}" data-tab-content>{{{hostsDatatable}}}</div>
77
        <div class="row">
78
            <div class="large-12 columns">
79
              <label for="SCHED_REQUIREMENTS">
80
                {{tr "Expression"}}
81
                {{{tip (tr "Boolean expression that rules out entries from the pool of datastores suitable to run this VM.")}}}
82
              </label>
83
              <input type="text" wizard_field="SCHED_REQUIREMENTS" id="SCHED_REQUIREMENTS{{element.ID}}" name="requirements" />
84
            </div>
85
        </div>
86
      </fieldset>
87
    </div>
88
  </div>
89
   <div class="row">
90
    <div class="medium-6 small-12 columns vcenterVMFolderContext{{element.ID}}">
91
      <div class="provision_vcenter_vm_folder_selector">
92
      </div>
93
    </div>
94
  </div>
95
</div>