[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_languages/tmpl/override/ -> edit.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_languages
   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\HTML\HTMLHelper;
  14  use Joomla\CMS\Language\Text;
  15  use Joomla\CMS\Router\Route;
  16  
  17  $expired = ($this->state->get('cache_expired') == 1 ) ? '1' : '';
  18  
  19  /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
  20  $wa = $this->document->getWebAssetManager();
  21  $wa->useScript('keepalive')
  22      ->useScript('form.validate')
  23      ->usePreset('com_languages.overrider')
  24      ->useScript('com_languages.admin-override-edit-refresh-searchstring');
  25  
  26  ?>
  27  
  28  <form action="<?php echo Route::_('index.php?option=com_languages&id=' . $this->item->key); ?>" method="post" name="adminForm" id="override-form" aria-label="<?php echo Text::_('COM_LANGUAGES_VIEW_OVERRIDE_FORM_' . ((int) $this->item->key === 0 ? 'NEW' : 'EDIT'), true); ?>" class="main-card form-validate p-4 mt-4">
  29      <div class="row">
  30          <div class="col-md-6">
  31              <fieldset id="fieldset-override" class="options-form">
  32                  <legend><?php echo empty($this->item->key) ? Text::_('COM_LANGUAGES_VIEW_OVERRIDE_EDIT_NEW_OVERRIDE_LEGEND') : Text::_('COM_LANGUAGES_VIEW_OVERRIDE_EDIT_EDIT_OVERRIDE_LEGEND'); ?></legend>
  33                  <div>
  34                  <?php echo $this->form->renderField('language'); ?>
  35                  <?php echo $this->form->renderField('client'); ?>
  36                  <?php echo $this->form->renderField('key'); ?>
  37                  <?php echo $this->form->renderField('override'); ?>
  38  
  39                  <?php if ($this->state->get('filter.client') == 'administrator') : ?>
  40                      <?php echo $this->form->renderField('both'); ?>
  41                  <?php endif; ?>
  42  
  43                  <?php echo $this->form->renderField('file'); ?>
  44                  </div>
  45              </fieldset>
  46          </div>
  47  
  48          <div class="col-md-6">
  49              <fieldset id="fieldset-override-search" class="options-form">
  50                  <legend><?php echo Text::_('COM_LANGUAGES_VIEW_OVERRIDE_SEARCH_LEGEND'); ?></legend>
  51                  <div>
  52                  <div class="alert alert-info">
  53                      <span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span>
  54                      <?php echo Text::_('COM_LANGUAGES_VIEW_OVERRIDE_SEARCH_TIP'); ?>
  55                  </div>
  56                  <?php echo $this->form->renderField('searchtype'); ?>
  57                  <div class="control-group">
  58                      <div class="control-label">
  59                          <?php echo $this->form->getLabel('searchstring'); ?>
  60                      </div>
  61                      <div class="controls">
  62                          <div class="input-group">
  63                              <?php echo $this->form->getInput('searchstring'); ?>
  64                              <button type="submit" class="btn btn-primary" onclick="Joomla.overrider.searchStrings();return false;" formnovalidate>
  65                                  <?php echo Text::_('COM_LANGUAGES_VIEW_OVERRIDE_SEARCH_BUTTON'); ?>
  66                              </button>
  67                              <span id="refresh-status" class="form-text">
  68                                  <span class="icon-sync icon-spin" aria-hidden="true"></span>
  69                                  <?php echo Text::_('COM_LANGUAGES_VIEW_OVERRIDE_REFRESHING'); ?>
  70                              </span>
  71                          </div>
  72                      </div>
  73                  </div>
  74                  </div>
  75              </fieldset>
  76  
  77              <fieldset id="results-container" class="adminform">
  78                  <legend><?php echo Text::_('COM_LANGUAGES_VIEW_OVERRIDE_RESULTS_LEGEND'); ?></legend>
  79                  <div id="overrider-spinner" class="overrider-spinner text-center" data-search-string-expired="<?php echo $expired; ?>"><span class="icon-spinner icon-spin" aria-hidden="true"></span></div>
  80                  <span id="more-results" class="mt-2">
  81                      <button type="button" id="more-results-button" class="btn btn-secondary" disabled>
  82                          <span id="overrider-spinner-btn" class="overrider-spinner-btn icon-spinner icon-spin" aria-hidden="true"></span>
  83                          <?php echo Text::_('COM_LANGUAGES_VIEW_OVERRIDE_MORE_RESULTS'); ?>
  84                      </button>
  85                  </span>
  86              </fieldset>
  87  
  88              <input type="hidden" name="task" value="">
  89              <input type="hidden" name="id" value="<?php echo $this->item->key; ?>">
  90  
  91              <?php echo HTMLHelper::_('form.token'); ?>
  92          </div>
  93      </div>
  94  </form>


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