blob: db9de50e3b706cf4d443b1d42bf6d042583635db [file] [log] [blame]
lombardofr3c7234a2019-12-03 11:23:17 +01001<!--
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-->
16
17<div class="modal" id="modal_new_k8sc" 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 K8s Cluster</h4>
24 </div>
25 <form id="formCreatek8sc" action='{% url "k8sc:create" %}'
26 class="form-horizontal"
27 method="post" enctype="multipart/form-data">
28 {% csrf_token %}
29 <div class="modal-body" id="modal_new_k8sc_body">
30 <div class="form-group">
31 <label for="k8sc_name" class="col-sm-2">Name *</label>
32 <div class="col-sm-3">
33 <input class="form-control" id="k8sc_name" name="name" placeholder="Name" required>
34 </div>
lombardofr3c7234a2019-12-03 11:23:17 +010035 <label for="k8sc_version" class="col-sm-2">K8s Version *</label>
36 <div class="col-sm-3">
37 <input class="form-control" id="k8sc_version" name="k8s_version"
38 placeholder="K8s Version" required>
39 </div>
lombardofr09380ec2019-12-05 14:21:57 +010040
41
42 </div>
43
44 <div class="form-group">
45
46 <label for="k8sc_vim_account" class="col-sm-2">Vim Account *</label>
lombardofr3c7234a2019-12-03 11:23:17 +010047 <div class="col-sm-3">
lombardofr09380ec2019-12-05 14:21:57 +010048 <select required id="k8sc_vim_account" class="js-example-basic form-control" name="vim_account">
49 </select>
50 </div>
51
52 <label for="k8sc_description" class="col-sm-2">Description *</label>
53 <div class="col-sm-3">
54 <input class="form-control" id="k8sc_description" name="description"
55 placeholder="Description" required>
lombardofr3c7234a2019-12-03 11:23:17 +010056 </div>
57 </div>
58 <div class="form-group">
lombardofr09380ec2019-12-05 14:21:57 +010059 <label for="k8sc_nets" class="col-sm-2">Nets*</label>
60 <div class="col-sm-6">
61 <textarea class="form-control" id="k8sc_nets" name="nets" placeholder="example: {'net1': 'osm-ext'}"
62 rows="2"></textarea>
63 </div>
64 </div>
65 <div class="form-group">
66 <label for="k8sc_nets" class="col-sm-2">Credentials*</label>
lombardofr3c7234a2019-12-03 11:23:17 +010067 <div class="col-sm-6">
68 <textarea class="form-control" id="credentials" name="credentials" placeholder="Yaml"
lombardofr09380ec2019-12-05 14:21:57 +010069 rows="2"></textarea>
lombardofr3c7234a2019-12-03 11:23:17 +010070 </div>
71 </div>
72
73
74
75 </div>
76 <div class="modal-footer">
77 <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Cancel</button>
78 <button class="btn btn-primary"
79 data-loading-text="<i class='fa fa-circle-o-notch fa-spin'></i> Creating..."
80 id="create_new_k8sc">Create
81 </button>
82
83 </div>
84 </form>
85 </div>
86 <!-- /.modal-content -->
87 </div>
88 <!-- /.modal-dialog -->
89</div>
90
91
92