Skip to content

Commit

Permalink
Use the layout to render the user params fieldsets
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed Jun 21, 2016
1 parent 9e596d1 commit 12eaa6d
Showing 1 changed file with 3 additions and 26 deletions.
29 changes: 3 additions & 26 deletions administrator/components/com_users/views/user/tmpl/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,32 +75,9 @@
<?php endif; ?>

<?php
foreach ($fieldsets as $fieldset) :
if ($fieldset->name == 'user_details') :
continue;
endif;
$this->ignore_fieldsets = array('user_details');
echo JLayoutHelper::render('joomla.edit.params', $this);
?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', $fieldset->name, JText::_($fieldset->label)); ?>
<?php foreach ($this->form->getFieldset($fieldset->name) as $field) : ?>
<?php if ($field->hidden) : ?>
<div class="control-group">
<div class="controls">
<?php echo $field->input; ?>
</div>
</div>
<?php else: ?>
<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; ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endforeach; ?>

<?php if (!empty($this->tfaform) && $this->item->id): ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'twofactorauth', JText::_('COM_USERS_USER_TWO_FACTOR_AUTH')); ?>
Expand Down Expand Up @@ -153,4 +130,4 @@

<input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
</form>
</form>

0 comments on commit 12eaa6d

Please sign in to comment.