[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_fields/tmpl/group/ -> edit.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_fields
   6   *
   7   * @copyright   (C) 2016 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\CMS\WebAsset\WebAssetManager $wa */
  20  $wa = $this->document->getWebAssetManager();
  21  $wa->useScript('keepalive')
  22      ->useScript('form.validate');
  23  
  24  $app = Factory::getApplication();
  25  $input = $app->input;
  26  
  27  $this->useCoreUI = true;
  28  
  29  ?>
  30  
  31  <form action="<?php echo Route::_('index.php?option=com_fields&context=' . $this->state->get('filter.context') . '&layout=edit&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="item-form" aria-label="<?php echo Text::_('COM_FIELDS_GROUP_FORM_' . ((int) $this->item->id === 0 ? 'NEW' : 'EDIT'), true); ?>" class="form-validate">
  32      <?php echo LayoutHelper::render('joomla.edit.title_alias', $this); ?>
  33      <div class="main-card form-horizontal">
  34          <?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', ['active' => 'general', 'recall' => true, 'breakpoint' => 768]); ?>
  35          <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'general', Text::_('COM_FIELDS_VIEW_FIELD_FIELDSET_GENERAL', true)); ?>
  36          <div class="row">
  37              <div class="col-lg-9">
  38                  <?php echo $this->form->renderField('label'); ?>
  39                  <?php echo $this->form->renderField('description'); ?>
  40              </div>
  41              <div class="col-lg-3">
  42                  <?php $this->set(
  43                      'fields',
  44                      array(
  45                              array(
  46                                  'published',
  47                                  'state',
  48                                  'enabled',
  49                              ),
  50                              'access',
  51                              'language',
  52                              'note',
  53                          )
  54                  ); ?>
  55                  <?php echo LayoutHelper::render('joomla.edit.global', $this); ?>
  56                  <?php $this->set('fields', null); ?>
  57              </div>
  58          </div>
  59          <?php echo HTMLHelper::_('uitab.endTab'); ?>
  60          <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'publishing', Text::_('JGLOBAL_FIELDSET_PUBLISHING', true)); ?>
  61              <fieldset id="fieldset-rules" class="options-form">
  62                  <legend><?php echo Text::_('JGLOBAL_FIELDSET_PUBLISHING'); ?></legend>
  63                  <div>
  64                  <?php echo LayoutHelper::render('joomla.edit.publishingdata', $this); ?>
  65                  </div>
  66              </fieldset>
  67          <?php echo HTMLHelper::_('uitab.endTab'); ?>
  68          <?php $this->set('ignore_fieldsets', array('fieldparams')); ?>
  69          <?php echo LayoutHelper::render('joomla.edit.params', $this); ?>
  70          <?php if ($this->canDo->get('core.admin')) : ?>
  71              <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'rules', Text::_('JGLOBAL_ACTION_PERMISSIONS_LABEL', true)); ?>
  72              <fieldset id="fieldset-rules" class="options-form">
  73                  <legend><?php echo Text::_('JGLOBAL_ACTION_PERMISSIONS_LABEL'); ?></legend>
  74                  <div>
  75                  <?php echo $this->form->getInput('rules'); ?>
  76                  </div>
  77              </fieldset>
  78              <?php echo HTMLHelper::_('uitab.endTab'); ?>
  79          <?php endif; ?>
  80          <?php echo HTMLHelper::_('uitab.endTabSet'); ?>
  81          <?php echo $this->form->getInput('context'); ?>
  82          <input type="hidden" name="task" value="">
  83          <?php echo HTMLHelper::_('form.token'); ?>
  84      </div>
  85  </form>


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