From 254d24bef4f9bc84da8496f4014e65763bdcffd9 Mon Sep 17 00:00:00 2001 From: pete Date: Mon, 16 Feb 2009 12:52:01 +0000 Subject: theme updates git-svn-id: https://code.elgg.org/elgg/trunk@2761 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/friends/collections.php | 4 +++ views/default/friends/forms/edit.php | 60 +++++++++++++++++------------------ views/default/friends/tablelist.php | 2 +- 3 files changed, 35 insertions(+), 31 deletions(-) (limited to 'views/default') diff --git a/views/default/friends/collections.php b/views/default/friends/collections.php index 14995309d..6a77f7773 100644 --- a/views/default/friends/collections.php +++ b/views/default/friends/collections.php @@ -16,6 +16,8 @@ if (!isset($friendspicker)) $friendspicker = 0; + echo "
"; + if (is_array($vars['collections']) && sizeof($vars['collections'])) { echo "
"; ?> diff --git a/views/default/friends/forms/edit.php b/views/default/friends/forms/edit.php index 80a080f3e..683e0503c 100644 --- a/views/default/friends/forms/edit.php +++ b/views/default/friends/forms/edit.php @@ -1,31 +1,31 @@ -id); - - // Set title, form destination - if (isset($vars['collection'])) { - $action = "friends/editcollection"; - $title = $vars['collection'][0]->name; - } else { - $action = "friends/addcollection"; - $title = ""; - } +id); + + // Set title, form destination + if (isset($vars['collection'])) { + $action = "friends/editcollection"; + $title = $vars['collection'][0]->name; + } else { + $action = "friends/addcollection"; + $title = ""; + } - $form_body = "

"; - $form_body .= "

"; + $form_body .= "

". + elgg_view('friends/picker',array('entities' => $vars['friends'], 'internalname' => 'friends_collection')) . "

"; $form_body .= "

"; if (isset($vars['collection'])) { $form_body .= elgg_view('input/hidden', array('internalname' => 'collection_id', 'value' => "{$vars['collection'][0]->id}")); } $form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('save'))); - $form_body .= "

"; + $form_body .= "

"; - echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/$action")); + echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/$action")); ?> \ No newline at end of file diff --git a/views/default/friends/tablelist.php b/views/default/friends/tablelist.php index aa01461e0..eca106b69 100644 --- a/views/default/friends/tablelist.php +++ b/views/default/friends/tablelist.php @@ -18,7 +18,7 @@ ?> - +