| melian | e59fb02 | 2020-05-06 09:53:27 +0000 | [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 | --> |
| 16 | |
| 17 | <div class="modal" id="modal_new_osmr" xmlns="http://www.w3.org/1999/html"> |
| 18 | <div class="modal-dialog modal-lg"> |
| 19 | <div class="modal-content"> |
| 20 | <div class="modal-header"> |
| 21 | <button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
| 22 | <span aria-hidden="true">×</span></button> |
| 23 | <h4 class="modal-title">New OSM Repository</h4> |
| 24 | </div> |
| 25 | <form id="formCreateosmr" action='{% url "osmr:create" %}' |
| 26 | class="form-horizontal" |
| 27 | method="post" enctype="multipart/form-data"> |
| 28 | {% csrf_token %} |
| 29 | <div class="modal-body" id="modal_new_osmr_body"> |
| 30 | <div class="form-group"> |
| 31 | <label for="osmr_name" class="col-sm-2">Name *</label> |
| 32 | <div class="col-sm-3"> |
| 33 | <input class="form-control" id="osmr_name" name="name" placeholder="Name" required> |
| 34 | </div> |
| 35 | <label for="osmr_type" class="col-sm-2">Type *</label> |
| 36 | <div class="col-sm-3"> |
| 37 | <select required id="osmr_type" name="type" class="form-control"> |
| 38 | <option value="osm">osm</option> |
| 39 | </select> |
| 40 | </div> |
| 41 | |
| 42 | </div> |
| 43 | |
| 44 | |
| 45 | <div class="form-group"> |
| 46 | <label for="osmr_url" class="col-sm-2">Url *</label> |
| 47 | <div class="col-sm-3"> |
| 48 | <input class="form-control" id="osmr_url" name="url" |
| 49 | placeholder="Url" required> |
| 50 | </div> |
| 51 | <label for="osmr_description" class="col-sm-2">Description *</label> |
| 52 | <div class="col-sm-3"> |
| 53 | <input class="form-control" id="osmr_description" name="description" |
| 54 | placeholder="Description" required> |
| 55 | </div> |
| 56 | </div> |
| 57 | |
| 58 | </div> |
| 59 | <div class="modal-footer"> |
| 60 | <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Cancel</button> |
| 61 | <button class="btn btn-primary" |
| 62 | data-loading-text="<i class='fa fa-circle-o-notch fa-spin'></i> Creating..." |
| 63 | id="create_new_osmr">Register |
| 64 | </button> |
| 65 | |
| 66 | </div> |
| 67 | </form> |
| 68 | </div> |
| 69 | <!-- /.modal-content --> |
| 70 | </div> |
| 71 | <!-- /.modal-dialog --> |
| 72 | </div> |
| 73 | |
| 74 | |
| 75 | |