Bug 869 fixed by modifiying sdn create's password input field
[osm/LW-UI.git] / sdnctrlhandler / template / sdn_create.html
index a1aeadf..bae4bc6 100644 (file)
@@ -1,3 +1,19 @@
+<!--
+Copyright 2019 EveryUP srl
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an  BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
 {% extends "base.html" %}
 {% load get %}
 {% load staticfiles %}
@@ -19,7 +35,7 @@
 
 {% block breadcrumb_body %}
     {{ block.super }}
-    <li><a href="{% url 'projects:sdns:list' project_id=project_id %}">SDN Controllers</a></li>
+    <li><a href="{% url 'sdns:list'  %}">SDN Controllers</a></li>
 {% endblock %}
 
 {% block content_body %}
@@ -27,7 +43,7 @@
 
     <div class="row">
         <div class="col-md-12">
-            <form action='{% url 'projects:sdns:create' project_id=project_id%}' method="post">
+            <form action='{% url 'sdns:create'  %}' method="post">
                 {% csrf_token %}
                 <div class="box">
                     <div class="box-header with-border">
                                     <div class="form-group">
                                         <label for="sdn_type" class="col-sm-3 control-label">Type*</label>
                                         <div class="col-sm-6 input-group input-group-sm">
-                                            <input class="form-control" id="sdn_type" name="type" required>
+                                        <select id="sdn_type" name="type" class="form-control">
+                                            <option value="onos">ONOS</option>
+                                            <option value="opendaylight">OpenDaylight</option>
+                                            <option value="floodlight">Floodlight</option>
+
+                                        </select>
                                         </div>
                                     </div>
+
                                 </div>
                                 <div class="row">
                                     <div class="form-group">
@@ -68,7 +90,7 @@
                                         <label for="sdn_password" class="col-sm-3 control-label">Password*</label>
                                         <div class="col-sm-6 input-group input-group-sm">
                                             <input type="password" class="form-control" id="password"
-                                                   name="sdn_password" required>
+                                                   name="password" required>
                                         </div>
                                     </div>
                                 </div>
                                     <div class="form-group">
                                         <label for="sdn_ip" class="col-sm-3 control-label">IP*</label>
                                         <div class="col-sm-6 input-group input-group-sm">
-                                            <input class="form-control" id="sdn_ip" name="ip"  required>
+                                            <input class="form-control" id="sdn_ip" name="ip" required>
                                         </div>
                                     </div>
                                 </div>
                                     <div class="form-group">
                                         <label for="sdn_port" class="col-sm-3 control-label">Port*</label>
                                         <div class="col-sm-6 input-group input-group-sm">
-                                            <input class="form-control" type="number" id="sdn_port" name="port" required>
+                                            <input class="form-control" type="number" id="sdn_port" name="port"
+                                                   required>
                                         </div>
                                     </div>
                                 </div>
                                     <div class="form-group">
                                         <label for="sdn_dpid" class="col-sm-3 control-label">DPID*</label>
                                         <div class="col-sm-6 input-group input-group-sm">
-                                            <input class="form-control" id="sdn_dpid" name="dpid" pattern="[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){7}" required>
+                                            <input class="form-control" id="sdn_dpid" name="dpid"
+                                                   placeholder="xx:xx:xx:xx:xx:xx:xx:xx"
+                                                   pattern="[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){7}" required>
                                         </div>
                                     </div>
                                 </div>
 
                     </div>
                     <div class="box-footer">
-                        <button onclick="location.href='{%  url 'projects:sdns:list' project_id=project_id %}'" class="btn btn-default pull-left">Back to
+                        <button onclick="location.href='{% url 'sdns:list'  %}'"
+                                class="btn btn-default pull-left">Back to
                             SDN Controllers
                         </button>
                         <button class="btn btn-primary pull-right">Create</button>
 
 {% block footer %}
     {% include "footer.html"  %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}