Fix repo types to helm-chart and juju-bundle
[osm/LW-UI.git] / k8srepohandler / template / modal / k8srepo_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_k8sr" 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 Repository</h4>
24 </div>
25 <form id="formCreatek8sr" action='{% url "k8sr:create" %}'
26 class="form-horizontal"
27 method="post" enctype="multipart/form-data">
28 {% csrf_token %}
29 <div class="modal-body" id="modal_new_k8sr_body">
30 <div class="form-group">
31 <label for="k8sr_name" class="col-sm-2">Name *</label>
32 <div class="col-sm-3">
33 <input class="form-control" id="k8sr_name" name="name" placeholder="Name" required>
34 </div>
35 <label for="k8sr_type" class="col-sm-2">Type *</label>
36 <div class="col-sm-3">
37 <select required id="k8sr_type" name="type" class="form-control">
38 <option value="helm-chart">Helm Chart</option>
39 <option value="juju-bundle">Juju Bundle</option>
40 </select>
41 </div>
42
43 </div>
44
45
46 <div class="form-group">
47 <label for="k8sr_url" class="col-sm-2">Url *</label>
48 <div class="col-sm-3">
49 <input class="form-control" id="k8sr_url" name="url"
50 placeholder="Url" required>
51 </div>
52 <label for="k8sr_description" class="col-sm-2">Description</label>
53 <div class="col-sm-3">
54 <input class="form-control" id="k8sr_description" name="description"
55 placeholder="Description" >
56 </div>
57 </div>
58
59 </div>
60 <div class="modal-footer">
61 <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Cancel</button>
62 <button class="btn btn-primary"
63 data-loading-text="<i class='fa fa-circle-o-notch fa-spin'></i> Creating..."
64 id="create_new_k8sr">Register
65 </button>
66
67 </div>
68 </form>
69 </div>
70 <!-- /.modal-content -->
71 </div>
72 <!-- /.modal-dialog -->
73 </div>
74
75
76