Skip to content

Commit

Permalink
Merge pull request joomla#11 from dextercowley/dhurley-ucm-cat-edit
Browse files Browse the repository at this point in the history
Restore parent category id in back-end category edit
  • Loading branch information
David Hurley committed Apr 11, 2013
2 parents 06a666b + 12bacf7 commit bb8ea6a
Showing 1 changed file with 49 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,11 @@
</fieldset>
<?php echo JHtml::_('bootstrap.endPanel'); ?>

<?php $fieldSets = $this->form->getFieldsets('metadata'); ?>
<?php foreach ($fieldSets as $name => $fieldSet) : ?>
<?php $metadatatabs = 'metadata-' . $name; ?>
<?php echo JHtml::_('bootstrap.addPanel', 'myTab', $metadatatabs, JText::_($fieldSet->label, true)); ?>
<?php echo JHtml::_('bootstrap.addPanel', 'myTab', 'metadata', JText::_('JGLOBAL_FIELDSET_METADATA_OPTIONS', true)); ?>
<fieldset>
<?php echo $this->loadTemplate('metadata'); ?>
<?php echo JHtml::_('bootstrap.endPanel'); ?>
<?php endforeach; ?>
</fieldset>
<?php echo JHtml::_('bootstrap.endPanel'); ?>

<?php echo $this->loadTemplate('extrafields'); ?>

Expand All @@ -169,7 +167,51 @@
</div>
<!-- End Content -->
<!-- Begin Sidebar -->
<?php echo JLayoutHelper::render('joomla.edit.details', $this); ?>
<div class="span2">
<h4><?php echo JText::_('JDETAILS');?></h4>
<hr />
<fieldset class="form-vertical">
<div class="control-group">
<div class="controls">
<?php echo $this->form->getValue('title'); ?>
</div>
</div>
<div class="control-group">
<?php echo $this->form->getLabel('parent_id'); ?>
<div class="controls">
<?php echo $this->form->getInput('parent_id'); ?>
</div>
</div>
<div class="control-group">
<?php echo $this->form->getLabel('published'); ?>
<div class="controls">
<?php echo $this->form->getInput('published'); ?>
</div>
</div>
<div class="control-group">
<?php echo $this->form->getLabel('access'); ?>
<div class="controls">
<?php echo $this->form->getInput('access'); ?>
</div>
</div>
<div class="control-group">
<?php echo $this->form->getLabel('language'); ?>
<div class="controls">
<?php echo $this->form->getInput('language'); ?>
</div>
</div>
<div class="control-group">
<?php foreach ($this->form->getFieldset('jmetadata') as $field) : ?>
<?php if ($field->name == 'jform[metadata][tags][]') :?>
<div class="control-group">
<div class="control-label"><?php echo $field->label; ?></div>
<div class="controls"><?php echo $field->input; ?></div>
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
</fieldset>
</div>
<!-- End Sidebar -->
</div>
</form>

0 comments on commit bb8ea6a

Please sign in to comment.