| lombardofr | c1e3d67 | 2019-12-17 14:58:24 +0100 | [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 | <div class="modal" id="modal_new_vim" xmlns="http://www.w3.org/1999/html"> |
| 17 | <div class="modal-dialog modal-lg"> |
| 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 VIM</h4> |
| 23 | </div> |
| 24 | <form id="formCreateVIM" action='{% url "vims:create" %}' |
| 25 | class="form-horizontal" |
| 26 | method="post" enctype="multipart/form-data"> |
| 27 | {% csrf_token %} |
| 28 | <div class="modal-body" id="modal_new_vim_body"> |
| 29 | <div class="form-group"> |
| 30 | <label for="vim_name" class="col-sm-2">Name *</label> |
| 31 | <div class="col-sm-3"> |
| 32 | <input class="form-control" id="vim_name" name="name" placeholder="Name" required> |
| 33 | </div> |
| 34 | |
| 35 | <label for="vim_type" class="col-sm-2">Type *</label> |
| 36 | <div class="col-sm-3"> |
| 37 | <select id="vim_type" name="vim_type" class="form-control"> |
| 38 | <option value="openvim">OpenVIM</option> |
| 39 | <option value="openstack">Openstack</option> |
| 40 | <option value="vmware">VMware vCD</option> |
| 41 | <option value="aws">AWS</option> |
| 42 | <option value="opennebula">OpenNebula</option> |
| 43 | </select> |
| 44 | </div> |
| 45 | </div> |
| 46 | |
| 47 | <div class="form-group"> |
| 48 | <label for="vim_url" class="col-sm-2">URL*</label> |
| 49 | <div class="col-sm-3"> |
| 50 | <input type="url" class="form-control" id="vim_url" name="vim_url" |
| 51 | placeholder="VIM URL" required> |
| 52 | </div> |
| 53 | <label for="vim_tenant_name" class="col-sm-2">Tenant name*</label> |
| 54 | <div class="col-sm-3"> |
| 55 | <input class="form-control" id="vim_tenant_name" name="vim_tenant_name" |
| 56 | placeholder="Tenant name" required> |
| 57 | </div> |
| 58 | |
| 59 | </div> |
| 60 | |
| 61 | <div class="form-group"> |
| 62 | <label for="vim_user" class="col-sm-2">Username*</label> |
| 63 | <div class="col-sm-3"> |
| 64 | <input class="form-control" id="vim_user" name="vim_user" |
| 65 | placeholder="VIM Username" required> |
| 66 | </div> |
| 67 | <label for="vim_password" class="col-sm-2">Password*</label> |
| 68 | <div class="col-sm-3"> |
| 69 | <input type="password" class="form-control" id="vim_password" |
| 70 | name="vim_password" placeholder="VIM Password" required> |
| 71 | </div> |
| 72 | </div> |
| 73 | <div class="form-group"> |
| 74 | |
| 75 | <label for="vim_description" class="col-sm-2">Description</label> |
| 76 | <div class="col-sm-3"> |
| 77 | <input class="form-control" id="vim_description" name="description" |
| 78 | placeholder="Description" > |
| 79 | </div> |
| 80 | </div> |
| 81 | <div class="form-group"> |
| 82 | <label for="config" class="col-sm-3 control-label">Config </label> |
| 83 | <div class="col-sm-6"> |
| 84 | <textarea class="form-control" id="config" name="config" placeholder="Yaml config" |
| 85 | rows="3"></textarea> |
| 86 | <p class="help-block">Or load from file</p> |
| 87 | <input type="file" id="config_file" name="config_file"> |
| 88 | </div> |
| 89 | </div> |
| 90 | |
| 91 | </div> |
| 92 | <div class="modal-footer"> |
| 93 | <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Cancel</button> |
| 94 | <button class="btn btn-primary" |
| 95 | data-loading-text="<i class='fa fa-circle-o-notch fa-spin'></i> Creating..." |
| 96 | id="create_new_vim">Create |
| 97 | </button> |
| 98 | |
| 99 | </div> |
| 100 | </form> |
| 101 | </div> |
| 102 | <!-- /.modal-content --> |
| 103 | </div> |
| 104 | <!-- /.modal-dialog --> |
| 105 | </div> |
| 106 | |
| 107 | |
| 108 | |