Statistics
| Branch: | Tag: | Revision:

one / src / sunstone / public / app / tabs / users-tab / utils / user-creation / html.hbs @ ffd792ca

History | View | Annotate | Download (2.46 KB)

1
{{! -------------------------------------------------------------------------- }}
2
{{! Copyright 2002-2015, 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_row">
18
  <div class="large-12 columns">
19
    <label for="username">{{tr "Username"}}</label>
20
    <input required type="text" name="username" id="{{idPrefix}}_username" />
21
  </div>
22
</div>
23
<div class="row password_row">
24
  <div class="large-12 columns">
25
    <label for="pass">{{tr "Password"}}</label>
26
    <input required type="password" name="pass" id="{{idPrefix}}_pass" />
27
  </div>
28
  <div class="large-12 columns">
29
    <label for="confirm_password">{{tr "Confirm Password"}}</label>
30
    <input data-equalto="{{idPrefix}}_pass" type="password" name="confirm_password" id="{{idPrefix}}_confirm_password" />
31
    <small class="form-error">{{tr "Passwords do not match"}}</small>
32
  </div>
33
</div>
34
<div class="row auth_driver_row">
35
  <div class="large-12 columns">
36
    <label for="driver">{{tr "Authentication"}}</label>
37
    <select name="driver" id="{{idPrefix}}_driver">
38
      <option value="core" selected="selected">{{tr "core"}}</option>
39
      <option value="public">{{tr "public"}}</option>
40
      {{#each authMadNameList}}
41
        <option value="{{this}}">{{this}}</option>
42
      {{/each}}
43
      <option value="custom">{{tr "custom"}}</option>
44
    </select>
45
    <div>
46
      <input type="text" id="{{idPrefix}}_custom_auth" name="custom_auth" />
47
    </div>
48
  </div>
49
</div>