first commit
This commit is contained in:
26
administrator/components/com_users/tmpl/notes/emptystate.php
Normal file
26
administrator/components/com_users/tmpl/notes/emptystate.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
$displayData = [
|
||||
'textPrefix' => 'COM_USERS_NOTES',
|
||||
'formURL' => 'index.php?option=com_users&view=notes',
|
||||
'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/Help40:User_Notes',
|
||||
'icon' => 'icon-users user',
|
||||
];
|
||||
|
||||
if ($this->getCurrentUser()->authorise('core.create', 'com_users')) {
|
||||
$displayData['createURL'] = 'index.php?option=com_users&task=note.add';
|
||||
}
|
||||
|
||||
echo LayoutHelper::render('joomla.content.emptystate', $displayData);
|
||||
Reference in New Issue
Block a user