diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2019-06-17 12:49:07 -0400 |
---|---|---|
committer | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2019-06-17 12:49:07 -0400 |
commit | 02e6d84590dac42d3157f563faa248acdb6503df (patch) | |
tree | 4f7d3b6d6a05639ffe9bc3422a6c6c68e32b7f55 | |
parent | 6a504fd180908365578369a6f2692e4524f31908 (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-- | dashboard/src/templates/resource/steps/pod_definition.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dashboard/src/templates/resource/steps/pod_definition.html b/dashboard/src/templates/resource/steps/pod_definition.html index 2cb6257..f8aaa74 100644 --- a/dashboard/src/templates/resource/steps/pod_definition.html +++ b/dashboard/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"/>'; |