Revision ffd792ca

View differences:

src/sunstone/public/app/app.js
27 27
  var Notifier = require('utils/notifier');
28 28
  var Menu = require('utils/menu');
29 29
  var Locale = require('utils/locale');
30
  var UserInputs = require('utils/user-inputs');
31 30

  
32 31
  var UserAndZoneTemplate = require('hbs!sunstone/user_and_zone');
33 32

  
......
56 55
    _setupAccordion();
57 56
    _setupCloseDropdownsOnClick();
58 57
    _insertUserAndZoneSelector();
59
    UserInputs.initialSetup();
60 58

  
61 59
    if (Config.isTabEnabled(PROVISION_TAB_ID)) {
62 60
      Sunstone.showTab(PROVISION_TAB_ID);
src/sunstone/public/app/tabs/oneflow-templates-tab/form-panels/create.js
105 105
        '<tr>\
106 106
          <td>\
107 107
            <input class="service_network_name" type="text" pattern="^\\w+$"/>\
108
            <small class="error">'+Locale.tr("Can only contain alphanumeric and underscore characters")+'</small>\
108
            <small class="form-error">'+Locale.tr("Can only contain alphanumeric and underscore characters")+'</small>\
109 109
          </td>\
110 110
          <td>\
111 111
            <textarea class="service_network_description"/>\
src/sunstone/public/app/tabs/oneflow-templates-tab/utils/role-tab/html.hbs
20 20
      <span class="tip">{{tr "Name of the role"}}</span>
21 21
    </label>
22 22
    <input type="text" id="role_name" name="name" required pattern="^\w+$"/>
23
    <small class="error">{{tr "Can only contain alphanumeric and underscore characters"}}</small>
23
    <small class="form-error">{{tr "Can only contain alphanumeric and underscore characters"}}</small>
24 24
  </div>
25 25
  <div class="service_template_param service_role medium-2 columns end">
26 26
    <label for="cardinality">{{tr "VMs"}}
src/sunstone/public/app/tabs/users-tab/utils/user-creation/html.hbs
28 28
  <div class="large-12 columns">
29 29
    <label for="confirm_password">{{tr "Confirm Password"}}</label>
30 30
    <input data-equalto="{{idPrefix}}_pass" type="password" name="confirm_password" id="{{idPrefix}}_confirm_password" />
31
    <small class="error">{{tr "Passwords do not match"}}</small>
31
    <small class="form-error">{{tr "Passwords do not match"}}</small>
32 32
  </div>
33 33
</div>
34 34
<div class="row auth_driver_row">
src/sunstone/public/app/utils/user-inputs/row.hbs
2 2
  <td>
3 3
    <label>{{tr "Name"}}
4 4
      <input class="user_input_name" type="text" pattern="^\w+$"/>
5
      <small class="error">{{tr "Can only contain alphanumeric and underscore characters"}}</small>
5
      <small class="form-error">{{tr "Can only contain alphanumeric and underscore characters"}}</small>
6 6
    </label>
7 7
  </td>
8 8
  <td>

Also available in: Unified diff