From 9c7945b097038f6119cbe0c1a18c65411d2cb38a Mon Sep 17 00:00:00 2001 From: pete Date: Wed, 30 Jul 2008 11:45:37 +0000 Subject: the beginnings of the tabbed friends picker git-svn-id: https://code.elgg.org/elgg/trunk@1592 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/css.php | 54 ++++++++++++++++++++++++++++++++++-- views/default/friends/collection.php | 4 +-- views/default/friends/picker.php | 17 ++++++++++-- 3 files changed, 67 insertions(+), 8 deletions(-) (limited to 'views/default') diff --git a/views/default/css.php b/views/default/css.php index b4e5e30e1..1720e3067 100644 --- a/views/default/css.php +++ b/views/default/css.php @@ -1635,7 +1635,6 @@ div.expandall p { text-align:right; margin: 0; padding:0; - } @@ -1666,7 +1665,6 @@ div.expandall p { height: 270px; /*clear: right;*/ background: white; - } .friendsPicker .friendsPicker_container { /* long container used to house end-to-end panels. Width is calculated in JS */ @@ -1698,7 +1696,10 @@ div.expandall p { margin: 0 0 10px 0; padding:0; -} +/* + display:none; + +*/} .friendsPickerNavigation ul { list-style: none; @@ -1789,6 +1790,53 @@ div.expandall p { .friendsPickerNavigationR { background: url("_graphics/friends_picker_arrow_right.gif") no-repeat center; } + + +/* picker tabbed navigation */ +#friendsPickerNavigationTabs { + margin:10px 0 10px 0; + padding: 0; + border-bottom: 1px solid #cccccc; + display:table; + width:100%; +} + +#friendsPickerNavigationTabs ul { + list-style: none; + padding: 0; + margin: 0; +} + +#friendsPickerNavigationTabs li { + float: left; + border: 1px solid #ffffff; + border-bottom-width: 0; + margin: 0; +} + +#friendsPickerNavigationTabs a { + text-decoration: none; + display: block; + padding: 0.24em 1em; + color: #666666; + text-align: center; +} + +#friendsPickerNavigationTabs a:hover { + color: #4690d6; +} + +#friendsPickerNavigationTabs .selected { + border-color: #cccccc; +} + +#friendsPickerNavigationTabs .selected a { + position: relative; + top: 1px; + background: white; + color: #4690d6; +} + diff --git a/views/default/friends/collection.php b/views/default/friends/collection.php index b42b4467a..a9f2a392f 100644 --- a/views/default/friends/collection.php +++ b/views/default/friends/collection.php @@ -28,13 +28,13 @@ //as collections are private, check that the logged in user is the owner if($coll->owner_guid == $_SESSION['user']->getGUID()) - echo "
(id}\">" . elgg_echo('edit') . ") (id}\">" . elgg_echo('delete') . ")"; + echo ""; echo $coll->name; echo " ({$count}) "; - // Ben - this is where the friends picker view needs to go + // individual collection panels if($friends = $vars['collection']->entities){ $members = $vars['collection']->members; echo elgg_view('friends/picker',array('entities' => $friends, 'value' => $members)); diff --git a/views/default/friends/picker.php b/views/default/friends/picker.php index 7a0c57c12..9f522ca29 100644 --- a/views/default/friends/picker.php +++ b/views/default/friends/picker.php @@ -57,6 +57,19 @@ ?>
+ + + + + + + +
@@ -144,16 +157,14 @@