diff --git a/include/staff/settings-access.inc.php b/include/staff/settings-access.inc.php index a4da0611311d5e7afbbd3e720c48b02d2dc7a8f2..119369908b5e1265e723228486e95ca187953d97 100644 --- a/include/staff/settings-access.inc.php +++ b/include/staff/settings-access.inc.php @@ -137,24 +137,28 @@ if(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin() || !$config) <em><b>Authentication and Registration Templates</b></em> </th> </tr> -<?php foreach (array( - 'pwreset-staff' => 'Password Reset for Staff', - 'staff-banner' => 'Login banner for Staff', - 'registration-staff' => 'New Staff Account', - - 'pwreset-client' => 'Password Reset for Clients', - 'registration-client' => 'Account Registration Email', - 'registration-policy' => 'Client Registration Policy', - ) as $content => $title) { ?> - <tr> - <td><?php echo $title; ?></td> - <td><a href="ajax.php/content/<?php echo $content; ?>/manage" - onclick="javascript: - $.dialog($(this).attr('href'), 200); - return false;">Manage</a> - </td> - </tr> -<?php } ?> +<?php $manage_content = function($title, $content) { + ?><a href="#ajax.php/content/<?php echo $content; ?>/manage" + onclick="javascript: + $.dialog($(this).attr('href').substr(1), 200); + return false;"><?php echo Format::htmlchars($title); ?></a><?php +}; ?> + <tr><td>Password Reset Emails</td> + <td><?php $manage_content('Staff Members', 'pwreset-staff'); ?> + — <?php $manage_content('Clients', 'pwreset-client'); ?> + — <?php $manage_content('Guess Ticket Access', 'access-link'); ?> + </td></tr> + <tr><td>Sign-In Pages</td> + <td><?php $manage_content('Staff Login Banner', 'staff-banner'); ?> + — <?php $manage_content('Client Sign-In Page', 'registration-policy'); ?> + <tr><td>Client Account Registration</td> + <td><?php $manage_content('Please Confirm Email Address Page', 'registration-confirm'); ?> + — <?php $manage_content('Confirmation Email', 'registration-client'); ?> + — <?php $manage_content('Account Confirmed Page', 'registration-thanks'); ?> + </td></tr> + <tr><td>Staff Account Registration</td> + <td><?php $manage_content('Staff Welcome Email', 'registration-staff'); ?> + </td></tr> </tbody> </table> <p style="text-align:center">