| Current Path : /home/digilove/www/41423/ |
| Current File : /home/digilove/www/41423/Common.tar |
browse.fef.blade.php 0000644 00000012564 15235506021 0010372 0 ustar 00 <?php
/**
* @package FOF
* @copyright Copyright (c)2010-2021 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
defined('_JEXEC') || die;
/**
* Template for Browse views using the FEF renderer
*
* Use this by extending it (I'm using -at- instead of the actual at-sign)
* -at-extends('any:lib_fof40/Common/browse')
*
* Override the following sections in your Blade template:
*
* browse-page-top
* Content to put above the form
*
* browse-page-bottom
* Content to put below the form
*
* browse-filters
* Filters to place above the table. They are placed inside an inline form. Wrap them in
* <div class="akeeba-filter-element akeeba-form-group">
*
* browse-table-header
* The table header. At the very least you need to add the table column headers. You can
* optionally add one or more <tr> with filters at the top.
*
* browse-table-body-withrecords
* Loop through the records and create <tr>s.
*
* browse-table-body-norecords
* [ Optional ] The <tr> to show when no records are present. Default is the "no records" text.
*
* browse-table-footer
* [ Optional ] The table footer. By default that's just the pagination footer.
*
* browse-hidden-fields
* [ Optional ] Any additional hidden INPUTs to add to the form. By default this is empty.
* The default hidden fields (option, view, task, ordering fields, boxchecked and token) can
* not be removed.
*
* Do not override any other section. The overridden sections should be closed with -at-override instead of -at-stop.
*//** @var \FOF40\View\DataView\Html $this */
$ajaxOrderingSupport = $this->hasAjaxOrderingSupport();
?>
{{-- Allow tooltips, used in grid headers --}}
@if (version_compare(JVERSION, '3.999.999', 'le'))
@jhtml('behavior.tooltip')
@endif
{{-- Allow SHIFT+click to select multiple rows --}}
@jhtml('behavior.multiselect')
@section('browse-filters')
{{-- Filters above the table. --}}
@stop
@section('browse-table-header')
{{-- Table header. Column headers and optional filters displayed above the column headers. --}}
@stop
@section('browse-table-body-norecords')
{{-- Table body shown when no records are present. --}}
<tr>
<td colspan="99">
@lang($this->getContainer()->componentName . '_COMMON_NORECORDS')
</td>
</tr>
@stop
@section('browse-table-body-withrecords')
{{-- Table body shown when records are present. --}}
<?php $i = 0; ?>
@foreach($this->items as $row)
<tr>
{{-- You need to implement me! --}}
</tr>
@endforeach
@stop
@section('browse-table-footer')
{{-- Table footer. The default is showing the pagination footer. --}}
<tr>
<td colspan="99" class="center">
{{ $this->pagination->getListFooter() }}
</td>
</tr>
@stop
@section('browse-hidden-fields')
{{-- Put your additional hidden fields in this section --}}
@stop
@section('browse-ordering-bar')
@jhtml('FEFHelp.browse.orderjs', $this->lists->order)
@jhtml('FEFHelp.browse.orderheader', $this)
@stop
@yield('browse-page-top')
{{-- Administrator form for browse views --}}
<form action="index.php" method="post" name="adminForm" id="adminForm" class="akeeba-form">
{{-- Filters and ordering --}}
<section class="akeeba-panel--33-66 akeeba-filter-bar-container">
<div class="akeeba-filter-bar akeeba-filter-bar--left akeeba-form-section akeeba-form--inline">
@yield('browse-filters')
</div>
<div class="akeeba-filter-bar akeeba-filter-bar--right">
@yield('browse-ordering-bar')
</div>
</section>
<table class="akeeba-table akeeba-table--striped--hborder--hover" id="itemsList">
<thead>
@yield('browse-table-header')
</thead>
<tfoot>
@yield('browse-table-footer')
</tfoot>
<tbody
@if(!is_null($ajaxOrderingSupport) && $ajaxOrderingSupport['saveOrder'])
class="js-draggable"
data-url="{{ $ajaxOrderingSupport['saveOrderURL'] }}"
data-direction="{{ strtolower($this->getModel()->getState('filter_order_Dir', null, 'cmd')) }}"
data-nested="{{ ($this->getModel() instanceof \FOF40\Model\TreeModel) ? 'true' : 'false' }}"
@endif
>
@unless(count($this->items))
@yield('browse-table-body-norecords')
@else
@yield('browse-table-body-withrecords')
@endunless
</tbody>
</table>
{{-- Hidden form fields --}}
<div class="akeeba-hidden-fields-container">
@section('browse-default-hidden-fields')
<input type="hidden" name="option" id="option" value="{{{ $this->getContainer()->componentName }}}"/>
<input type="hidden" name="view" id="view" value="{{{ $this->getName() }}}"/>
<input type="hidden" name="boxchecked" id="boxchecked" value="0"/>
<input type="hidden" name="task" id="task" value="{{{ $this->getTask() }}}"/>
<input type="hidden" name="filter_order" id="filter_order" value="{{{ $this->lists->order }}}"/>
<input type="hidden" name="filter_order_Dir" id="filter_order_Dir" value="{{{ $this->lists->order_Dir }}}"/>
<input type="hidden" name="@token()" value="1"/>
@show
@yield('browse-hidden-fields')
</div>
</form>
@yield('browse-page-bottom')
user_select.j4.blade.php 0000644 00000004370 15235506021 0011157 0 ustar 00 <?php
/**
* @package FOF
* @copyright Copyright (c)2010-2021 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
defined('_JEXEC') || die;
use Joomla\CMS\Language\Text;
/**
* User entry field, allowing selection of a user from a modal dialog
*
* Use this by extending it (I'm using -at- instead of the actual at-sign)
* -at-include('any:lib_fof40/Common/user_select', $params)
*
* This is the generic variant used in Joomla 4 (when NOT using the FEF renderer)
*
* $params is an array defining the following keys (they are expanded into local scope vars automatically):
*
* @var string $field The user field's name, e.g. "user_id"
* @var \FOF40\Model\DataModel $item The item we're editing. The user ID is stored in $item->{$field}
* @var string $id The id of the field, default is $field
* @var bool $readonly Is this a read only field? Default: false
* @var string $placeholder Placeholder text, also used as the button's tooltip
* @var bool $required Is a value required for this field? Default: false
* @var string $width Width of the modal box (default: 800)
* @var string $height Height of the modal box (default: 500)
*
* Variables made automatically available to us by FOF:
*
* @var \FOF40\View\DataView\DataViewInterface $this
*/
$id = isset($id) ? $id : $field;
$readonly = isset($readonly) ? ($readonly ? true : false) : false;
$placeholder = isset($placeholder) ? Text::_($placeholder) : Text::_('JLIB_FORM_SELECT_USER');
$userID = $item->getFieldValue($field, 0);
$user = $item->getContainer()->platform->getUser($userID);
$width = isset($width) ? $width : 800;
$height = isset($height) ? $height : 500;
$class = isset($class) ? $class : '';
$size = isset($size) ? $size : 0;
$onchange = isset($onchange) ? $onchange : '';
?>
@jlayout('joomla/form/field/user', [
'name' => $field,
'id' => $id,
'class' => $class,
'size' => $size,
'value' => $userID,
'userName' => $user->name,
'hint' => $placeholder,
'readonly' => $readonly,
'required' => $required,
'onchange' => $onchange,
'dataAttribute' => '',
]) user_select.j3.blade.php 0000644 00000005570 15235506021 0011161 0 ustar 00 <?php
/**
* @package FOF
* @copyright Copyright (c)2010-2021 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
defined('_JEXEC') || die;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;
/**
* User entry field, allowing selection of a user from a modal dialog
*
* Use this by extending it (I'm using -at- instead of the actual at-sign)
* -at-include('any:lib_fof40/Common/user_select', $params)
*
* This is the generic variant used in Joomla 3 (when NOT using the FEF renderer)
*
* $params is an array defining the following keys (they are expanded into local scope vars automatically):
*
* @var string $field The user field's name, e.g. "user_id"
* @var \FOF40\Model\DataModel $item The item we're editing. The user ID is stored in $item->{$field}
* @var string $id The id of the field, default is $field
* @var bool $readonly Is this a read only field? Default: false
* @var string $placeholder Placeholder text, also used as the button's tooltip
* @var bool $required Is a value required for this field? Default: false
* @var string $width Width of the modal box (default: 800)
* @var string $height Height of the modal box (default: 500)
*
* Variables made automatically available to us by FOF:
*
* @var \FOF40\View\DataView\DataViewInterface $this
*/
$id = isset($id) ? $id : $field;
$readonly = isset($readonly) ? ($readonly ? true : false) : false;
$placeholder = isset($placeholder) ? JText::_($placeholder) : JText::_('JLIB_FORM_SELECT_USER');
$userID = $item->getFieldValue($field, 0);
$user = $item->getContainer()->platform->getUser($userID);
$width = isset($width) ? $width : 800;
$height = isset($height) ? $height : 500;
$class = isset($class) ? $class : '';
$size = isset($size) ? $size : 0;
$uri = new JUri('index.php?option=com_users&view=users&layout=modal&tmpl=component');
$uri->setVar('required', (isset($required) ? ($required ? 1 : 0) : 0));
$uri->setVar('field', $field);
$url = 'index.php' . $uri->toString(['query']);
?>
@unless($readonly)
@jhtml('behavior.modal', 'a.userSelectModal_' . $this->escape($field))
@jhtml('script', 'jui/fielduser.min.js', ['version' => 'auto', 'relative' => true])
@endunless
<div class="input-append">
<input readonly type="text"
id="{{{ $field }}}" value="{{{ $user->username }}}"
placeholder="{{{ $placeholder }}}"/>
<a href="@route($url)"
class="akeeba-btn--grey userSelectModal_{{{ $field }}}" title="{{{ $placeholder }}}"
rel="{handler: 'iframe', size: {x: {{$width}}, y: {{$height}} }}">
<span class="akion-person"></span>
</a>
</div>
@unless($readonly)
<input type="hidden" id="{{{ $field }}}_id" name="{{{ $field }}}" value="{{ (int) $userID }}"/>
@endunless user_select.j4.fef.blade.php 0000644 00000015416 15235506021 0011721 0 ustar 00 <?php
/**
* @package FOF
* @copyright Copyright (c)2010-2021 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
defined('_JEXEC') || die;
use Joomla\CMS\Factory;use Joomla\CMS\Language\Text;use Joomla\CMS\Uri\Uri;
/**
* User entry field, allowing selection of a user from a modal dialog
*
* Use this by extending it (I'm using -at- instead of the actual at-sign)
* -at-include('any:lib_fof40/Common/user_select', $params)
*
* This is the variant used when using the FEF renderer under Joomla 4.
*
* $params is an array defining the following keys (they are expanded into local scope vars automatically):
*
* @var string $field The user field's name, e.g. "user_id"
* @var \FOF40\Model\DataModel $item The item we're editing. The user ID is stored in $item->{$field}
* @var string $id The id of the field, default is $field
* @var bool $readonly Is this a read only field? Default: false
* @var string $placeholder Placeholder text, also used as the button's tooltip
* @var bool $required Is a value required for this field? Default: false
* @var string $width Width of the modal box (default: 800)
* @var string $height Height of the modal box (default: 500)
* @var string $autocomplete Autocomplete attribute for the field.
* @var boolean $autofocus Is autofocus enabled?
* @var string $class Classes for the input.
* @var string $description Description of the field.
* @var boolean $disabled Is this field disabled?
* @var string $group Group the field belongs to. <fields> section in form XML.
* @var boolean $hidden Is this field hidden in the form?
* @var string $id DOM id of the field.
* @var string $label Label of the field.
* @var string $labelclass Classes to apply to the label.
* @var boolean $multiple Does this field support multiple values?
* @var string $onchange Onchange attribute for the field.
* @var string $onclick Onclick attribute for the field.
* @var string $pattern Pattern (Reg Ex) of value of the form field.
* @var boolean $readonly Is this field read only?
* @var boolean $repeat Allows extensions to duplicate elements.
* @var boolean $required Is this field required?
* @var integer $size Size attribute of the input.
* @var boolean $spellcheck Spellcheck state for the form field.
* @var string $validate Validation rules to apply.
* @var mixed $groups The filtering groups (null means no filtering)
* @var mixed $excluded The users to exclude from the list of users
* @var string $dataAttribute Miscellaneous data attributes preprocessed for HTML output
* @var array $dataAttributes Miscellaneous data attribute for eg, data-*.
*
* Variables made automatically available to us by FOF:
*
* @var \FOF40\View\DataView\DataViewInterface $this
*/
$id = isset($id) ? $id : $field;
$readonly = isset($readonly) ? ($readonly ? true : false) : false;
$placeholder = isset($placeholder) ? Text::_($placeholder) : Text::_('JLIB_FORM_SELECT_USER');
$userID = $item->getFieldValue($field, 0);
$user = $item->getContainer()->platform->getUser($userID);
$width = isset($width) ? $width : 800;
$height = isset($height) ? $height : 500;
$class = isset($class) ? $class : '';
$size = isset($size) ? $size : 0;
$onchange = isset($onchange) ? $onchange : '';
$userName = (is_object($user) && ($user instanceof \Joomla\CMS\User\User) && !$user->guest) ? $user->name : Text::_('JLIB_FORM_SELECT_USER');
if (!$readonly)
{
Factory::getDocument()->getWebAssetManager()
->useScript('webcomponent.field-user');
}
$uri = new Uri('index.php?option=com_users&view=users&layout=modal&tmpl=component&required=0');
$uri->setVar('field', $this->escape($id));
if ($required)
{
$uri->setVar('required', 1);
}
if (!empty($groups))
{
$uri->setVar('groups', base64_encode(json_encode($groups)));
}
if (!empty($excluded))
{
$uri->setVar('excluded', base64_encode(json_encode($excluded)));
}
// Invalidate the input value if no user selected
if ($this->escape($userName) === Text::_('JLIB_FORM_SELECT_USER'))
{
$userName = '';
}
$inputAttributes = array(
'type' => 'text', 'id' => $id, 'class' => 'form-control field-user-input-name', 'value' => $this->escape($userName)
);
if ($class)
{
$inputAttributes['class'] .= ' ' . $class;
}
if ($size)
{
$inputAttributes['size'] = (int) $size;
}
if ($required)
{
$inputAttributes['required'] = 'required';
}
if (!$readonly)
{
$inputAttributes['placeholder'] = $placeholder;
}
?>
<?php // Create a dummy text field with the user name. ?>
<joomla-field-user class="field-user-wrapper"
url="<?php echo (string) $uri; ?>"
modal=".modal"
modal-width="100%"
modal-height="400px"
input=".field-user-input"
input-name=".field-user-input-name"
button-select=".userSelectModal_{{{ $field }}}">
<div class="akeeba-input-group">
<input {{ \FOF40\Utils\ArrayHelper::toString($inputAttributes) }} {{ $dataAttribute ?? '' }} readonly>
@if (!$readonly)
<span class="akeeba-input-group-btn">
<button type="button"
class="akeeba-btn--grey userSelectModal_{{{ $field }}}" title="{{{ $placeholder }}}">
<span class="akion-person" aria-hidden="true" aria-label="{{ $placeholder }}"></span>
</button>
</span>
@endif
</div>
{{-- Create the real field, hidden, that stored the user id.--}}
@if(!$readonly)
<input type="hidden" id="{{ $id }}_id" name="{{ $field }}"
value="{{{ $userID }}}"
class="field-user-input {{ $class ? (string) $class : '' }}"
data-onchange="{{{ $onchange }}}">
@jhtml(
'bootstrap.renderModal',
'userModal_' . $id,
array(
'url' => $uri,
'title' => $placeholder,
'closeButton' => true,
'height' => '100%',
'width' => '100%',
'modalWidth' => $width / 10,
'bodyHeight' => $height / 10,
'footer' => '<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">' . Text::_('JCANCEL') . '</button>',
)
)
@endif
</joomla-field-user>
user_select.j3.fef.blade.php 0000644 00000005646 15235506021 0011724 0 ustar 00 <?php
/**
* @package FOF
* @copyright Copyright (c)2010-2021 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
defined('_JEXEC') || die;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;
/**
* User entry field, allowing selection of a user from a modal dialog
*
* Use this by extending it (I'm using -at- instead of the actual at-sign)
* -at-include('any:lib_fof40/Common/user_select', $params)
*
* This is the variant used when using the FEF renderer under Joomla 3.
*
* $params is an array defining the following keys (they are expanded into local scope vars automatically):
*
* @var string $field The user field's name, e.g. "user_id"
* @var \FOF40\Model\DataModel $item The item we're editing. The user ID is stored in $item->{$field}
* @var string $id The id of the field, default is $field
* @var bool $readonly Is this a read only field? Default: false
* @var string $placeholder Placeholder text, also used as the button's tooltip
* @var bool $required Is a value required for this field? Default: false
* @var string $width Width of the modal box (default: 800)
* @var string $height Height of the modal box (default: 500)
*
* Variables made automatically available to us by FOF:
*
* @var \FOF40\View\DataView\DataViewInterface $this
*/
$id = isset($id) ? $id : $field;
$readonly = isset($readonly) ? ($readonly ? true : false) : false;
$placeholder = isset($placeholder) ? JText::_($placeholder) : JText::_('JLIB_FORM_SELECT_USER');
$userID = $item->getFieldValue($field, 0);
$user = $item->getContainer()->platform->getUser($userID);
$width = isset($width) ? $width : 800;
$height = isset($height) ? $height : 500;
$class = isset($class) ? $class : '';
$size = isset($size) ? $size : 0;
$uri = new JUri('index.php?option=com_users&view=users&layout=modal&tmpl=component');
$uri->setVar('required', (isset($required) ? ($required ? 1 : 0) : 0));
$uri->setVar('field', $field);
$url = 'index.php' . $uri->toString(['query']);
?>
@unless($readonly)
@jhtml('behavior.modal', 'a.userSelectModal_' . $this->escape($field))
@jhtml('script', 'jui/fielduser.min.js', ['version' => 'auto', 'relative' => true])
@endunless
<div class="akeeba-input-group">
<input readonly type="text"
id="{{{ $field }}}" value="{{{ $user->username }}}"
placeholder="{{{ $placeholder }}}"/>
<span class="akeeba-input-group-btn">
<a href="@route($url)"
class="akeeba-btn--grey userSelectModal_{{{ $field }}}" title="{{{ $placeholder }}}"
rel="{handler: 'iframe', size: {x: {{$width}}, y: {{$height}} }}">
<span class="akion-person"></span>
</a>
</span>
</div>
@unless($readonly)
<input type="hidden" id="{{{ $field }}}_id" name="{{{ $field }}}" value="{{ (int) $userID }}"/>
@endunless
user_show.fef.blade.php 0000644 00000011554 15235506021 0011105 0 ustar 00 <?php
/**
* @package FOF
* @copyright Copyright (c)2010-2021 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
/**
* User information display field
*
* Use this by extending it (I'm using -at- instead of the actual at-sign)
* -at-include('any:lib_fof40/Common/user_show', $params)
*
* $params is an array defining the following keys (they are expanded into local scope vars automatically):
*
* @var \FOF40\Model\DataModel $item The record which holds the user ID in the $field property
* @var string $field The name of the field in the current row containing the user ID
* @var string $id The ID of the generated DIV
* @var string $showUsername Should I display the username?
* @var string $showEmail Should I display the email address?
* @var string $showName Should I display the full name?
* @var string $showID Should I display the numeric user ID?
* @var string $showAvatar Should I display the avatar of the user?
* @var string $showLink Should I display a link?
* @var string $linkURL What link should I display? Default is com_users edit page (backend only).
* @var string $avatarMethod Method to display an avatar: gravatar | plugin
* @var string $avatarSize Size [pixels] of the avatar. Avatars are square. Size 64 means 64x64 px.
* @var string $class Extra class to append
*
* Variables made automatically available to us by FOF:
*
* @var \FOF40\View\DataView\Raw $this
*/
defined('_JEXEC') || die;
use FOF40\Html\FEFHelper\BrowseView;
global $akeebaSubsShowUserCache;
if (!isset($akeebaSubsShowUserCache))
{
$akeebaSubsShowUserCache = [];
}
// Get field parameters
$defaultParams = [
'id' => '',
'showUsername' => true,
'showEmail' => true,
'showName' => true,
'showID' => true,
'showAvatar' => true,
'showLink' => true,
'linkURL' => null,
'avatarMethod' => 'gravatar',
'avatarSize' => 64,
'class' => '',
];
foreach ($defaultParams as $paramName => $paramValue)
{
if (!isset(${$paramName}))
{
${$paramName} = $paramValue;
}
}
unset($defaultParams, $paramName, $paramValue);
// Initialization
$value = $item->getFieldValue($field);
$key = is_numeric($value) ? $value : 'empty';
// Get the user
if (!array_key_exists($key, $akeebaSubsShowUserCache))
{
$akeebaSubsShowUserCache[$key] = $this->getContainer()->platform->getUser($value);
}
$user = $akeebaSubsShowUserCache[$key];
// Get the field parameters
if ($avatarMethod)
{
$avatarMethod = strtolower($avatarMethod);
}
if (!$linkURL && $this->getContainer()->platform->isBackend())
{
$linkURL = 'index.php?option=com_users&task=user.edit&id=[USER:ID]';
}
elseif (!$linkURL)
{
// If no link is defined in the front-end, we can't create a default link. Therefore, show no link.
$showLink = false;
}
// Post-process the link URL
if ($showLink)
{
$replacements = array(
'[USER:ID]' => $user->id,
'[USER:USERNAME]' => $user->username,
'[USER:EMAIL]' => $user->email,
'[USER:NAME]' => $user->name,
);
foreach ($replacements as $key => $value)
{
$linkURL = str_replace($key, $value, $linkURL);
}
$linkURL = BrowseView::parseFieldTags($linkURL, $item);
}
// Get the avatar image, if necessary
$avatarURL = '';
if ($showAvatar)
{
$avatarURL = '';
if ($avatarMethod == 'plugin')
{
// Use the user plugins to get an avatar
$this->getContainer()->platform->importPlugin('user');
$jResponse = $this->getContainer()->platform->runPlugins('onUserAvatar', array($user, $avatarSize));
if (!empty($jResponse))
{
foreach ($jResponse as $response)
{
if ($response)
{
$avatarURL = $response;
}
}
}
}
// Fall back to the Gravatar method
if (empty($avatarURL))
{
$md5 = md5($user->email);
$avatarURL = 'https://secure.gravatar.com/avatar/' . $md5 . '.jpg?s='
. $avatarSize . '&d=mm';
}
}
?>
<div id="{{ $id }}" class="{{ $class }}">
@if($showAvatar)
<img src="{{ $avatarURL }}" alt="{{ $showName ? $user->name : ($showUsername ? $user->username : '') }}" align="left" class="fof-usersfield-avatar" />
@endif
@if($showLink)
<a href="{{ $linkURL }}">
@endif
@if($showUsername)
<span class="fof-usersfield-username">
{{{ $user->username }}}
</span>
@endif
@if($showID)
<span class="fof-usersfield-id">
{{{ $user->id }}}
</span>
@endif
@if($showName)
<span class="fof-usersfield-name">
{{{ $user->name }}}
</span>
@endif
@if($showEmail)
<span class="fof-usersfield-email">
{{{ $user->email }}}
</span>
@endif
@if($showLink)
</a>
@endif
</div>
edit.fef.blade.php 0000644 00000004110 15235506021 0010002 0 ustar 00 <?php
/**
* @package FOF
* @copyright Copyright (c)2010-2021 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
/**
* Template for Edit (form) views using the FEF renderer
*
* Use this by extending it (I'm using -at- instead of the at-sign)
* -at-extends('any:lib_fof40/Common/edit')
*
* Override the following sections in your Blade template:
*
* edit-page-top
* Content to put above the form
*
* edit-page-bottom
* Content to put below the form
*
* edit-form-body
* The page's body, inside the form
*
* edit-hidden-fields
* [ Optional ] Any additional hidden INPUTs to add to the form. By default this is empty.
* The default hidden fields (option, view, task, ordering fields, boxchecked and token) can
* not be removed.
*
* Do not override any other section. The overridden sections should be closed with -at-override instead of -at-stop.
*/
defined('_JEXEC') or die();
/** @var FOF40\View\DataView\Html $this */
?>
@section('edit-form-body')
{{-- Put your form body in this section --}}
@stop
@section('edit-hidden-fields')
{{-- Put your additional hidden fields in this section --}}
@stop
@yield('edit-page-top')
{{-- Administrator form for browse views --}}
<form action="index.php" method="post" name="adminForm" id="adminForm" class="akeeba-form--horizontal">
{{-- Main form body --}}
@yield('edit-form-body')
{{-- Hidden form fields --}}
<div class="akeeba-hidden-fields-container">
@section('browse-default-hidden-fields')
<input type="hidden" name="option" id="option" value="{{{ $this->getContainer()->componentName }}}"/>
<input type="hidden" name="view" id="view" value="{{{ $this->getName() }}}"/>
<input type="hidden" name="task" id="task" value="{{{ $this->getTask() }}}"/>
<input type="hidden" name="id" id="id" value="{{{ $this->getItem()->getId() }}}"/>
<input type="hidden" name="@token()" value="1"/>
@show
@yield('edit-hidden-fields')
</div>
</form>
@yield('edit-page-bottom')