Revision b24cda26

View differences:

src/sunstone/public/app/tabs/datastores-tab/form-panels/create/wizard.hbs
56 56
            <option value="custom">{{tr "Custom"}}</option>
57 57
          </select>
58 58
          <div>
59
            <label>{{tr "Custom DS_MAD"}}:</label>
59
            <label>{{tr "Custom DS_MAD"}}</label>
60 60
            <input type="text" name="ds_tab_custom_ds_mad" />
61 61
          </div>
62 62
        </div>
63 63
        <div class="medium-6 columns">
64
          <label for="tm_mad">{{tr "Transfer"}}:</label>
64
          <label for="tm_mad">{{tr "Transfer"}}</label>
65 65
          <select id="tm_mad" name="tm_mad">
66 66
            <option value="shared">{{tr "Shared"}}</option>
67 67
            <option value="ssh">{{tr "SSH"}}</option>
......
74 74
            <option value="custom">{{tr "Custom"}}</option>
75 75
          </select>
76 76
          <div>
77
            <label>{{tr "Custom TM_MAD"}}:</label>
77
            <label>{{tr "Custom TM_MAD"}}</label>
78 78
            <input type="text" name="ds_tab_custom_tm_mad" />
79 79
          </div>
80 80
        </div>
......
98 98
  </div>
99 99
  <div class="row disk_type_wrapper">
100 100
    <div class="medium-6 columns">
101
      <label for="disk_type">{{tr "Disk type"}}:</label>
101
      <label for="disk_type">{{tr "Disk type"}}</label>
102 102
      <select id="disk_type" name="disk_type">
103 103
        <option value="file">{{tr "File"}}</option>
104 104
        <option value="block">{{tr "Block"}}</option>
......
110 110
  </div>
111 111
  <div class="row">
112 112
    <div class="large-12 columns">
113
      <label for="restricted_dirs">
113
      <label>
114 114
        {{tr "Restricted directories for registering Images"}}
115
        <input type="text" name="restricted_dirs" id="restricted_dirs" placeholder="/path/to/dir /path/to/other/dir"/>
115 116
      </label>
116
      <input type="text" name="restricted_dirs" id="restricted_dirs" />
117 117
    </div>
118 118
    <div class="large-12 columns">
119
      <label for="safe_dirs">
120
        {{tr "Safe directories for registering images"}}
119
      <label>
120
        {{tr "Safe directories for registering Images"}}
121
        <input type="text" name="safe_dirs" id="safe_dirs" placeholder="/path/to/dir /path/to/other/dir"/>
121 122
      </label>
122
      <input type="text" name="safe_dirs" id="safe_dirs" />
123 123
    </div>
124 124
    <div class="medium-6 columns">
125
      <label for="limit_mb">
125
      <label>
126 126
        {{tr "Storage usage limit (MB)"}}
127
        <input type="number" min="0" name="limit_mb" id="limit_mb" />
127 128
      </label>
128
      <input type="text" name="limit_mb" id="limit_mb" />
129 129
    </div>
130 130
    <div class="medium-6 columns">
131 131
      <label for="limit_transfer_bw">
132
        {{tr "Transfer bandwidth limit (b/s)"}}
132
        {{tr "Transfer bandwidth limit (B/s)"}}
133 133
        <span class="tip">
134 134
          {{tr "Specify the maximum transfer rate in bytes/second when downloading images from a http/https URL. Suffixes K, M or G can be used."}}
135 135
        </span>
136
        <input type="text" name="limit_transfer_bw" id="limit_transfer_bw" />
136 137
      </label>
137
      <input type="text" name="limit_transfer_bw" id="limit_transfer_bw" />
138 138
    </div>
139 139
    <div class="large-12 columns">
140 140
      <input id="no_decompress" type="checkbox" name="no_decompress" value="YES" />
......
143 143
    <div class="large-12 columns">
144 144
      <input id="datastore_capacity_check" type="checkbox" name="datastore_capacity_check" value="YES" />
