<?php

/**
 * @version        1.9.7
 * @package        Joomla
 * @subpackage     EDocman
 * @author         Tuan Pham Ngoc
 * @copyright      Copyright (C) 2011 - 2024 Ossolution Team
 * @license        GNU/GPL, see LICENSE.php
 */

// no direct access
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Language\Text;

if (version_compare(JVERSION, '3.0', 'ge')) {
	//EdocmanHelper::addSideBarmenus('license');
	//$sidebar = JHtmlSidebar::render();
}
if (version_compare(JVERSION, '4.0.0-dev', 'lt'))
{
	HTMLHelper::_('behavior.tooltip');
}
else
{
	HTMLHelper::_('bootstrap.tooltip', '.hasTooltip', ['placement' => 'left']);
}


HTMLHelper::_('behavior.core');
HTMLHelper::_('jquery.framework');
EdocmanHelper::addScript(Uri::root().'components/com_edocman/assets/js/admin-license-default.js');
?>

<form action="<?php echo Route::_('index.php?option=com_edocman&view=license&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="license-form">
<div class="row-fluid">	
	<fieldset class="form-horizontal options-form">
		<legend><?php echo Text::_('EDOCMAN_FIELDSET_DETAILS'); ?></legend>
		<table width="100%" >
			<tr>
				<td class="key">
					<?php echo $this->form->getLabel('title'); ?>
				</td>
				<td>
					<?php echo $this->form->getInput('title'); ?>
				</td>
			</tr>
			<tr>
				<td class="key">
					<?php echo $this->form->getLabel('id'); ?>
				</td>
				<td>
					<?php echo $this->form->getInput('id'); ?>
				</td>
			</tr>
			<tr>
				<td class="key">
					<?php echo $this->form->getLabel('default_license'); ?>
				</td>
				<td>
					<?php echo $this->form->getInput('default_license'); ?>
				</td>
			</tr>
			<tr>
				<td class="key">
					<?php echo $this->form->getLabel('published'); ?>
				</td>
				<td>
					<?php echo $this->form->getInput('published'); ?>
				</td>
			</tr>
		</table>              		   		
		<div class="clearfix"></div>
		<?php echo $this->form->getLabel('description'); ?>
		<div class="clearfix"></div>
		<?php echo $this->form->getInput('description'); ?>            
	</fieldset>
</div>
<input type="hidden" name="option" id="option" value="com_edocman" />
<input type="hidden" name="task" value="" id="task" />
<input type="hidden" name="boxchecked" value="0" />
<?php echo HTMLHelper::_('form.token'); ?>
</form>
