<?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-2009
	 * @link http://elgg.com/
	 * 
	 * @uses $vars['entity'] Optionally, the post to edit
	 */
	    
?>
	<form action="<?php echo $vars['url']; ?>action/groups/addpost" method="post">
		<p class="longtext_editarea">
			<label><?php echo elgg_echo("groups:reply"); ?><br />
			<?php

				echo elgg_view("input/longtext",array(
									"internalname" => "topic_post",
									"value" => $body,
													));
			?>
			</label>
		</p>
		<p>
		    <!-- 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; ?>" />
			<!-- display the save button -->
			<input type="submit" class="submit_button" value="<?php echo elgg_echo('save'); ?>" />
		</p>
	
	</form>