aboutsummaryrefslogtreecommitdiff
path: root/views/default/comments
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-27 15:20:33 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-27 15:20:33 +0000
commit10e5db3119afca7060a680517393518be3aa54ab (patch)
treeec6c1eb164c3d73120bfa2632ebfad3189a94faa /views/default/comments
parent5aa81ebf7107556b39336a326abc421d715c3650 (diff)
downloadelgg-10e5db3119afca7060a680517393518be3aa54ab.tar.gz
elgg-10e5db3119afca7060a680517393518be3aa54ab.tar.bz2
Brought generic comments into Elgg core
git-svn-id: https://code.elgg.org/elgg/trunk@1185 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/comments')
-rw-r--r--views/default/comments/forms/edit.php38
1 files changed, 38 insertions, 0 deletions
diff --git a/views/default/comments/forms/edit.php b/views/default/comments/forms/edit.php
new file mode 100644
index 000000000..f28a53b36
--- /dev/null
+++ b/views/default/comments/forms/edit.php
@@ -0,0 +1,38 @@
+<?php
+
+ /**
+ * Elgg comments add form
+ *
+ * @package Elgg
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd <info@curverider.co.uk>
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ *
+ * @uses $vars['entity']
+ */
+
+ if (isset($vars['entity'])) {
+
+?>
+
+ <form action="<?php echo $vars['url']; ?>action/comments/add" method="post">
+ <h3>
+ <?php echo elgg_echo("generic_comments:add"); ?>
+ </h3>
+ <p>
+ <label><?php echo elgg_echo("generic_comments:text"); ?><br />
+ <textarea name="generic_comment" value="" id="generic_comment" class="expanding" /></textarea>
+ </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
+
+ }
+
+?> \ No newline at end of file