diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 09:09:24 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 09:09:24 +0000 |
commit | d42771b8a74e665d33d29e7ce3b1612890a596f2 (patch) | |
tree | c592cc077c2d391d120a344ee17553e249676484 /mod/groups/views/default/forms | |
parent | f8797c313b9500e5d6af512786412601d7d641f0 (diff) | |
download | elgg-d42771b8a74e665d33d29e7ce3b1612890a596f2.tar.gz elgg-d42771b8a74e665d33d29e7ce3b1612890a596f2.tar.bz2 |
Touch ups of groups plugin
git-svn-id: http://code.elgg.org/elgg/trunk@8426 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default/forms')
-rw-r--r-- | mod/groups/views/default/forms/groups/delete.php | 4 | ||||
-rw-r--r-- | mod/groups/views/default/forms/groups/invite.php | 35 | ||||
-rw-r--r-- | mod/groups/views/default/forms/groups/search.php | 2 |
3 files changed, 16 insertions, 25 deletions
diff --git a/mod/groups/views/default/forms/groups/delete.php b/mod/groups/views/default/forms/groups/delete.php index 4c380718a..85379a342 100644 --- a/mod/groups/views/default/forms/groups/delete.php +++ b/mod/groups/views/default/forms/groups/delete.php @@ -11,7 +11,7 @@ echo elgg_view('input/hidden', array( )); echo elgg_view('input/submit', array( - 'class' => "elgg-button-cancel", + 'class' => "elgg-button elgg-button-delete", 'value' => elgg_echo('groups:delete'), - 'onclick' => "javascript:return confirm('$warning')", + 'onclick' => "return confirm('$warning');", )); diff --git a/mod/groups/views/default/forms/groups/invite.php b/mod/groups/views/default/forms/groups/invite.php index 73eadb024..d3bcfe580 100644 --- a/mod/groups/views/default/forms/groups/invite.php +++ b/mod/groups/views/default/forms/groups/invite.php @@ -1,29 +1,20 @@ <?php - /** - * Elgg groups plugin - * - * @package ElggGroups - */ +/** + * Elgg groups plugin + * + * @package ElggGroups + */ - $group = $vars['entity']; - $owner = get_entity($vars['entity']->owner_guid); - $forward_url = $group->getURL(); - $friends = elgg_get_logged_in_user_entity()->getFriends('', 0); +$group = $vars['entity']; +$owner = get_entity($vars['entity']->owner_guid); +$forward_url = $group->getURL(); +$friends = elgg_get_logged_in_user_entity()->getFriends('', 0); if ($friends) { -?> -<form action="<?php echo elgg_get_site_url(); ?>action/groups/invite" method="post" id="invite_to_group" class="margin-top"> - -<?php - echo elgg_view('input/securitytoken'); - - echo elgg_view('core/friends/picker',array('entities' => $friends, 'name' => 'user_guid', 'highlight' => 'all')); -?> - <input type="hidden" name="forward_url" value="<?php echo $forward_url; ?>" /> - <input type="hidden" name="group_guid" value="<?php echo $group->guid; ?>" /> - <input type="submit" value="<?php echo elgg_echo('invite'); ?>" /> -</form> -<?php + echo elgg_view('core/friends/picker', array('entities' => $friends, 'name' => 'user_guid', 'highlight' => 'all')); + echo elgg_view('input/hidden', array('name' => 'forward_url', 'value' => $forward_url)); + echo elgg_view('input/hidden', array('name' => 'group_guid', 'value' => $group->guid)); + echo elgg_view('input/submit', array('value' => elgg_echo('invite'))); } else { echo elgg_echo('groups:nofriendsatall'); }
\ No newline at end of file diff --git a/mod/groups/views/default/forms/groups/search.php b/mod/groups/views/default/forms/groups/search.php index 8912b245c..058a1c11c 100644 --- a/mod/groups/views/default/forms/groups/search.php +++ b/mod/groups/views/default/forms/groups/search.php @@ -4,7 +4,7 @@ $tag_string = elgg_echo('groups:search:tags'); $params = array( 'name' => 'tag', - 'class' => 'search-input', + 'class' => 'elgg-input-search', 'value' => $tag_string, 'onclick' => "if (this.value=='$tag_string') { this.value='' }", ); |