From 2f629b204d7b6aa2665ad4fdead63be07459c079 Mon Sep 17 00:00:00 2001 From: tworrall Date: Wed, 2 Oct 2013 11:56:36 -0400 Subject: [PATCH] VIVO-315: add error message for missing type selection --- languages/example/themes/wilma/i18n/all_es.properties | 1 + .../freemarker/edit/forms/addRoleToPersonTwoStage.ftl | 5 ++++- themes/wilma/i18n/all.properties | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/languages/example/themes/wilma/i18n/all_es.properties b/languages/example/themes/wilma/i18n/all_es.properties index 30ee0b43..1753870f 100644 --- a/languages/example/themes/wilma/i18n/all_es.properties +++ b/languages/example/themes/wilma/i18n/all_es.properties @@ -841,3 +841,4 @@ no_linked_author = ningún editor vinculados remove_editor_link = desconecte la conexión de editor add_an_editor = Agregar uno Editor add_editor = Agregar Editor +please_select_type = Por favor Seleccione un tipo de la lista desplegable. \ No newline at end of file diff --git a/productMods/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl b/productMods/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl index f5a4c7b3..b8e5981f 100644 --- a/productMods/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl +++ b/productMods/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl @@ -106,7 +106,10 @@ Set this flag on the input acUriReceiver where you would like this behavior to o - <#--Checking if Name field is empty--> + <#--Checking if Type, Name and Role fields are empty--> + <#if lvf.submissionErrorExists(editSubmission, "roleActivityType")> + ${i18n().please_select_type}
+ <#if lvf.submissionErrorExists(editSubmission, "activityLabel")> ${i18n().select_or_enter_name}
diff --git a/themes/wilma/i18n/all.properties b/themes/wilma/i18n/all.properties index 183cd168..21575109 100644 --- a/themes/wilma/i18n/all.properties +++ b/themes/wilma/i18n/all.properties @@ -859,3 +859,4 @@ no_linked_author = no linked editor remove_editor_link = remove editor link add_an_editor = Add an Editor add_editor = Add Editor +please_select_type = Please select a type from the drop-down list. \ No newline at end of file