<?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
 */

defined('_JEXEC') or die;
use Joomla\CMS\Language\Text;
$bootstrapHelper		= new EDocmanHelperBootstrap(EDocmanHelperHtml::getAdminBootstrapHelper());
$rowFluidClass			= $bootstrapHelper->getClassMapping('row-fluid');
$span12Class			= $bootstrapHelper->getClassMapping('span12');
$config					= EDocmanHelper::loadConfig();
$controlGroupClass		= $bootstrapHelper->getClassMapping('control-group');
$controlLabelClass		= $bootstrapHelper->getClassMapping('control-label');
$controlsClass			= $bootstrapHelper->getClassMapping('controls');
$span7Class				= $bootstrapHelper->getClassMapping('span7');
$span5Class				= $bootstrapHelper->getClassMapping('span5');
?>
<fieldset class="meta form-horizontal options-form">
	<legend><?php echo Text::_( 'EDOCMAN_META_SETTING' ); ?></legend>
	<div class="<?php echo $controlGroupClass; ?>">
		<label class="<?php echo $controlLabelClass; ?>">
			<?php echo $this->form->getLabel('metadesc'); ?>
		</label>
		<div class="<?php echo $controlsClass; ?>">
			<?php echo $this->form->getInput('metadesc'); ?>
		</div>
	</div>
	<div class="<?php echo $controlGroupClass; ?>">
		<label class="<?php echo $controlLabelClass; ?>">
			<?php echo $this->form->getLabel('metakey'); ?>
		</label>
		<div class="<?php echo $controlsClass; ?>">
			<?php echo $this->form->getInput('metakey'); ?>
		</div>
	</div>
	<?php foreach($this->form->getGroup('metadata') as $field): ?>
		<?php if ($field->hidden): ?>
			<div class="<?php echo $controlGroupClass; ?>">
				<div class="<?php echo $controlsClass; ?>">
					<?php echo $field->input; ?>
				</div>
			</div>					
		<?php else: ?>
			<div class="<?php echo $controlGroupClass; ?>">
				<label class="<?php echo $controlLabelClass; ?>">
					<?php echo $field->label; ?>
				</label>
				<div class="<?php echo $controlsClass; ?>">
					<?php echo $field->input; ?>
				</div>
			</div>			
		<?php endif; ?>
	<?php endforeach; ?>
</table>

