Removed disabled features from "Fair Administration" and disabled the respective configuration options.

This commit is contained in:
Armanveer Gill 2025-01-19 22:03:25 -05:00
parent 8569fb79f8
commit 1739b5dbe6
3 changed files with 7 additions and 3 deletions

View File

@ -44,7 +44,7 @@
if($config['volunteer_enable'] == 'yes')
echo "<a href=\"volunteers.php\">".theme_icon("volunteer_management")."<br />".i18n("Volunteer Management")."</a>";
else
echo theme_icon("volunteer_management")."<br />".i18n("Volunteer Management")."<br /><i>(".i18n("disabled").")</i>";
// {echo theme_icon("volunteer_management")."<br />".i18n("Volunteer Management")."<br /><i>(".i18n("disabled").")</i>"};
echo "</td></tr>";
echo "</table>\n";
echo "<hr />";
@ -56,13 +56,13 @@
if($config['tours_enable'] == 'yes')
echo "<a href=\"tours.php\">".theme_icon("tour_management")."<br />".i18n("Tour Management")."</a>";
else
echo theme_icon("tour_management")."<br />".i18n("Tour Management")."<br /><i>(".i18n("disabled").")</i>";
// {echo theme_icon("tour_management")."<br />".i18n("Tour Management")."<br /><i>(".i18n("disabled").")</i>";}
echo "</td>";
echo " <td>";
if($config['participant_regfee_items_enable'] == 'yes')
echo "<a href=\"regfee_items_manager.php\">".theme_icon("registration_fee_items_management")."<br />".i18n("Registration Fee Items Management")."</a>";
else
echo theme_icon("registration_fee_items_management")."<br />".i18n("Registration Fee Items Management")."<br /><i>(".i18n("disabled").")</i>";
// {echo theme_icon("registration_fee_items_management")."<br />".i18n("Registration Fee Items Management")."<br /><i>(".i18n("disabled").")</i>";}
echo "</td>";
echo " </tr>\n";

View File

@ -419,6 +419,7 @@ foreach($report_stock as $n=>$v) {
$report['loc'] = array();
$fieldvar = "report_{$report['type']}s_fields";
if(is_array($$fieldvar))
$allow_fields = array_keys($$fieldvar);
else

View File

@ -203,6 +203,9 @@ function config_editor($category, $year, $array_name, $self)
* have to modify 2 questions to maintain the order */
$var = config_editor_load($category, $year);
if (($category == 'Tours' or $category == 'Volunteer Registration') and ($config['tours_enable'] !== 'yes' or $config['participant_regfee_items_enable'] !== 'yes'))
echo "<form method=\"post\" style='pointer-events: none; opacity: 0.5;' action=\"$self\">";
echo "<form method=\"post\" action=\"$self\">";
echo "<table cellpadding=\"3\">";