145 145
      <label for="datastore_capacity_check">
146
        {{tr "Check available capacity of the datastore before creating a new image"}}
146
        {{tr "Check available capacity of the Datastore before creating a new Image"}}
147 147
      </label>
148 148
    </div>
149 149
    <div class="large-12 columns">
150 150
      <label for="bridge_list">
151 151
        {{tr "Host bridge list"}}
152 152
        <span class="tip">
153
          {{tr "Space separated list of servers to add new images to the Datastore storage"}}
153
          {{tr "Space separated list of servers to add new Images to the Datastore storage"}}
154 154
        </span>
155 155
      </label>
156 156
      <input type="text" name="bridge_list" id="bridge_list" />
......
177 177
    </div>
178 178
    <div class="medium-6 columns">
179 179
      <label for="pool_name">
180
        {{tr "Ceph pool to store images"}}
180
        {{tr "Ceph pool to store Images"}}
181 181
      </label>
182 182
      <input type="text" name="pool_name" id="pool_name" />
183 183
    </div>
......
185 185
      <label for="ceph_host">
186 186
        {{tr "Ceph host"}}
187 187
        <span class="tip">
188
          {{tr "Space-separated list of Ceph monitors. Example: host1 host2:port2"}}
188
          {{tr "Space-separated list of Ceph monitors"}}
189 189
        </span>
190 190
      </label>
191
      <input type="text" name="ceph_host" id="ceph_host" />
191
      <input type="text" name="ceph_host" id="ceph_host" placeholder="host1 host2:port2"/>
192 192
    </div>
193 193
    <div class="medium-6 columns">
194 194
      <label for="ceph_user">
......
210 210
    </div>
211 211
    <div class="medium-6 columns">
212 212
      <label class="fs" for="staging_dir">
213
        {{tr "Staging directory for image registration"}}
213
        {{tr "Staging directory for Image registration"}}
214 214
      </label>
215 215
      <input type="text" name="staging_dir" id="staging_dir" />
216 216
    </div>
src/sunstone/public/app/tabs/groups-tab/form-panels/create.js
300 300

  
301 301
    // Disable parts of the wizard
302 302
    $("input#name", context).attr("disabled", "disabled");
303
    $("#default_vdc_warning", context).hide();
303 304

  
304 305
    $("a[href='#administrators']", context).parents("dd").hide();
305 306
    $("a[href='#resource_creation']", context).parents("dd").hide();
src/sunstone/public/app/tabs/groups-tab/form-panels/create/wizard.hbs
14 14
{{! limitations under the License.                                             }}
15 15
{{! -------------------------------------------------------------------------- }}
16 16
<form data-abide="ajax" id="{{formPanelId}}Wizard" class="custom creation">
17
  <div class="row collapse" id="default_vdc_warning">
18
    <div class="large-12 columns text-right">
19
      <span class="radius warning label">
20
        <i class="fa fa-warning"/> {{tr "New Groups are automatically added to the default VDC"}}
21
      </span>
22
    </div>
23
  </div>
17 24
  <div class="row">
18 25
    <div class="columns medium-5">
19 26
      <label>
......
200 207
      </div>
201 208
    </div>
202 209
  </div>
203
  <div class="reveal-footer">
204
    <div class="row collapse" id="default_vdc_warning">
205
      <div class="large-12 columns text-right">
206
        <span class="radius warning label">
207
          <i class="fa fa-warning"/> {{tr "New Groups are automatically added to the default VDC"}}
208
        </span>
209
      </div>
210
    </div>
211
  </div>
212 210
</form>
src/sunstone/public/app/tabs/marketplaceapps-tab/form-panels/create/wizard.hbs
57 57
  <div class="row">
58 58
    <div class="medium-6 columns">
59 59
      <label for="VMTEMPLATE">
60
        {{tr "VM Template"}}
61
        <span class="tip">
62
          {{tr "VM Template"}}
63
        </span>
60
        {{tr "VM template"}}
