[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_finder/tmpl/filter/ -> edit.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_finder
   6   *
   7   * @copyright   (C) 2011 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  Text::script('COM_FINDER_FILTER_SHOW_ALL', true);
  20  Text::script('COM_FINDER_FILTER_HIDE_ALL', true);
  21  
  22  $this->ignore_fieldsets = ['jbasic'];
  23  
  24  $this->useCoreUI = true;
  25  
  26  /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
  27  $wa = $this->document->getWebAssetManager();
  28  $wa->useScript('keepalive')
  29      ->useScript('form.validate')
  30      ->useScript('com_finder.finder-edit');
  31  
  32  ?>
  33  
  34  <form action="<?php echo Route::_('index.php?option=com_finder&view=filter&layout=edit&filter_id=' . (int) $this->item->filter_id); ?>" method="post" name="adminForm" id="adminForm" aria-label="<?php echo Text::_('COM_FINDER_FILTER_FORM_TITLE_' . ((int) $this->item->filter_id === 0 ? 'NEW' : 'EDIT'), true); ?>" class="form-validate">
  35  
  36      <?php echo LayoutHelper::render('joomla.edit.title_alias', $this); ?>
  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_FINDER_EDIT_FILTER')); ?>
  42          <div class="row">
  43              <div class="col-lg-9">
  44                  <?php if ($this->total > 0) : ?>
  45                      <div class="well">
  46                          <?php echo $this->form->renderField('map_count'); ?>
  47                      </div>
  48                      <button class="btn btn-secondary filter-toggle-all" type="button">
  49                          <span class="icon-square" aria-hidden="true"></span> <?php echo Text::_('JGLOBAL_SELECTION_INVERT'); ?></button>
  50  
  51                      <button class="btn btn-secondary float-end" type="button" id="expandAccordion"><?php echo Text::_('COM_FINDER_FILTER_SHOW_ALL'); ?></button>
  52                      <hr>
  53                  <?php endif; ?>
  54  
  55                  <?php echo HTMLHelper::_('filter.slider', array('selected_nodes' => $this->filter->data)); ?>
  56              </div>
  57              <div class="col-lg-3">
  58                  <?php echo LayoutHelper::render('joomla.edit.global', $this); ?>
  59              </div>
  60          </div>
  61          <?php echo HTMLHelper::_('uitab.endTab'); ?>
  62  
  63          <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'publishing', Text::_('JGLOBAL_FIELDSET_OPTIONS')); ?>
  64          <div class="row">
  65              <div class="col-md-6">
  66                  <fieldset id="fieldset-publishingdata" class="options-form">
  67                      <legend><?php echo Text::_('JGLOBAL_FIELDSET_PUBLISHING'); ?></legend>
  68                      <div>
  69                      <?php echo LayoutHelper::render('joomla.edit.publishingdata', $this); ?>
  70                      </div>
  71                  </fieldset>
  72              </div>
  73              <div class="col-md-6">
  74                  <fieldset id="fieldset-filter" class="options-form">
  75                      <legend><?php echo Text::_('COM_FINDER_FILTER_FIELDSET_PARAMS'); ?></legend>
  76                      <div>
  77                      <?php echo $this->form->renderFieldset('jbasic'); ?>
  78                      </div>
  79                  </fieldset>
  80              </div>
  81          </div>
  82          <?php echo HTMLHelper::_('uitab.endTab'); ?>
  83  
  84          <?php echo LayoutHelper::render('joomla.edit.params', $this); ?>
  85  
  86          <?php echo HTMLHelper::_('uitab.endTabSet'); ?>
  87  
  88          <input type="hidden" name="task" value="">
  89          <input type="hidden" name="return" value="<?php echo Factory::getApplication()->input->get('return', '', 'BASE64'); ?>">
  90          <?php echo HTMLHelper::_('form.token'); ?>
  91      </div>
  92  </form>


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