Limit network name length to same as models 64/68064/1
authorSawyer Bergeron <sbergeron@iol.unh.edu>
Mon, 17 Jun 2019 16:49:07 +0000 (12:49 -0400)
committerSawyer Bergeron <sbergeron@iol.unh.edu>
Mon, 17 Jun 2019 16:49:07 +0000 (12:49 -0400)
the network definition step now limits the length
of the name given to 100 characters, the same
as the Network model allows

Change-Id: Ib05d49456eef9d5201212ba05ccd3ec62c16ad10
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
dashboard/src/templates/resource/steps/pod_definition.html

index 2cb6257..f8aaa74 100644 (file)
@@ -206,7 +206,7 @@ function deleteCell(cellId) {
 }
 
 function newNetworkWindow() {
-    var innerHtml = 'Name: <input type="text" name="net_name" id="net_name_input" style="margin:5px;"><br>';
+    var innerHtml = 'Name: <input type="text" name="net_name" maxlength="100" id="net_name_input" style="margin:5px;"><br>';
     innerHtml += '<button style="width: 46%;" onclick="parseNetworkWindow()">Okay</button>';
     innerHtml += '<button style="width: 46%;" onclick="currentWindow.destroy();">Cancel</button><br>';
     innerHtml += '<div id="current_window_errors"/>';