-
+
\ No newline at end of file
diff --git a/src/administrator/views/role/view.html.php b/src/administrator/views/role/view.html.php
index aa2f34e..7cc65ef 100755
--- a/src/administrator/views/role/view.html.php
+++ b/src/administrator/views/role/view.html.php
@@ -1,23 +1,23 @@
- * @copyright Copyright (C) 2015. All rights reserved.
+ * @package Subusers
+ *
+ * @author Techjoomla
+ * @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
-// No direct access
+
defined('_JEXEC') or die;
-jimport('joomla.application.component.view');
+use Joomla\CMS\Factory;
+use Joomla\CMS\MVC\View\HtmlView;
/**
* View to edit
*
* @since 1.6
*/
-class SubusersViewRole extends JViewLegacy
+class SubusersViewRole extends HtmlView
{
protected $state;
@@ -59,14 +59,14 @@ public function display($tpl = null)
*/
protected function addToolbar()
{
- JFactory::getApplication()->input->set('hidemainmenu', true);
+ Factory::getApplication()->input->set('hidemainmenu', true);
- $user = JFactory::getUser();
+ $user = Factory::getUser();
$isNew = ($this->item->id == 0);
if (isset($this->item->checked_out))
{
- $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $user->get('id'));
+ $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $user->id);
}
else
{
diff --git a/src/administrator/views/roles/tmpl/default.php b/src/administrator/views/roles/tmpl/default.php
index 9ca502a..d6c5680 100755
--- a/src/administrator/views/roles/tmpl/default.php
+++ b/src/administrator/views/roles/tmpl/default.php
@@ -139,15 +139,10 @@ class="element-invisible">
- items[0]->state)): ?>
-
-
- |
-
-
-
- |
+
+
+ |
items[0]->id)): ?>
@@ -201,9 +196,7 @@ class="element-invisible">
id); ?>
items[0]->state)): ?>
-
- state, $i, 'roles.', $canChange, 'cb'); ?>
- |
+
@@ -235,4 +228,4 @@ class="element-invisible">
-
+
diff --git a/src/administrator/views/roles/view.html.php b/src/administrator/views/roles/view.html.php
index eda0045..9767b1d 100755
--- a/src/administrator/views/roles/view.html.php
+++ b/src/administrator/views/roles/view.html.php
@@ -4,7 +4,7 @@
* @version CVS: 1.0.0
* @package Com_Subusers
* @author Techjoomla
- * @copyright Copyright (C) 2015. All rights reserved.
+ * @copyright Copyright (C) 2005 - 2014. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access
@@ -128,6 +128,12 @@ protected function addToolbar()
}
}
+ if ($canDo->get('core.delete'))
+ {
+ JToolbarHelper::deleteList('JGLOBAL_CONFIRM_DELETE', 'roles.delete', 'JTOOLBAR_DELETE');
+ JToolbarHelper::divider();
+ }
+
if ($canDo->get('core.admin'))
{
JToolBarHelper::preferences('com_subusers');
@@ -149,17 +155,15 @@ protected function addToolbar()
}
/**
- * Method to order fields
+ * Method to order fields
*
- * @return void
+ * @return void
*/
protected function getSortFields()
{
return array(
'a.`id`' => JText::_('JGRID_HEADING_ID'),
- 'a.`name`' => JText::_('COM_SUBUSERS_ROLES_NAME'),
- 'a.`ordering`' => JText::_('JGRID_HEADING_ORDERING'),
- 'a.`state`' => JText::_('JSTATUS'),
+ 'a.`name`' => JText::_('COM_SUBUSERS_ROLES_NAME')
);
}
}
diff --git a/src/administrator/views/user/tmpl/edit.php b/src/administrator/views/user/tmpl/edit.php
index 2b7fe11..e191814 100755
--- a/src/administrator/views/user/tmpl/edit.php
+++ b/src/administrator/views/user/tmpl/edit.php
@@ -1,95 +1,56 @@
- * @copyright Copyright (C) 2015. All rights reserved.
+ * @package Subusers
+ *
+ * @author Techjoomla
+ * @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
-// No direct access
-defined('_JEXEC') or die;
-JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
-JHtml::_('behavior.tooltip');
-JHtml::_('behavior.formvalidation');
-JHtml::_('formbehavior.chosen', 'select');
-JHtml::_('behavior.keepalive');
-
-// Import CSS
-$document = JFactory::getDocument();
-$document->addStyleSheet(JPATH_ROOT . 'media/com_subusers/css/edit.css');
-?>
-
+ };
+');
+?>
|