k8sClusters; k8sRepos
[osm/LW-UI.git] / k8sclusterhandler / template / modal / k8scluster_register.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_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>
35 <label for="k8sc_vim_account" class="col-sm-2">Vim Account *</label>
36 <div class="col-sm-3">
37 <select required id="k8sc_vim_account" class="js-example-basic form-control" name="vim_account">
38 </select>
39 </div>
40
41 </div>
42
43
44 <div class="form-group">
45 <label for="k8sc_version" class="col-sm-2">K8s Version *</label>
46 <div class="col-sm-3">
47 <input class="form-control" id="k8sc_version" name="k8s_version"
48 placeholder="K8s Version" required>
49 </div>
50 <label for="k8sc_nets" class="col-sm-2">Nets*</label>
51 <div class="col-sm-3">
52 <input class="form-control" id="k8sc_nets" name="nets"
53 placeholder="Nets" >
54 </div>
55 </div>
56 <div class="form-group">
57 <label for="credentials" class="col-sm-3 control-label">Credentials *</label>
58 <div class="col-sm-6">
59 <textarea class="form-control" id="credentials" name="credentials" placeholder="Yaml"
60 rows="3"></textarea>
61 <!--<p class="help-block">Or load from file</p>
62 <input type="file" id="credentials_file" name=credentials_file">-->
63 </div>
64 </div>
65
66
67
68 </div>
69 <div class="modal-footer">
70 <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Cancel</button>
71 <button class="btn btn-primary"
72 data-loading-text="<i class='fa fa-circle-o-notch fa-spin'></i> Creating..."
73 id="create_new_k8sc">Create
74 </button>
75
76 </div>
77 </form>
78 </div>
79 <!-- /.modal-content -->
80 </div>
81 <!-- /.modal-dialog -->
82 </div>
83
84
85