From d814b763095ac30664e1291a8e34d849ff090900 Mon Sep 17 00:00:00 2001 From: Julien WITTOUCK Date: Wed, 28 Aug 2019 19:48:38 +0200 Subject: [PATCH] :children_crossing: : add client-side validation to module fields resolves #71 --- src/main/resources/templates/module.html | 25 +++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/src/main/resources/templates/module.html b/src/main/resources/templates/module.html index c4ea05b86..69f770629 100644 --- a/src/main/resources/templates/module.html +++ b/src/main/resources/templates/module.html @@ -48,12 +48,14 @@

Module {{module.name}}

- + + This field is mandatory - + + This field is mandatory @@ -82,7 +84,8 @@

Module {{module.name}}

- + + This field is mandatory @@ -114,7 +117,8 @@

Variables - + + This field is mandatory @@ -138,7 +142,7 @@

Variables Save + Save @@ -165,6 +169,10 @@

Variables $.get('/api/terraform-cli/versions').then(versions => ({module, versions}))) .then(({module, versions}) => $.get('/api/teams').then(teams => ({module, versions, teams}))) @@ -195,6 +203,13 @@

Variables