[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_associations/tmpl/association/ -> edit.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_associations
   6   *
   7   * @copyright   (C) 2017 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  use Joomla\Component\Associations\Administrator\View\Association\HtmlView;
  17  
  18  /** @var HtmlView $this */
  19  
  20  /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
  21  $wa = $this->document->getWebAssetManager();
  22  $wa->useScript('keepalive')
  23      ->useScript('form.validate')
  24      ->usePreset('com_associations.sidebyside')
  25      ->useScript('webcomponent.core-loader');
  26  
  27  $options = [
  28      'layout'   => $this->app->input->get('layout', '', 'string'),
  29      'itemtype' => $this->itemType,
  30      'id'       => $this->referenceId,
  31  ];
  32  ?>
  33  <button id="toggle-left-panel" class="btn btn-sm btn-secondary"
  34          data-show-reference="<?php echo Text::_('COM_ASSOCIATIONS_EDIT_SHOW_REFERENCE'); ?>"
  35          data-hide-reference="<?php echo Text::_('COM_ASSOCIATIONS_EDIT_HIDE_REFERENCE'); ?>"><?php echo Text::_('COM_ASSOCIATIONS_EDIT_HIDE_REFERENCE'); ?>
  36  </button>
  37  
  38  <form action="<?php echo Route::_('index.php?option=com_associations&view=association&' . http_build_query($options)); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" data-associatedview="<?php echo $this->typeName; ?>">
  39      <div class="sidebyside">
  40          <div class="outer-panel" id="left-panel">
  41              <div class="inner-panel">
  42                  <h3><?php echo Text::_('COM_ASSOCIATIONS_REFERENCE_ITEM'); ?></h3>
  43                  <iframe id="reference-association" name="reference-association" title="reference-association"
  44                      src="<?php echo Route::_($this->editUri . '&task=' . $this->typeName . '.edit&id=' . (int) $this->referenceId); ?>"
  45                      height="400" width="400"
  46                      data-action="edit"
  47                      data-item="<?php echo $this->typeName; ?>"
  48                      data-id="<?php echo $this->referenceId; ?>"
  49                      data-title="<?php echo $this->referenceTitle; ?>"
  50                      data-title-value="<?php echo $this->referenceTitleValue; ?>"
  51                      data-language="<?php echo $this->referenceLanguage; ?>"
  52                      data-editurl="<?php echo Route::_($this->editUri); ?>">
  53                  </iframe>
  54              </div>
  55          </div>
  56          <div class="outer-panel" id="right-panel">
  57              <div class="inner-panel">
  58                  <div class="language-selector">
  59                      <div class="clearfix">
  60                          <h3 class="target-text"><?php echo Text::_('COM_ASSOCIATIONS_ASSOCIATED_ITEM'); ?></h3>
  61                      </div>
  62                      <div class="langtarget">
  63                          <div class="visually-hidden">
  64                              <?php echo $this->form->getLabel('itemlanguage'); ?>
  65                          </div>
  66                          <?php echo $this->form->getInput('itemlanguage'); ?>
  67                      </div>
  68                      <div class="modaltarget">
  69                          <?php echo $this->form->getInput('modalassociation'); ?>
  70                      </div>
  71                  </div>
  72                  <iframe id="target-association" name="target-association" title="target-association"
  73                      src="<?php echo $this->defaultTargetSrc; ?>"
  74                      height="400" width="400"
  75                      data-action="<?php echo $this->targetAction; ?>"
  76                      data-item="<?php echo $this->typeName; ?>"
  77                      data-id="<?php echo $this->targetId; ?>"
  78                      data-title="<?php echo $this->targetTitle; ?>"
  79                      data-language="<?php echo $this->targetLanguage; ?>"
  80                      data-editurl="<?php echo Route::_($this->editUri); ?>">
  81                  </iframe>
  82              </div>
  83          </div>
  84      </div>
  85  
  86      <input type="hidden" name="task" value="">
  87      <input type="hidden" name="target-id" id="target-id" value="">
  88      <?php echo HTMLHelper::_('form.token'); ?>
  89  </form>


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