[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage com_workflow 6 * 7 * @copyright (C) 2018 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 $user = $app->getIdentity(); 26 27 $this->ignore_fieldsets = ['params', 'transition', 'permissions']; 28 $this->useCoreUI = true; 29 30 // In case of modal 31 $isModal = $this->input->get('layout') === 'modal'; 32 $layout = $isModal ? 'modal' : 'edit'; 33 $tmpl = $isModal || $this->input->get('tmpl', '', 'cmd') === 'component' ? '&tmpl=component' : ''; 34 35 ?> 36 37 <form action="<?php echo Route::_('index.php?option=com_workflow&view=transition&workflow_id=' . $this->workflowID . '&extension=' . $this->input->getCmd('extension') . '&layout=' . $layout . $tmpl . '&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="workflow-form" aria-label="<?php echo Text::_('COM_WORKFLOW_TRANSITION_FORM_' . ((int) $this->item->id === 0 ? 'NEW' : 'EDIT'), true); ?>" class="form-validate"> 38 <?php echo LayoutHelper::render('joomla.edit.title_alias', $this); ?> 39 <div class="main-card"> 40 <?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', ['active' => 'details', 'recall' => true, 'breakpoint' => 768]); ?> 41 42 <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'details', Text::_('COM_WORKFLOW_TRANSITION')); ?> 43 <div class="row"> 44 <div class="col-lg-9"> 45 <?php echo $this->form->renderField('from_stage_id'); ?> 46 <?php echo $this->form->renderField('to_stage_id'); ?> 47 <?php echo $this->form->renderField('description'); ?> 48 </div> 49 <div class="col-lg-3"> 50 <?php echo LayoutHelper::render('joomla.edit.global', $this); ?> 51 </div> 52 </div> 53 <?php echo HTMLHelper::_('uitab.endTab'); ?> 54 55 <?php echo LayoutHelper::render('joomla.edit.params', $this); ?> 56 57 <?php if ($user->authorise('core.admin', $this->extension)) : ?> 58 <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'permissions', Text::_('COM_WORKFLOW_RULES_TAB')); ?> 59 <fieldset id="fieldset-rules" class="options-form"> 60 <legend><?php echo Text::_('COM_WORKFLOW_RULES_TAB'); ?></legend> 61 <?php echo $this->form->getInput('rules'); ?> 62 </fieldset> 63 <?php echo HTMLHelper::_('uitab.endTab'); ?> 64 <?php endif; ?> 65 66 <?php echo HTMLHelper::_('uitab.endTabSet'); ?> 67 </div> 68 <?php echo $this->form->getInput('workflow_id'); ?> 69 <input type="hidden" name="task" value="transition.edit" /> 70 <?php echo HTMLHelper::_('form.token'); ?> 71 </form>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |