From 6a1922d9aaf021d8919dbc87d8e59305c603ae59 Mon Sep 17 00:00:00 2001 From: pete Date: Mon, 12 Apr 2010 18:36:45 +0000 Subject: Updated custom profile fields admin area / list re-ordering ui. git-svn-id: http://code.elgg.org/elgg/trunk@5704 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/defaultprofile.php | 10 ++++++---- mod/profile/languages/en.php | 2 +- mod/profile/views/default/profile/css.php | 20 ++++++++++++++++++++ .../default/profile/editdefaultprofileitems.php | 7 +++---- 4 files changed, 30 insertions(+), 9 deletions(-) (limited to 'mod') diff --git a/mod/profile/defaultprofile.php b/mod/profile/defaultprofile.php index 34e0af2d3..254b35567 100644 --- a/mod/profile/defaultprofile.php +++ b/mod/profile/defaultprofile.php @@ -1,6 +1,6 @@ $items, 'fieldlist' => $fieldlist)); -$listing .= elgg_view('input/form', +$resetlisting = elgg_view('input/form', array ( - 'body' => elgg_view('input/submit', array('value' => elgg_echo('profile:resetdefault'))), + 'body' => elgg_view('input/submit', array('value' => elgg_echo('profile:resetdefault'), 'class' => 'action_button disabled')), 'action' => $CONFIG->wwwroot . 'action/profile/editdefault/reset' ) ); + +$resetlisting = "
{$resetlisting}
"; set_context('admin'); -$body = elgg_view_layout("one_column_with_sidebar", $title . $form . $listing); +$body = elgg_view_layout("one_column_with_sidebar", $title . $form . $listing . $resetlisting); page_draw(elgg_echo('profile:edit:default'), $body); \ No newline at end of file diff --git a/mod/profile/languages/en.php b/mod/profile/languages/en.php index dedcdcd97..431c5ff6d 100644 --- a/mod/profile/languages/en.php +++ b/mod/profile/languages/en.php @@ -63,7 +63,7 @@ $english = array( 'profile:defaultprofile:reset' => 'Default system profile reset', 'profile:resetdefault' => 'Reset default profile', - 'profile:explainchangefields' => 'You can replace the existing profile fields with your own using the form below. First you give the new profile field a label, for example, \'Favorite team\'. Next you need to select the field type, for example, tags, url, text and so on. At any time you can revert back to the default profile set up.', + 'profile:explainchangefields' => 'You can replace the existing profile fields with your own using the form below.

Give the new profile field a label, for example, \'Favorite team\', then select the field type (eg. text, url, tags), and click the \'Add\' button. To re-order the fields drag on the handle next to the field label. To edit a field label - click on the label\'s text to make it editable.
At any time you can revert back to the default profile set up, but you will loose any information already entered into custom fields on profile pages.', /** diff --git a/mod/profile/views/default/profile/css.php b/mod/profile/views/default/profile/css.php index 61e85e1c7..e36aa1184 100644 --- a/mod/profile/views/default/profile/css.php +++ b/mod/profile/views/default/profile/css.php @@ -321,6 +321,26 @@ p.visit_twitter a { .default_profile_reset .action_button { float:right; } +/* field re-order */ +#sortable_profile_fields { + padding:0; + border-top:1px solid #cccccc; +} +#sortable_profile_fields li { + padding:5px 0 5px 0; + border-bottom:1px solid #cccccc; +} +#sortable_profile_fields li img.handle { + margin-right: 7px; + cursor: move; +} +#sortable_profile_fields .ui-sortable-helper { + background: #eeeeee; + color:#333333; + padding: 5px 0 5px 0; + margin: 0; + width:100%; +} /* *************************************** diff --git a/mod/profile/views/default/profile/editdefaultprofileitems.php b/mod/profile/views/default/profile/editdefaultprofileitems.php index 4cd5d68e9..4b0564d2d 100644 --- a/mod/profile/views/default/profile/editdefaultprofileitems.php +++ b/mod/profile/views/default/profile/editdefaultprofileitems.php @@ -2,7 +2,7 @@ -
-