diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-06-28 06:38:34 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-06-28 06:38:34 -0400 |
commit | e35b3ffb512dc6b1af2aacb7bd92d85854a42868 (patch) | |
tree | a371ed308cf40764721b28ae44db160b52007937 /mod/groups | |
parent | 525041047efb6b8b2c912b3ed1d71089a809976e (diff) | |
download | elgg-e35b3ffb512dc6b1af2aacb7bd92d85854a42868.tar.gz elgg-e35b3ffb512dc6b1af2aacb7bd92d85854a42868.tar.bz2 |
Fixes #3407 added elgg-foot to plugin forms
Diffstat (limited to 'mod/groups')
-rw-r--r-- | mod/groups/views/default/forms/discussion/reply/save.php | 16 | ||||
-rw-r--r-- | mod/groups/views/default/forms/discussion/save.php | 2 |
2 files changed, 11 insertions, 7 deletions
diff --git a/mod/groups/views/default/forms/discussion/reply/save.php b/mod/groups/views/default/forms/discussion/reply/save.php index be258b8fe..40ea07303 100644 --- a/mod/groups/views/default/forms/discussion/reply/save.php +++ b/mod/groups/views/default/forms/discussion/reply/save.php @@ -1,6 +1,6 @@ <?php /** - * Discussion topic reply form bofy + * Discussion topic reply form body * * @uses $vars['entity'] A discussion topic object * @uses $vars['inline'] Display a shortened form? @@ -8,8 +8,12 @@ if (isset($vars['entity']) && elgg_is_logged_in()) { - $inline = elgg_extract('inline', $vars, false); + echo elgg_view('input/hidden', array( + 'name' => 'entity_guid', + 'value' => $vars['entity']->getGUID(), + )); + $inline = elgg_extract('inline', $vars, false); if ($inline) { echo elgg_view('input/text', array('name' => 'group_topic_post')); echo elgg_view('input/submit', array('value' => elgg_echo('reply'))); @@ -19,11 +23,11 @@ if (isset($vars['entity']) && elgg_is_logged_in()) { <label><?php echo elgg_echo("reply"); ?></label> <?php echo elgg_view('input/longtext', array('name' => 'group_topic_post')); ?> </div> + <div class="elgg-foot"> <?php echo elgg_view('input/submit', array('value' => elgg_echo('reply'))); +?> + </div> +<?php } - echo elgg_view('input/hidden', array( - 'name' => 'entity_guid', - 'value' => $vars['entity']->getGUID(), - )); } diff --git a/mod/groups/views/default/forms/discussion/save.php b/mod/groups/views/default/forms/discussion/save.php index 5d50d5c91..a6582ede7 100644 --- a/mod/groups/views/default/forms/discussion/save.php +++ b/mod/groups/views/default/forms/discussion/save.php @@ -42,7 +42,7 @@ $guid = elgg_extract('guid', $vars, null); <label><?php echo elgg_echo('access'); ?></label><br /> <?php echo elgg_view('input/access', array('name' => 'access_id', 'value' => $access_id)); ?> </div> -<div> +<div class="elgg-foot"> <?php echo elgg_view('input/hidden', array('name' => 'container_guid', 'value' => $container_guid)); |