aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/forms
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/views/default/forms')
-rw-r--r--mod/groups/views/default/forms/groups/delete.php17
-rw-r--r--mod/groups/views/default/forms/groups/edit.php2
2 files changed, 18 insertions, 1 deletions
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 @@
+<?php
+/**
+ * Group delete form body
+ */
+
+$warning = elgg_echo("groups:deletewarning");
+
+echo elgg_view('input/hidden', array(
+ 'internalname' => '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) {
<div>
<label>
<?php echo $group_option->label; ?><br />
+ </label>
<?php echo elgg_view("input/radio", array(
"internalname" => $group_option_toggle_name,
"value" => $value,
@@ -122,7 +123,6 @@ if ($tools) {
),
));
?>
- </label>
</div>
<?php
}