diff --git a/app/conference_profiles/conference_profiles.php b/app/conference_profiles/conference_profiles.php index 64a7f855ed..6a6e21c99d 100644 --- a/app/conference_profiles/conference_profiles.php +++ b/app/conference_profiles/conference_profiles.php @@ -156,7 +156,7 @@ echo " \n"; } echo th_order_by('profile_name', $text['label-profile_name'], $order_by, $order); - echo th_order_by('profile_enabled', $text['label-profile_enabled'], $order_by, $order); + echo th_order_by('profile_enabled', $text['label-profile_enabled'], $order_by, $order, null, "class='center'"); echo " ".$text['label-profile_description']."\n"; if (permission_exists('conference_profile_edit') && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') { echo "  \n"; @@ -184,7 +184,15 @@ echo " ".escape($row['profile_name']); } echo " \n"; - echo " ".escape($row['profile_enabled'])."\n"; + if (permission_exists('conference_profile_edit')) { + echo " \n"; + echo button::create(['type'=>'submit','class'=>'link','label'=>$text['label-'.$row['profile_enabled']],'title'=>$text['button-toggle'],'onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('toggle'); list_form_submit('form_list')"]); + } + else { + echo " \n"; + echo $text['label-'.$row['profile_enabled']]; + } + echo " \n"; echo " ".escape($row['profile_description'])."\n"; if (permission_exists('conference_profile_edit') && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') { echo " \n"; @@ -206,4 +214,4 @@ //include the footer require_once "resources/footer.php"; -?> +?> \ No newline at end of file