blob: bd734ad053f374e80ea95c0f903b04b1cf0b7a44 [file] [log] [blame]
lombardofr5bc5ebb2019-08-19 09:33:56 +02001<!--
2Copyright 2019 EveryUP srl
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15-->
lombardofr8da23132019-06-02 17:18:48 +020016<div class="modal" id="modal_new_role" 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 Role</h4>
23 </div>
24 <form id="formCreateRole" action='{% url "roles:create" %}'
25 class="form-horizontal"
26 method="post" enctype="multipart/form-data">
27 {% csrf_token %}
28 <div class="modal-body" id="modal_new_role_body">
29 <div class="form-group">
30 <label for="rolename" class="col-sm-3 control-label">Name *</label>
31 <div class="col-sm-6">
32 <input class="form-control" id="rolename" name="name"
33 placeholder="Name" required>
34 </div>
lombardofr55d48e72019-06-21 19:35:14 +020035
lombardofr8da23132019-06-02 17:18:48 +020036 </div>
lombardofr5bc5ebb2019-08-19 09:33:56 +020037
lombardofr55d48e72019-06-21 19:35:14 +020038 <div class="form-group">
lombardofr5bc5ebb2019-08-19 09:33:56 +020039 <label for="permissions" class="col-sm-3 control-label">Permissions </label>
lombardofr55d48e72019-06-21 19:35:14 +020040 <div class="col-sm-6">
lombardofr5bc5ebb2019-08-19 09:33:56 +020041 <textarea class="form-control" id="permissions" name="permissions" placeholder="Yaml permissions"
42 rows="10"></textarea>
lombardofr55d48e72019-06-21 19:35:14 +020043 </div>
44 </div>
lombardofr8da23132019-06-02 17:18:48 +020045
46 </div>
47 <div class="modal-footer">
48 <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Cancel</button>
49 <button class="btn btn-primary"
50 data-loading-text="<i class='fa fa-circle-o-notch fa-spin'></i> Creating..."
51 id="create_new_role">Create
52 </button>
53
54 </div>
55 </form>
56 </div>
57 <!-- /.modal-content -->
58 </div>
59 <!-- /.modal-dialog -->
60</div>