diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-11 14:09:54 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-11 14:09:54 +0000 |
commit | 4873cf7c4bb484ba8dfbe12e840402e3edd7c310 (patch) | |
tree | 37563567398b9029a14aa056e5a2212777f457e2 /views | |
parent | b43d13eca7331e81f108202ffe7a2dacd237bb0f (diff) | |
download | elgg-4873cf7c4bb484ba8dfbe12e840402e3edd7c310.tar.gz elgg-4873cf7c4bb484ba8dfbe12e840402e3edd7c310.tar.bz2 |
Refs #210 & #211 : Updated comments form
git-svn-id: https://code.elgg.org/elgg/trunk@1828 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r-- | views/default/comments/forms/edit.php | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/views/default/comments/forms/edit.php b/views/default/comments/forms/edit.php index 700a451cb..b435d69b9 100644 --- a/views/default/comments/forms/edit.php +++ b/views/default/comments/forms/edit.php @@ -13,26 +13,12 @@ */
if (isset($vars['entity']) && isloggedin()) {
-
-?>
-
- <form action="<?php echo $vars['url']; ?>action/comments/add" method="post">
- <p>
- <label><?php echo elgg_echo("generic_comments:text"); ?><br />
- <?php
-
- echo elgg_view('input/longtext',array('internalname' => 'generic_comment'));
-
- ?>
- </label>
- </p>
- <p>
- <input type="hidden" name="entity_guid" value="<?php echo $vars['entity']->getGUID(); ?>" />
- <input type="submit" value="<?php echo elgg_echo("save"); ?>" />
- </p>
- </form>
-
-<?php
+ + $form_body = "<p><label>".elgg_echo("generic_comments:text")."<br />" . elgg_view('input/longtext',array('internalname' => 'generic_comment')) . "</label></p>"; + $form_body .= "<p>" . elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID())); + $form_body .= elgg_view('input/submit', array('value' => elgg_echo("save"))) . "</p>"; + + echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/comments/add"));
}
|