aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/forms/forums/addpost.php
blob: 8aa316caaa14458a6a1b6ccd197110b92e52a3bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php

	/**
	 * Elgg group forum post edit/add page
	 * 
	 * @package ElggGroups
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Curverider <info@elgg.com>
	 * @copyright Curverider Ltd 2008-2010
	 * @link http://elgg.com/
	 * 
	 * @uses $vars['entity'] Optionally, the post to edit
	 */
	    
?>
<form action="<?php echo $vars['url']; ?>action/groups/addpost" method="post" class="margin_top">
	<label><?php echo elgg_echo("groups:reply"); ?><br />
	<?php
	
	echo elgg_view("input/longtext",array(
						"internalname" => "topic_post",
						"value" => $body,
										));
	?>
	</label>
		
    <!-- pass across the topic guid -->
	<input type="hidden" name="topic_guid" value="<?php echo $vars['entity']->guid; ?>" />
	<input type="hidden" name="group_guid" value="<?php echo $vars['entity']->container_guid; ?>" />
			
	<?php echo elgg_view('input/securitytoken'); ?>
	<!-- display the save button -->
	<input type="submit" class="submit_button" value="<?php echo elgg_echo('post'); ?>" />
</form>