fix: removed domain_name as required input when there is no domain costraints
[osm/LW-UI.git] / projecthandler / template / project / modal / project_new.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 <div class="modal" id="modal_new_project" xmlns="http://www.w3.org/1999/html">
17 <div class="modal-dialog">
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" id="modal_new_project_title">New Project</h4>
23 </div>
24 <form id="formNewProject" action='{% url "projects:new_project" %}'class="form-horizontal" method="post" >
25 {% csrf_token %}
26 <div class="modal-body">
27
28 <div class="form-group" id="div_chose_id" >
29 <label for="name" class="col-sm-3 control-label">Project Name* </label>
30 <input name="name" id="name" size="40" maxlength="20"required/>
31 </div>
32
33 <div class="form-group" id="domainNameGroupDiv">
34 <label for="domain_name" class="col-sm-3 control-label">Domain Name* </label>
35 <div class="col-sm-6">
36 <select id="domain_name" class="js-example-basic form-control" name="domain_name" required>
37 </select>
38 </div>
39 </div>
40
41 </div>
42
43 <div class="modal-footer">
44 <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Cancel</button>
45 <button class="btn btn-primary"
46 data-loading-text="<i class='fa fa-circle-o-notch fa-spin'></i> Creating..."
47 id="create_new_project">Create
48 </button>
49 </div>
50 </form>
51 </div>
52 <!-- /.modal-content -->
53 </div>
54 <!-- /.modal-dialog -->
55 </div>