[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

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

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_users
   6   *
   7   * @copyright   (C) 2009 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\HTML\HTMLHelper;
  14  use Joomla\CMS\Language\Text;
  15  use Joomla\CMS\Router\Route;
  16  
  17  /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
  18  $wa = $this->document->getWebAssetManager();
  19  $wa->useScript('keepalive')
  20      ->useScript('form.validate');
  21  
  22  ?>
  23  
  24  <form action="<?php echo Route::_('index.php?option=com_users&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="level-form" aria-label="<?php echo Text::_('COM_USERS_LEVEL_FORM_' . ((int) $this->item->id === 0 ? 'NEW' : 'EDIT'), true); ?>" class="form-validate main-card">
  25      <?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', ['active' => 'details', 'recall' => true, 'breakpoint' => 768]); ?>
  26  
  27          <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'details', Text::_('COM_USERS_LEVEL_DETAILS')); ?>
  28              <fieldset class="options-form">
  29                  <legend><?php echo Text::_('COM_USERS_LEVEL_DETAILS'); ?></legend>
  30                  <div class="control-group">
  31                      <div class="control-label">
  32                          <?php echo $this->form->getLabel('title'); ?>
  33                      </div>
  34                      <div class="controls">
  35                          <?php echo $this->form->getInput('title'); ?>
  36                      </div>
  37                  </div>
  38              </fieldset>
  39          <?php echo HTMLHelper::_('uitab.endTab'); ?>
  40  
  41          <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'groups', Text::_('COM_USERS_USER_GROUPS_HAVING_ACCESS')); ?>
  42              <fieldset class="options-form">
  43                  <legend><?php echo Text::_('COM_USERS_USER_GROUPS_HAVING_ACCESS'); ?></legend>
  44                  <div>
  45                      <?php echo HTMLHelper::_('access.usergroups', 'jform[rules]', $this->item->rules, true); ?>
  46                  </div>
  47              </fieldset>
  48          <?php echo HTMLHelper::_('uitab.endTab'); ?>
  49  
  50      <?php echo HTMLHelper::_('uitab.endTabSet'); ?>
  51  
  52      <input type="hidden" name="task" value="">
  53      <?php echo HTMLHelper::_('form.token'); ?>
  54  </form>


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