Current File : /home/pacjaorg/public_html/km/administrator/components/com_djclassifieds/views/point/tmpl/edit.php |
<?php
/**
* @package DJ-Classifieds
* @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
* @license http://www.gnu.org/licenses GNU/GPL
* @author url: http://dj-extensions.com
* @author email: contact@dj-extensions.com
*/
defined('_JEXEC') or die;
JHtml::_('behavior.formvalidator');
$app = JFactory::getApplication();
?>
<form action="<?php echo JRoute::_('index.php?option=com_djclassifieds&view=point&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="edit-form" class="form-validate" enctype="multipart/form-data">
<div class="form-horizontal">
<?php echo JHTML::_($this->bs_cl->tab.'.startTabSet', 'myTab', array('active' => 'details')); ?>
<?php echo JHTML::_($this->bs_cl->tab.'.addTab', 'myTab', 'details', empty($this->item->id) ? JText::_('COM_DJCLASSIFIEDS_NEW') : JText::_('COM_DJCLASSIFIEDS_EDIT')); ?>
<div class="<?php echo $this->bs_cl->row; ?>">
<div class="<?php echo $this->bs_cl->col; ?>9">
<?php echo $this->form->getField('name')->renderField(); ?>
<?php echo $this->form->getField('points')->renderField(); ?>
<?php
$plugin_fields = $app->triggerEvent('onAdminPointEditFields', array ($this->item));
foreach($plugin_fields as $plugin_field){
echo $plugin_field;
}
?>
<?php echo $this->form->getField('description')->renderField(); ?>
</div>
<div class="<?php echo $this->bs_cl->col; ?>3">
<fieldset class="form-vertical">
<?php echo $this->form->getField('published')->renderField(); ?>
<?php echo $this->form->getField('usergroup_access')->renderField(); ?>
</fieldset>
</div>
</div>
<?php echo JHTML::_($this->bs_cl->tab.'.endTab'); ?>
<?php echo JHTML::_($this->bs_cl->tab.'.addTab', 'myTab', 'pricing', JText::_('COM_DJCLASSIFIEDS_PRICES')); ?>
<div class="<?php echo $this->bs_cl->row; ?>">
<div class="<?php echo $this->bs_cl->col; ?>6">
<?php echo $this->form->getField('price')->renderField(); ?>
</div>
<div class="<?php echo $this->bs_cl->col; ?>6"></div>
</div>
<?php echo JHTML::_($this->bs_cl->tab.'.endTab'); ?>
<?php echo JHTML::_($this->bs_cl->tab.'.endTabSet'); ?>
</div>
<input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
</form>
<?php echo DJCFFOOTER; ?>
<script>
Joomla.submitbutton = function(task)
{
if (task == 'point.cancel' || document.formvalidator.isValid(document.getElementById('edit-form'))) {
Joomla.submitform(task, document.getElementById('edit-form'));
}
else {
alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
}
}
</script>