From e65db3fbab88f0bd98c2e5750f09d139837fdc0e Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 12 Feb 2011 16:14:13 +0000 Subject: pulled delete form out of edit view for groups git-svn-id: http://code.elgg.org/elgg/trunk@8162 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/views/default/forms/groups/delete.php | 17 +++++++++++++++++ mod/groups/views/default/forms/groups/edit.php | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 mod/groups/views/default/forms/groups/delete.php (limited to 'mod/groups/views/default/forms') diff --git a/mod/groups/views/default/forms/groups/delete.php b/mod/groups/views/default/forms/groups/delete.php new file mode 100644 index 000000000..67a4bcd85 --- /dev/null +++ b/mod/groups/views/default/forms/groups/delete.php @@ -0,0 +1,17 @@ + 'group_guid', + 'value' => $vars['entity']->getGUID(), +)); + +echo elgg_view('input/submit', array( + 'class' => "elgg-button-cancel", + 'value' => elgg_echo('groups:delete'), + 'onclick' => "javascript:return confirm('$warning')", +)); diff --git a/mod/groups/views/default/forms/groups/edit.php b/mod/groups/views/default/forms/groups/edit.php index 13d42998a..d4a2754ca 100644 --- a/mod/groups/views/default/forms/groups/edit.php +++ b/mod/groups/views/default/forms/groups/edit.php @@ -113,6 +113,7 @@ if ($tools) {
$group_option_toggle_name, "value" => $value, @@ -122,7 +123,6 @@ if ($tools) { ), )); ?> -