diff --git a/com_oauthserver/administrator/language/ru-RU/ru-RU.com_oauthserver.ini b/com_oauthserver/administrator/language/ru-RU/ru-RU.com_oauthserver.ini index 3fa3704..8f93213 100644 --- a/com_oauthserver/administrator/language/ru-RU/ru-RU.com_oauthserver.ini +++ b/com_oauthserver/administrator/language/ru-RU/ru-RU.com_oauthserver.ini @@ -21,4 +21,6 @@ COM_OAUTHSERVER_CLIENTS_HEADING_IDENTIFIER = "ID клиента" COM_OAUTHSERVER_CLIENTS_HEADING_SECRET = "Ключ" COM_OAUTHSERVER_CLIENTS_HEADING_PUBLIC = "Публичный" -COM_OAUTHSERVER_SAVE_AND_RESET = "Сохранить и сбросить" \ No newline at end of file +COM_OAUTHSERVER_SAVE_AND_RESET = "Сохранить и сбросить" + +COM_OAUTHSERVER_CLIENTS = "Клиенты" \ No newline at end of file diff --git a/com_oauthserver/administrator/src/Controller/ClientsController.php b/com_oauthserver/administrator/src/Controller/ClientsController.php new file mode 100644 index 0000000..503d1aa --- /dev/null +++ b/com_oauthserver/administrator/src/Controller/ClientsController.php @@ -0,0 +1,34 @@ + true)): BaseDatabaseModel + { + return parent::getModel($name, $prefix, $config); + } + +} \ No newline at end of file diff --git a/com_oauthserver/administrator/src/View/Clients/HtmlView.php b/com_oauthserver/administrator/src/View/Clients/HtmlView.php index 0914812..dab70c3 100644 --- a/com_oauthserver/administrator/src/View/Clients/HtmlView.php +++ b/com_oauthserver/administrator/src/View/Clients/HtmlView.php @@ -129,9 +129,11 @@ class HtmlView extends \Joomla\CMS\MVC\View\HtmlView $toolbar->addNew('client.add'); } - // Add actions dropdown - if (!$this->isEmptyState) { - // TODO: Что мы тут в дропдаун пихаем? + if ($canDo->get('core.delete')) { + $toolbar->delete('clients.delete') + ->text('JTOOLBAR_DELETE') + ->message('JGLOBAL_CONFIRM_DELETE') + ->listCheck(true); } // Add preferences button diff --git a/com_oauthserver/administrator/tmpl/clients/default.php b/com_oauthserver/administrator/tmpl/clients/default.php index 19cc05d..9074ee3 100644 --- a/com_oauthserver/administrator/tmpl/clients/default.php +++ b/com_oauthserver/administrator/tmpl/clients/default.php @@ -49,16 +49,16 @@ $listDirn = $this->escape($this->state->get('list.direction'));
+ identifier; ?>
+
+ secret) ? substr($item->secret, 0, 29) . '...' : ''; ?>
+