61
        {{{tip (tr "VM Template to be created. A DISK element pointing to the App Image will be automatically added when the App is exported")}}}
64 62
      </label>
65
      <textarea id="VMTEMPLATE" rows="2" wizard_field="VMTEMPLATE64" wizard_field_64="true"></textarea>
63
      <textarea class="monospace" id="VMTEMPLATE" rows="4" wizard_field="VMTEMPLATE64" wizard_field_64="true" placeholder='ATTRIBUTE = "VALUE"'></textarea>
66 64
    </div>
67 65
    <div class="medium-6 columns">
68 66
      <label for="APPTEMPLATE">
69
        {{tr "App Template"}}
70
        <span class="tip">
71
          {{tr "App Template"}}
72
        </span>
67
        {{tr "App template"}}
73 68
      </label>
74
      <textarea id="APPTEMPLATE" rows="2" wizard_field="APPTEMPLATE64" wizard_field_64="true"></textarea>
69
      <textarea class="monospace" id="APPTEMPLATE" rows="4" wizard_field="APPTEMPLATE64" wizard_field_64="true" placeholder='ATTRIBUTE = "VALUE"'></textarea>
75 70
    </div>
76 71
  </div>
77 72
  </fieldset>
src/sunstone/public/app/tabs/marketplaceapps-tab/panels/templates/html.hbs
19 19
    <table class="dataTable" cellpadding="0" cellspacing="0" border="0">
20 20
      <thead>
21 21
        <tr>
22
          <th>{{tr "App Template"}}</th>
22
          <th>{{tr "App template"}}</th>
23 23
          <th>
24 24
            <a class="appTemplate_edit right" href="#"><i class="fa fa-pencil-square-o"></i></a>
25 25
          </th>
26 26
        </tr>
27 27
      </thead>
28 28
    </table>
29
    <textarea rows="6" type="text" id="appTemplate_textarea" hidden>{{appTemplate}}</textarea>
29
    <textarea class="monospace" rows="6" type="text" id="appTemplate_textarea" hidden placeholder='ATTRIBUTE = "VALUE"'>{{appTemplate}}</textarea>
