From cff53c3045e0c4c44375496bdb0531812aff7b6a Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 26 Jan 2011 12:13:37 +0000 Subject: added edit views for admin widgets git-svn-id: http://code.elgg.org/elgg/trunk@7939 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/widgets/friends/edit.php | 63 ++++++++++++++++------------------ 1 file changed, 29 insertions(+), 34 deletions(-) (limited to 'views/default/widgets/friends/edit.php') diff --git a/views/default/widgets/friends/edit.php b/views/default/widgets/friends/edit.php index 9a6499ede..d36ebcdb8 100644 --- a/views/default/widgets/friends/edit.php +++ b/views/default/widgets/friends/edit.php @@ -1,57 +1,52 @@ num_display)) { $vars['entity']->num_display = 12; - $vars['entity']->icon_size = 'small'; } +$params = array( + 'internalname' => 'params[num_display]', + 'value' => $vars['entity']->num_display, + 'options' => array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 20, 30, 50, 100), +); +$display_dropdown = elgg_view('input/pulldown', $params); + + // handle upgrade to 1.7.2 from previous versions if ($vars['entity']->icon_size == 1) { $vars['entity']->icon_size = 'small'; } elseif ($vars['entity']->icon_size == 2) { $vars['entity']->icon_size = 'tiny'; } -?> -

- : - +

+ : +

- - + : +

-- cgit v1.2.3