<?php
/**
 * jeGroupBuy package
 * @author J-Extension <contact@jextn.com>
 * @link http://www.jextn.com
 * @copyright (C) 2010 - 2011 J-Extension
 * @license GNU/GPL, see LICENSE.php for full license.
**/
// no direct access
defined('_JEXEC') or die('Restricted access');
$doc 		= & JFactory::getDocument();
$editor		= & JFactory::getEditor();
$js  		= JURI::base().'components/com_jegroupbuy/assets/js/validate.js';
$doc->addScript($js);
$row = $this->row;
?>
<form action="index.php" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data">

<div class="col width-60">
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'JE_GROUPBUY_COUPON_TEMPLATE' ); ?></legend>

		<table class="admintable" width="100%">
		<tr>
			<td class="key">
			<?php
				echo $editor->display( 'template',$row->template, '95%', '350', '75', '30' ) ;
			?>
			</td>
		</tr>
		</table>
	</fieldset>
</div>
<div class="clr"></div>

<input type="hidden" name="option" value="com_jegroupbuy" />
<input type="hidden" name="id" value="<?php echo $this->row->id; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" id="controller" value="templates" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>