| lombardofr | 5bc5ebb | 2019-08-19 09:33:56 +0200 | [diff] [blame^] | 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 | --> |
| lombardofr | 8da2313 | 2019-06-02 17:18:48 +0200 | [diff] [blame] | 16 | <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> |
| lombardofr | 55d48e7 | 2019-06-21 19:35:14 +0200 | [diff] [blame] | 35 | |
| lombardofr | 8da2313 | 2019-06-02 17:18:48 +0200 | [diff] [blame] | 36 | </div> |
| lombardofr | 5bc5ebb | 2019-08-19 09:33:56 +0200 | [diff] [blame^] | 37 | |
| lombardofr | 55d48e7 | 2019-06-21 19:35:14 +0200 | [diff] [blame] | 38 | <div class="form-group"> |
| lombardofr | 5bc5ebb | 2019-08-19 09:33:56 +0200 | [diff] [blame^] | 39 | <label for="permissions" class="col-sm-3 control-label">Permissions </label> |
| lombardofr | 55d48e7 | 2019-06-21 19:35:14 +0200 | [diff] [blame] | 40 | <div class="col-sm-6"> |
| lombardofr | 5bc5ebb | 2019-08-19 09:33:56 +0200 | [diff] [blame^] | 41 | <textarea class="form-control" id="permissions" name="permissions" placeholder="Yaml permissions" |
| 42 | rows="10"></textarea> |
| lombardofr | 55d48e7 | 2019-06-21 19:35:14 +0200 | [diff] [blame] | 43 | </div> |
| 44 | </div> |
| lombardofr | 8da2313 | 2019-06-02 17:18:48 +0200 | [diff] [blame] | 45 | |
| 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> |