From 7b454e322a2e991a4f15104b0092edae8c9b40e9 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 19 Aug 2010 22:56:31 +0000 Subject: [PATCH] Cleanup the roles page so it's not so vertically abundant. --- user_organization.php | 2 +- user_roles.php | 59 +++++++++++++++++++++++++------------------ 2 files changed, 36 insertions(+), 25 deletions(-) diff --git a/user_organization.php b/user_organization.php index 93fa7d0..60cc809 100644 --- a/user_organization.php +++ b/user_organization.php @@ -91,7 +91,7 @@ case 'save':
- + diff --git a/user_roles.php b/user_roles.php index ff904f9..89ac3af 100644 --- a/user_roles.php +++ b/user_roles.php @@ -70,7 +70,7 @@ case 'delete': case 'remove': /* Like delete, only we're only deleting a role, not the whole account */ happy_("{$roles[$role]['name']} role successfully removed."); - echo error(i18n("Permanently Removed")); + echo i18n("Removed"); user_delete($u, $role); exit; @@ -83,7 +83,7 @@ case 'remove': $u['roles'][$role]['active'] = 'yes'; user_save($u); happy_("{$roles[$role]['name']} role for %1 successfully activated",array($config['FAIRYEAR'])); - echo happy(i18n("Active")); + echo i18n("Active"); exit; case 'deactivate': @@ -95,7 +95,7 @@ case 'remove': $u['roles'][$role]['active'] = 'no'; user_save($u); happy_("{$roles[$role]['name']} role for %1 successfully deactivated",array($config['FAIRYEAR'])); - echo error(i18n("Deactivated")); + echo i18n("Deactivated"); exit; } @@ -108,73 +108,84 @@ case 'remove': echo '
  • '.i18n("An Active Role indicates you would like to participate in the %1 %2 as that role (Judge, Volunteer, etc.)",array($config['FAIRYEAR'],$config['fairname'])); echo '
  • '.i18n("A Deactivated Role indicates you cannot participate in the deactivated roles this year, but would like remain on the mailing lists for future years. You can activate your deactivated role at any time."); echo '
  • '.i18n("The Remove Role button completely deletes the role from your account. You will not receive future emails for the removed role. This action cannot be undone."); - echo '
  • '.i18n("The Delete Entire Account button at the bottom of the page completely deletes your entire account. You will not receive any future email for any roles. It completely removes you from the system. This action cannot be undone."); echo ''; ?> - - + +
  • Organization
    Organization
    '.i18n("Role: {$roles[$r]['name']}").''; - echo "
    "; + if($u['roles'][$r]['active'] == 'yes') { - echo happy(i18n('Active')); + $cs = i18n('Active'); + $cl = 'happy'; $a = 'disabled="disabled"'; $d = ''; } else { - echo notice(i18n('Deactivated')); + $cs = i18n('Deactivated'); + $cl = 'notice'; $a = ''; $d = 'disabled="disabled"'; } ?> -
    + + + + - +
    -
    - onclick="activate('');return false;" type="submit" value=""> - - onclick="deactivate('');return false;" type="submit" value=""> - - onclick="remove('');return false;" type="submit" value=""> + + + -
    -
    -
    +
    +


    +Delete Entire Account button completely deletes your entire account. You will not receive any future email for any roles. It completely removes you from the system. This action cannot be undone.")?> +
    +
    ');" type="submit" value="">