Fix bug 1262 - Updated requirements to use mysqlclient
[osm/LW-UI.git] / wimhandler / template / modal / wim_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
17 <div class="modal" id="modal_new_wim" 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 WIM</h4>
24 </div>
25 <form id="formCreateWIM" action='{% url "wims:create" %}'
26 class="form-horizontal"
27 method="post" enctype="multipart/form-data">
28 {% csrf_token %}
29 <div class="modal-body" id="modal_new_wim_body">
30 <div class="form-group">
31 <label for="wim_name" class="col-sm-2">Name *</label>
32 <div class="col-sm-3">
33 <input class="form-control" id="wim_name" name="name" placeholder="Name" required>
34 </div>
35
36 <label for="wim_type" class="col-sm-2">Type *</label>
37 <div class="col-sm-3">
38 <select id="wim_type" name="wim_type" class="form-control">
39 <option value="arista">Arista</option>
40 <option value="dynpac">DynPac</option>
41 <option value="floodlightof">Floodlight openflow</option>
42 <option value="odlof">OpenDaylight openflow</option>
43 <option value="onosof">ONOS openflow</option>
44 <option value="onos_vpls">ONOS vpls</option>
45 <option value="tapi">TAPI</option>
46 </select>
47 </div>
48 </div>
49
50 <div class="form-group">
51 <label for="wim_url" class="col-sm-2">URL*</label>
52 <div class="col-sm-3">
53 <input type="url" class="form-control" id="wim_url" name="wim_url"
54 placeholder="WIM URL" required>
55 </div>
56 <label for="wim_user" class="col-sm-2">Username*</label>
57 <div class="col-sm-3">
58 <input class="form-control" id="wim_user" name="user"
59 placeholder="WIM Username" required>
60 </div>
61 </div>
62
63 <div class="form-group">
64 <label for="wim_password" class="col-sm-2">Password*</label>
65 <div class="col-sm-3">
66 <input type="password" class="form-control" id="wim_password"
67 name="password" placeholder="WIMPassword" required>
68 </div>
69 <label for="wim_description" class="col-sm-2">Description</label>
70 <div class="col-sm-3">
71 <input class="form-control" id="wim_description" name="description"
72 placeholder="Description" >
73 </div>
74 </div>
75
76 </div>
77 <div class="modal-footer">
78 <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Cancel</button>
79 <button class="btn btn-primary"
80 data-loading-text="<i class='fa fa-circle-o-notch fa-spin'></i> Creating..."
81 id="create_new_wim">Create
82 </button>
83
84 </div>
85 </form>
86 </div>
87 <!-- /.modal-content -->
88 </div>
89 <!-- /.modal-dialog -->
90 </div>
91
92
93