diff --git a/com_oauthserver/administrator/tmpl/client/edit.php b/com_oauthserver/administrator/tmpl/client/edit.php index 4ddb118..8bd0e4f 100644 --- a/com_oauthserver/administrator/tmpl/client/edit.php +++ b/com_oauthserver/administrator/tmpl/client/edit.php @@ -1,8 +1,14 @@ + * @license MIT; see LICENSE.txt + **/ use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; -use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Router\Route; defined('_JEXEC') or die; @@ -17,7 +23,10 @@ $wa->useScript('keepalive') ?> -
+
'details', 'recall' => true, 'breakpoint' => 768]); ?> diff --git a/com_oauthserver/administrator/tmpl/clients/default.php b/com_oauthserver/administrator/tmpl/clients/default.php index 9074ee3..8748358 100644 --- a/com_oauthserver/administrator/tmpl/clients/default.php +++ b/com_oauthserver/administrator/tmpl/clients/default.php @@ -1,4 +1,11 @@ + * @license MIT; see LICENSE.txt + **/ use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; @@ -15,10 +22,10 @@ defined('_JEXEC') or die; $wa = $this->document->getWebAssetManager(); $wa->useScript('table.columns') ->useScript('multiselect'); -$user = Factory::getApplication()->getIdentity(); -$userId = $user->get('id'); +$user = Factory::getApplication()->getIdentity(); +$userId = $user->get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); -$listDirn = $this->escape($this->state->get('list.direction')); +$listDirn = $this->escape($this->state->get('list.direction')); ?> escape($this->state->get('list.direction')); items)) : ?>
+ class="visually-hidden">
@@ -70,9 +77,9 @@ $listDirn = $this->escape($this->state->get('list.direction')); items as $i => $item) : ?> authorise('core.create', 'com_oauthserver.clients'); - $canEdit = $user->authorise('core.edit', 'com_oauthserver.clients'); - $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || is_null($item->checked_out); - $canChange = $user->authorise('core.edit.state', 'com_oauthserver.clients') && $canCheckin; ?> + $canEdit = $user->authorise('core.edit', 'com_oauthserver.clients'); + $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || is_null($item->checked_out); + $canChange = $user->authorise('core.edit.state', 'com_oauthserver.clients') && $canCheckin; ?> id, false, 'cid', 'cb', $item->name); ?> @@ -83,7 +90,7 @@ $listDirn = $this->escape($this->state->get('list.direction')); editor, $item->checked_out_time, 'clients.', $canCheckin); ?> - escape($item->name); ?> @@ -102,7 +109,7 @@ $listDirn = $this->escape($this->state->get('list.direction')); - public ? 'JYES' : 'JNO'); ?> + public ? 'JYES' : 'JNO'); ?> id; ?> @@ -119,4 +126,4 @@ $listDirn = $this->escape($this->state->get('list.direction')); - \ No newline at end of file + diff --git a/com_oauthserver/administrator/tmpl/clients/emptystate.php b/com_oauthserver/administrator/tmpl/clients/emptystate.php index d2bed20..be8a257 100644 --- a/com_oauthserver/administrator/tmpl/clients/emptystate.php +++ b/com_oauthserver/administrator/tmpl/clients/emptystate.php @@ -1,5 +1,11 @@ + * @license MIT; see LICENSE.txt + **/ use Joomla\CMS\Layout\LayoutHelper; @@ -11,7 +17,7 @@ use Joomla\CMS\Layout\LayoutHelper; $displayData = [ 'textPrefix' => 'COM_OAUTHSERVER_ORDERS', - 'icon' => 'icon-copy', + 'icon' => 'icon-copy', ]; $user = $this->getCurrentUser(); @@ -20,8 +26,9 @@ if ($user->authorise('core.create', 'com_oauthserver') || count($user->getAuthorisedCategories('com_oauthserver', 'core.create')) > 0 || $user->authorise('product.create', 'com_oauthserver') || count($user->getAuthorisedCategories('com_oauthserver', 'client.create')) > 0 -) { +) +{ $displayData['createURL'] = 'index.php?option=com_oauthserver&task=client.add'; } -echo LayoutHelper::render('joomla.content.emptystate', $displayData); \ No newline at end of file +echo LayoutHelper::render('joomla.content.emptystate', $displayData);