Skip to content

Commit

Permalink
Enahnce alumni module
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 6, 2024
1 parent 97b0436 commit 59c6d88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion htdocs/alumni/admin/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@
$item->defaultFieldValue = 'Promo 100';

// Setup conf for a selection of a boolean
$formSetup->newItem('ALUMNI_ENABLE_SURVEY')->setAsYesNo();
$fieldOptions = array(0 => 'Draft', 1 => 'Open', 2 => 'Closed');
$formSetup->newItem('ALUMNI_ENABLE_SURVEY')->setAsSelect($fieldOptions);

// Setup to show the step
$fieldOptions = array(1 => 'Step 1 - Communication and first survey', 2 => 'Step 2 - Selection of town and exact day', 3 => 'Step 3 - Organization of event');
$formSetup->newItem('ALUMNI_STEP_ORGANIZATION')->setAsSelect($fieldOptions);


$setupnotempty += count($formSetup->items);
Expand Down
4 changes: 3 additions & 1 deletion htdocs/alumni/langs/en_US/alumni.lang
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ Settings = Settings
AlumniSetupPage = Alumni setup page
ALUMNI_YEAR=Year since the graduate
ALUMNI_PROMONAME=Name or number of the promotion
ALUMNI_ENABLE_SURVEY=Enable the survey
ALUMNI_ENABLE_SURVEY=Enable the surveys provided by the website template
ALUMNI_STEP=Step of the project (1=Communication and first survey, 2=Selection of town and exact day, 3=Organization of event)


#
# About page
Expand Down

0 comments on commit 59c6d88

Please sign in to comment.