Skip to content

Commit

Permalink
Use getControlGroup()in language edit form
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Mar 24, 2014
1 parent ceafd79 commit ebbba7c
Showing 1 changed file with 10 additions and 88 deletions.
98 changes: 10 additions & 88 deletions administrator/components/com_languages/views/language/tmpl/edit.php
Expand Up @@ -32,38 +32,10 @@
<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'details')); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'details', JText::_('JDETAILS', true)); ?>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('title'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('title'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('title_native'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('title_native'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('lang_code'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('lang_code'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('sef'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('sef'); ?>
</div>
</div>
<?php echo $this->form->renderField('title'); ?>
<?php echo $this->form->renderField('title_native'); ?>
<?php echo $this->form->renderField('lang_code'); ?>
<?php echo $this->form->renderField('sef'); ?>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('image'); ?>
Expand All @@ -76,70 +48,20 @@
</div>
</div>
<?php if ($this->canDo->get('core.edit.state')) : ?>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('published'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('published'); ?>
</div>
</div>
<?php echo $this->form->renderField('published'); ?>
<?php endif; ?>

<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('access'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('access'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('description'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('description'); ?>
</div>
</div>
<div class="control-group">
<div class="control-label">
<?php echo $this->form->getLabel('lang_id'); ?>
</div>
<div class="controls">
<?php echo $this->form->getInput('lang_id'); ?>
</div>
</div>
<?php echo $this->form->renderField('access'); ?>
<?php echo $this->form->renderField('description'); ?>
<?php echo $this->form->renderField('lang_id'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'metadata', JText::_('JGLOBAL_FIELDSET_METADATA_OPTIONS', true)); ?>
<?php foreach ($this->form->getFieldset('metadata') as $field) : ?>
<div class="control-group">
<?php if (!$field->hidden) : ?>
<div class="control-label">
<?php echo $field->label; ?>
</div>
<?php endif; ?>
<div class="controls">
<?php echo $field->input; ?>
</div>
</div>
<?php endforeach; ?>
<?php echo $this->form->renderFieldset('metadata'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'site_name', JText::_('COM_LANGUAGES_FIELDSET_SITE_NAME_LABEL', true)); ?>
<?php foreach ($this->form->getFieldset('site_name') as $field) : ?>
<div class="control-group">
<?php if (!$field->hidden) : ?>
<div class="control-label">
<?php echo $field->label; ?>
</div>
<?php endif; ?>
<div class="controls">
<?php echo $field->input; ?>
</div>
</div>
<?php endforeach; ?>
<?php echo $this->form->renderFieldset('site_name'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>

<?php echo JHtml::_('bootstrap.endTabSet'); ?>
Expand Down

0 comments on commit ebbba7c

Please sign in to comment.