From a2250e1854f23351b2a39e304e2bd5977f3fd867 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 26 Feb 2011 20:57:09 +0000 Subject: Fixes #2982 friends collections work even if the code is convoluted and poorly written. git-svn-id: http://code.elgg.org/elgg/trunk@8495 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/forms/friends/collections/add.php | 53 +++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 views/default/forms/friends/collections/add.php (limited to 'views/default/forms/friends/collections/add.php') diff --git a/views/default/forms/friends/collections/add.php b/views/default/forms/friends/collections/add.php new file mode 100644 index 000000000..644c7adb9 --- /dev/null +++ b/views/default/forms/friends/collections/add.php @@ -0,0 +1,53 @@ +name; + $highlight = 'default'; +} else { + $title = ""; + $highlight = 'all'; +} + +echo "
"; + +echo "
"; +if ($vars['collection_members']) { + echo elgg_echo("friends:collectionfriends") . "
"; + foreach ($vars['collection_members'] as $mem) { + echo elgg_view_entity_icon($mem, 'tiny'); + echo $mem->name; + } +} +echo "
"; + +echo "
"; +echo elgg_view('input/friendspicker', array( + 'entities' => $vars['friends'], + 'name' => 'friends_collection', + 'highlight' => $highlight, +)); +echo "
"; + +echo "
"; +if (isset($vars['collection'])) { + echo elgg_view('input/hidden', array( + 'name' => 'collection_id', + 'value' => $vars['collection']->id, + )); +} +echo elgg_view('input/submit', array('name' => 'submit', 'value' => elgg_echo('save'))); +echo "
"; -- cgit v1.2.3