aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2019-06-17 12:49:07 -0400
committerSawyer Bergeron <sbergeron@iol.unh.edu>2019-06-17 12:49:07 -0400
commit070fa3c7761cb5f3fe7291728aaa1195b7d5432b (patch)
treedc01144948f52c718e95867151b30b398cc21b44
parent5c83c9af403d38218206a0f1370b966f768ad62e (diff)
Limit network name length to same as models
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>
-rw-r--r--src/templates/resource/steps/pod_definition.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/templates/resource/steps/pod_definition.html b/src/templates/resource/steps/pod_definition.html
index 2cb6257..f8aaa74 100644
--- a/src/templates/resource/steps/pod_definition.html
+++ b/src/templates/resource/steps/pod_definition.html
@@ -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"/>';