30 30
      {{#if appTemplate}}
31 31
        <pre id="appTemplate_text" class="info_text">
32 32
        {{~appTemplate~}}
......
41 41
    <table class="dataTable" cellpadding="0" cellspacing="0" border="0">
42 42
      <thead>
43 43
        <tr>
44
          <th>{{tr "VM Template"}}</th>
44
          <th>{{tr "VM template"}}</th>
45 45
          <th>
46 46
            <a class="vmTemplate_edit right" href="#"><i class="fa fa-pencil-square-o"></i></a>
47 47
          </th>
48 48
        </tr>
49 49
      </thead>
50 50
    </table>
51
    <textarea rows="6" type="text" id="vmTemplate_textarea" hidden>{{vmTemplate}}</textarea>
51
    <textarea class="monospace" rows="6" type="text" id="vmTemplate_textarea" hidden placeholder='ATTRIBUTE = "VALUE"'>{{vmTemplate}}</textarea>
52 52
      {{#if vmTemplate}}
53 53
        <pre id="vmTemplate_text" class="info_text">
54 54
        {{~vmTemplate~}}
src/sunstone/public/app/tabs/secgroups-tab/form-panels/create/wizard.hbs
103 103
        <div class="medium-4 columns security_group_rule_network">
104 104
          <label for="security_group_rule_size">{{tr "Size"}}
105 105
          </label>
106
          <input id="security_group_rule_size" type="text" placeholder="254"/>
106
          <input id="security_group_rule_size" type="number" min="0" placeholder="254"/>
107 107
        </div>
108 108
      </div>
109 109
      <div class="row">
src/sunstone/public/app/tabs/templates-tab/form-panels/instantiate/html.hbs
53 53
    <div class="medium-4 columns">
54 54
      <input type="checkbox" name="hold" id="hold"/>
55 55
      <label for="hold">
56
        {{tr "Hold"}}
56
        {{tr "Start on hold"}}
57 57
        <span class="tip">
58 58
          {{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."}}
59 59
        </span>
src/sunstone/public/app/tabs/vdcs-tab/form-panels/create/wizard.hbs
25 25
      <div class="tabs-panel is-active" id="vdcCreateGeneralTab">
26 26
        <div class="row">
27 27
          <div class="large-6 medium-8 columns">
28
            <label for="name" >{{tr "Name"}}:
28
            <label for="name" >{{tr "Name"}}
29 29
              <span class="tip">{{tr "Name that the VDC will get for description purposes."}}</span>
30 30
            </label>
31 31
            <input type="text" wizard_field="NAME" required name="name" id="name"/>
......
33 33
        </div>
34 34
        <div class="row">
35 35
          <div class="large-6 medium-8 columns">
36
            <label for="DESCRIPTION" >{{tr "Description"}}:
36
            <label for="DESCRIPTION" >{{tr "Description"}}
37 37
              <span class="tip">{{tr "Description of the VDC"}}</span>
38 38
            </label>
39 39
            <textarea type="text" wizard_field="DESCRIPTION" id="DESCRIPTION" name="DESCRIPTION"/>
src/sunstone/public/app/tabs/vnets-tab/utils/ar-tab/html.hbs
38 38
  <div class="medium-6 columns ar_input type_ip4 type_ip4_6 type_ip6 type_ether">
39 39
    <label for="{{str_ar_tab_id}}_size">{{tr "Size"}}
40 40
    </label>
41
    <input wizard_field="SIZE" required type="text" name="SIZE" id="{{str_ar_tab_id}}_size" />
41
    <input wizard_field="SIZE" required type="number" min="0" name="SIZE" id="{{str_ar_tab_id}}_size" />
42 42
  </div>
43 43
</div>
44 44
<div class="row">
src/sunstone/public/app/tabs/vrouters-tab/form-panels/create/wizard.hbs
77 77
        <label for="vm_n_times">
78 78
          {{tr "Number of VM instances"}}
79 79
        </label>
80
        <input type="text" name="vm_n_times" id="vm_n_times" value="1">
80
        <input type="number" name="vm_n_times" id="vm_n_times" value="1" min="1">
81 81
      </div>
82 82
      <div class="medium-4 columns">
83 83
        <input type="checkbox" name="hold" id="hold"/>
src/sunstone/public/app/utils/accounting/html.hbs
46 46
      </div>
47 47
    </div>
48 48
  </div>
49
  <div id="acct_button_container" class="left columns" style="margin-top: 15px">
49
  <div id="acct_button_container" class="left columns">
50
    <label>&nbsp;</label>
50 51
    <button class="button radius success large-12" id="acct_submit" type="button">
51
      {{tr "Get Accounting"}}
52
      {{tr "Get accounting"}}
52 53
    </button>
53 54
  </div>
54 55
</div>
src/sunstone/public/app/utils/panel/template-table.js
45 45
       '<tr>\
46 46
           <td class="key_td"><input type="text" name="new_key" id="new_key" /></td>\
47 47
           <td class="value_td"><textarea type="text" name="new_value" id="new_value"></textarea></td>\
48
           <td class="text-right"><button type="button" id="button_add_value" class="button small secondary">' + "+" + '</button>\</td>\
48
           <td class="text-right"><button type="button" id="button_add_value" class="button small secondary"><i class="fa fa-lg fa-plus-circle"></i></button>\</td>\
49 49
         </tr>\
50 50
      </table>'
51 51

  
src/sunstone/public/app/utils/showback/html.hbs
25 25
  </div>
26 26
  <div id="showback_button_container" class="right medium-4 columns">
27 27
    <button class="button radius success right large-12" id="showback_submit" type="button">
28
      {{tr "Get Showback"}}
28
      {{tr "Get showback"}}
29 29
    </button>
30 30
  </div>
31 31
</div>

Also available in: Unified diff