From 6d940b7eb822160a25283490e05e7e0a47f7efaa Mon Sep 17 00:00:00 2001 From: Patrick Cool Date: Wed, 13 May 2009 16:05:11 +0200 Subject: [PATCH] [svn r20594] indicate required field, display error message if necessary --- main/newscorm/lp_add.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/main/newscorm/lp_add.php b/main/newscorm/lp_add.php index 9b728d0746..fc816946e3 100644 --- a/main/newscorm/lp_add.php +++ b/main/newscorm/lp_add.php @@ -129,6 +129,11 @@ echo ''; Display::display_normal_message(get_lang('AddLpIntro'),false); +if ($_POST AND empty($_REQUEST['learnpath_name'])) +{ + Display::display_error_message(get_lang('FormHasErrorsPleaseComplete'), false); +} + echo '
'; // form title @@ -137,7 +142,7 @@ echo '
'.get_lang('AddLpToStart').''; echo '
'; -echo ''; +echo ''; echo '
'; echo '
'; echo ''; @@ -155,6 +160,11 @@ echo '
'; echo ''; echo ''; +echo '
'; +echo '
'; +echo '
* '.get_lang('ThisFieldIsRequired').'
'; +echo '
'; + // footer Display::display_footer(); ?> \ No newline at end of file