NS/NSI instantiation with capability to open files for config and for SSH keys
[osm/LW-UI.git] / instancehandler / template / modal / instance_create.html
index a776697..456579d 100644 (file)
@@ -6,7 +6,7 @@
                     <span aria-hidden="true">×</span></button>
                 <h4 class="modal-title">New Instance</h4>
             </div>
-            <form id="formCreateNS" action='{% url "instances:create"   %}'
+            <form id="formCreateNS" action='{% url "instances:create" type='ns' %}'
                   class="form-horizontal"
                   method="post" enctype="multipart/form-data">
                 {% csrf_token %}
                         </div>
                     </div>
                     <div class="form-group">
-                        <label for="nsDescription" class="col-sm-3 control-label">Description</label>
+                        <label for="nsDescription" class="col-sm-3 control-label">Description *</label>
                         <div class="col-sm-6">
                             <input class="form-control" id="nsDescription" name="nsDescription"
-                                   placeholder="Description">
+                                   placeholder="Description" required>
                         </div>
                     </div>
                     <div class="form-group">
                         </div>
                     </div>
                     <div class="form-group">
-                        <label for="ssh_key" class="col-sm-3 control-label">SSH Key </label>
+                        <label for="ssh_keys" class="col-sm-3 control-label">SSH Key </label>
                         <div class="col-sm-6">
-                            <textarea class="form-control" id="ssh_key" name="ssh_key"
-                                      placeholder="Paste your key here..." rows="4"></textarea>
+                                <textarea class="form-control" id="ssh_key" name="ssh_key"
+                                placeholder="Paste your key here..." rows="3"></textarea> 
+                                <p class="help-block">Or load from file</p>
+                                <input type="file" id="ssh_key_files" name="ssh_key_files" multiple>
+                               
+                             
                         </div>
                     </div>
                     <div class="form-group">
                         <label for="config" class="col-sm-3 control-label">Config </label>
                         <div class="col-sm-6">
                             <textarea class="form-control" id="config" name="config" placeholder="Yaml config"
-                                      rows="4"></textarea>
+                                      rows="3"></textarea>
+                            <p class="help-block">Or load from file</p>
+                            <input type="file" id="config_file" name="config_file">
                         </div>
                     </div>