[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_users/tmpl/user/ -> edit.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_users
   6   *
   7   * @copyright   (C) 2008 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  use Joomla\CMS\Factory;
  14  use Joomla\CMS\HTML\HTMLHelper;
  15  use Joomla\CMS\Language\Text;
  16  use Joomla\CMS\Layout\LayoutHelper;
  17  use Joomla\CMS\Router\Route;
  18  
  19  /** @var Joomla\Component\Users\Administrator\View\User\HtmlView $this */
  20  
  21  /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
  22  $wa = $this->document->getWebAssetManager();
  23  $wa->useScript('keepalive')
  24      ->useScript('form.validate');
  25  
  26  $input = Factory::getApplication()->input;
  27  
  28  // Get the form fieldsets.
  29  $fieldsets = $this->form->getFieldsets();
  30  $settings  = array();
  31  
  32  $this->useCoreUI = true;
  33  ?>
  34  <form action="<?php echo Route::_('index.php?option=com_users&layout=edit&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="user-form" enctype="multipart/form-data" aria-label="<?php echo Text::_('COM_USERS_USER_FORM_' . ((int) $this->item->id === 0 ? 'NEW' : 'EDIT'), true); ?>" class="form-validate">
  35  
  36      <h2><?php echo $this->form->getValue('name', null, Text::_('COM_USERS_USER_NEW_USER_TITLE')); ?></h2>
  37  
  38      <div class="main-card">
  39          <?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', ['active' => 'details', 'recall' => true, 'breakpoint' => 768]); ?>
  40  
  41          <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'details', Text::_('COM_USERS_USER_ACCOUNT_DETAILS')); ?>
  42              <fieldset class="options-form">
  43                  <legend><?php echo Text::_('COM_USERS_USER_ACCOUNT_DETAILS'); ?></legend>
  44                  <div class="form-grid">
  45                      <?php echo $this->form->renderFieldset('user_details'); ?>
  46                  </div>
  47              </fieldset>
  48  
  49          <?php echo HTMLHelper::_('uitab.endTab'); ?>
  50  
  51          <?php if ($this->grouplist) : ?>
  52              <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'groups', Text::_('COM_USERS_ASSIGNED_GROUPS')); ?>
  53                  <fieldset id="fieldset-groups" class="options-form">
  54                      <legend><?php echo Text::_('COM_USERS_ASSIGNED_GROUPS'); ?></legend>
  55                      <div>
  56                      <?php echo $this->loadTemplate('groups'); ?>
  57                      </div>
  58                  </fieldset>
  59              <?php echo HTMLHelper::_('uitab.endTab'); ?>
  60          <?php endif; ?>
  61  
  62          <?php
  63          $this->ignore_fieldsets = array('user_details');
  64          echo LayoutHelper::render('joomla.edit.params', $this);
  65          ?>
  66  
  67          <?php if (!empty($this->mfaConfigurationUI)) : ?>
  68              <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'multifactorauth', Text::_('COM_USERS_USER_MULTIFACTOR_AUTH')); ?>
  69              <fieldset class="options-form">
  70                  <legend><?php echo Text::_('COM_USERS_USER_MULTIFACTOR_AUTH'); ?></legend>
  71                  <?php echo $this->mfaConfigurationUI ?>
  72              </fieldset>
  73              <?php echo HTMLHelper::_('uitab.endTab'); ?>
  74          <?php endif; ?>
  75  
  76          <?php echo HTMLHelper::_('uitab.endTabSet'); ?>
  77      </div>
  78  
  79      <input type="hidden" name="task" value="">
  80      <input type="hidden" name="return" value="<?php echo $input->getBase64('return'); ?>">
  81      <?php echo HTMLHelper::_('form.token'); ?>
  82  </form>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer