<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_categories
 *
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>

<?php  $fieldSets = $this->form->getFieldsets('attribs'); ?>
	<?php foreach ($fieldSets as $name => $fieldSet) : ?>
		<?php $label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_CATEGORIES_'.$name.'_FIELDSET_LABEL'; ?>
		<?php if ($name != 'editorConfig' && $name != 'basic-limited') : ?>
			<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'attrib-'.$name, trim($label)); ?>
			<fieldset>
			<?php if (isset($fieldSet->description) && trim($fieldSet->description)) : ?>
				<p class="tip"><?php echo $this->escape(JText::_($fieldSet->description));?></p>
			<?php endif;
			foreach ($this->form->getFieldset($name) as $field) : ?>
				<div class="control-group">
					<div class="control-label">
						<?php echo $field->label; ?>
					</div>
					<div class="controls">
						<?php echo $field->input; ?>
					</div>
				</div>
			<?php endforeach;?>
			</fieldset>

			<?php echo JHtml::_('bootstrap.endTab'); ?>
		<?php endif; ?>
	<?php endforeach; ?>
