Statistics
| Branch: | Tag: | Revision:

one / src / sunstone / public / app / tabs / vnets-tab / utils / ar-tab / html.hbs @ 8fdeb228

History | View | Annotate | Download (5.37 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="row" name="str_ar_tab_id" str_ar_tab_id="{{str_ar_tab_id}}">
18
  <div class="large-12 columns">
19
    <input wizard_field="TYPE" type="radio" name="{{str_ar_tab_id}}_ar_type" id="{{str_ar_tab_id}}_ar_type_ip4" value="IP4"/><label for="{{str_ar_tab_id}}_ar_type_ip4">{{tr "IPv4"}}</label>
20
    <input wizard_field="TYPE" type="radio" name="{{str_ar_tab_id}}_ar_type" id="{{str_ar_tab_id}}_ar_type_ip4_6" value="IP4_6"/><label for="{{str_ar_tab_id}}_ar_type_ip4_6">{{tr "IPv4/6"}}</label>
21
    <input wizard_field="TYPE" type="radio" name="{{str_ar_tab_id}}_ar_type" id="{{str_ar_tab_id}}_ar_type_ip6" value="IP6"/><label for="{{str_ar_tab_id}}_ar_type_ip6">{{tr "IPv6"}}</label>
22
    <input wizard_field="TYPE" type="radio" name="{{str_ar_tab_id}}_ar_type" id="{{str_ar_tab_id}}_ar_type_ether" value="ETHER"/><label for="{{str_ar_tab_id}}_ar_type_ether">{{tr "Ethernet"}}</label>
23
  </div>
24
</div>
25
<div class="row">
26
  <div class="medium-6 columns">
27
    <div class="row collapse ar_input type_ip4 type_ip4_6">
28
      <label for="{{str_ar_tab_id}}_ip_start">{{tr "First IPv4 address"}}
29
      </label>
30
      <input wizard_field="IP" type="text" name="IP" id="{{str_ar_tab_id}}_ip_start"/>
31
    </div>
32
    <div class="row collapse ar_input type_ip4 type_ip4_6 type_ip6 type_ether">
33
      <label for="{{str_ar_tab_id}}_mac_start">{{tr "First MAC address"}}
34
      </label>
35
      <input wizard_field="MAC" type="text" name="MAC" id="{{str_ar_tab_id}}_mac_start" />
36
    </div>
37
  </div>
38
  <div class="medium-6 columns">
39
    <div class="row collapse ar_input type_ip4 type_ip4_6 type_ip6 type_ether">
40
      <label for="{{str_ar_tab_id}}_size">{{tr "Size"}}
41
      </label>
42
      <input wizard_field="SIZE" required type="number" min="0" name="SIZE" id="{{str_ar_tab_id}}_size" />
43
    </div>
44
    <div class="row collapse ar_input type_ip4_6 type_ip6 switch left">
45
        <label for="{{str_ar_tab_id}}_">{{tr "SLAAC"}}
46
        </label>
47
        <input class="switch-input slaac" id="{{str_ar_tab_id}}_slaac" type="checkbox">
48
        <label class="switch-paddle" for="{{str_ar_tab_id}}_slaac">
49
        </label>
50
    </div>
51
  </div>
52
</div>
53
<div class="row slaac_true">
54
  <div class="medium-6 columns ar_input type_ip4_6 type_ip6">
55
    <label for="{{str_ar_tab_id}}_global_prefix">{{tr "IPv6 Global prefix"}}</label>
56
    <input wizard_field="GLOBAL_PREFIX" type="text" name="GLOBAL_PREFIX" id="{{str_ar_tab_id}}_global_prefix"/>
57
  </div>
58
  <div class="medium-6 columns ar_input type_ip4_6 type_ip6">
59
    <label for="{{str_ar_tab_id}}_ula_prefix">{{tr "IPv6 ULA prefix"}}</label>
60
    <input wizard_field="ULA_PREFIX" type="text" name="ULA_PREFIX" id="{{str_ar_tab_id}}_ula_prefix"/>
61
  </div>
62
</div>
63
<div class="row slaac_false">
64
  <div class="medium-6 columns ar_input type_ip4_6 type_ip6">
65
    <label for="{{str_ar_tab_id}}_ipv6">{{tr "IPv6"}}</label>
66
    <input wizard_field="IP6" type="text" name="IP6" id="{{str_ar_tab_id}}_ipv6"/>
67
  </div>
68
  <div class="medium-6 columns ar_input type_ip4_6 type_ip6">
69
    <label for="{{str_ar_tab_id}}_prefix_length">{{tr "Prefix length"}}</label>
70
    <input wizard_field="PREFIX_LENGTH" type="text" name="PREFIX_LENGTH" id="{{str_ar_tab_id}}_prefix_length"/>
71
  </div>
72
</div>
73
<div class="row">
74
  <div class="medium-12 columns">
75
    {{#advancedSection (tr "Advanced Options") }}
76
      <fieldset>
77
        <legend>{{tr "Custom attributes"}}</legend>
78
        <div class="row" id="{{str_ar_tab_id}}_custom_tags">
79
          <div class="12 columns">
80
            {{{customTagsHTML}}}
81
          </div>
82
        </div>
83
      </fieldset>
84
      <fieldset class="sec_groups_datatable">
85
        <legend>{{tr "Security Groups"}}</legend>
86
        <div class="row" id="{{str_ar_tab_id}}_security_groups">
87
          {{{securityGroupsTableHTML}}}
88
        </div>
89
      </fieldset>
90
      <div class="ar_input type_ip4 type_ip4_6 type_ip6">
91
        <fieldset>
92
          <legend>{{tr "IPAM"}}</legend>
93
          <div class="row">
94
            <div class="medium-6 columns">
95
              <label for="{{str_ar_tab_id}}_ipam_mad">{{tr "IPAM driver"}}</label>
96
              <input wizard_field="IPAM_MAD" type="text" name="IPAM_MAD" id="{{str_ar_tab_id}}_ipam_mad"/>
97
            </div>
98
          </div>
99
        </fieldset>
100
      </div>
101
    {{/advancedSection}}
102
  </div>
103
</div>