5aba035b0c76a6c27262d4ab8e258c7a848c7da1
[osm/LW-UI.git] / userhandler / templates / modal / user_create.html
1 <!--
2 Copyright 2019 EveryUP srl
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain 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 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 <div class="modal" id="modal_new_user" xmlns="http://www.w3.org/1999/html">
17 <div class="modal-dialog">
18 <div class="modal-content">
19 <div class="modal-header">
20 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
21 <span aria-hidden="true">×</span></button>
22 <h4 class="modal-title">New User</h4>
23 </div>
24 <form id="formCreateUser" action='{% url "users:create" %}'
25 class="form-horizontal"
26 method="post" enctype="multipart/form-data">
27 {% csrf_token %}
28 <div class="modal-body" id="modal_new_user_body">
29
30 <div class="form-group">
31 <label for="username" class="col-sm-3 control-label">Username *</label>
32 <div class="col-sm-6">
33 <input class="form-control" id="username" name="username"
34 placeholder="Username" required>
35 </div>
36 </div>
37
38 <div class="form-group">
39 <label for="password" class="col-sm-3 control-label">Password *</label>
40 <div class="col-sm-6">
41 <input class="form-control" id="password" name="password" type="password"
42 placeholder="Password" autocomplete="off" required>
43 </div>
44 </div>
45
46 <div class="form-group">
47 <label for="password" class="col-sm-3 control-label">Conf. Password *</label>
48 <div class="col-sm-6">
49 <input class="form-control" id="password2" name="password2" type="password"
50 placeholder="Repeat Password" autocomplete="off" required>
51 <div class="row">
52 <div class="col-sm-12">
53 <span id="pwmatch" class="glyphicon glyphicon-remove" style="color:#FF0004;"></span> Passwords Match
54 </div>
55 </div>
56 </div>
57 </div>
58
59 <div class="form-group">
60 <label for="domain_name" class="col-sm-3 control-label">Domain</label>
61
62 <div class="col-sm-6">
63 <select required id="domain_name" class="js-example-basic form-control" name="domain_name">
64 </select>
65 </div>
66 </div>
67
68
69 </div>
70 <div class="modal-footer">
71 <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Cancel</button>
72 <button class="btn btn-primary"
73 data-loading-text="<i class='fa fa-circle-o-notch fa-spin'></i> Creating..."
74 id="create_new_user">Create
75 </button>
76
77 </div>
78 </form>
79 </div>
80 <!-- /.modal-content -->
81 </div>
82 <!-- /.modal-dialog -->
83 </div>