Cleaned-up some more javascript one the admin_view. Changed the admin_view layout. Improved the converion of data. Added a new tabsName field to the admin_fields view.
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 136 of this MVC
|
||||
@build 12th October, 2017
|
||||
@version @update number 141 of this MVC
|
||||
@build 13th October, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage view.html.php
|
||||
@@ -71,7 +71,7 @@ class ComponentbuilderViewAdmin_view extends JViewLegacy
|
||||
}
|
||||
|
||||
// Get Linked view data
|
||||
$this->vxzlinked_components = $this->get('Vxzlinked_components');
|
||||
$this->vxzcustom_import = $this->get('Vxzcustom_import');
|
||||
|
||||
// Set the toolbar
|
||||
$this->addToolBar();
|
||||
@@ -98,12 +98,12 @@ class ComponentbuilderViewAdmin_view extends JViewLegacy
|
||||
// Built the actions for new and existing records.
|
||||
if ($this->refid || $this->ref)
|
||||
{
|
||||
if ($this->canDo->get('core.create') && $isNew)
|
||||
if ($this->canDo->get('admin_view.create') && $isNew)
|
||||
{
|
||||
// We can create the record.
|
||||
JToolBarHelper::save('admin_view.save', 'JTOOLBAR_SAVE');
|
||||
}
|
||||
elseif ($this->canDo->get('core.edit'))
|
||||
elseif ($this->canDo->get('admin_view.edit'))
|
||||
{
|
||||
// We can save the record.
|
||||
JToolBarHelper::save('admin_view.save', 'JTOOLBAR_SAVE');
|
||||
@@ -124,7 +124,7 @@ class ComponentbuilderViewAdmin_view extends JViewLegacy
|
||||
if ($isNew)
|
||||
{
|
||||
// For new records, check the create permission.
|
||||
if ($this->canDo->get('core.create'))
|
||||
if ($this->canDo->get('admin_view.create'))
|
||||
{
|
||||
JToolBarHelper::apply('admin_view.apply', 'JTOOLBAR_APPLY');
|
||||
JToolBarHelper::save('admin_view.save', 'JTOOLBAR_SAVE');
|
||||
@@ -134,24 +134,24 @@ class ComponentbuilderViewAdmin_view extends JViewLegacy
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($this->canDo->get('core.edit'))
|
||||
if ($this->canDo->get('admin_view.edit'))
|
||||
{
|
||||
// We can save the new record
|
||||
JToolBarHelper::apply('admin_view.apply', 'JTOOLBAR_APPLY');
|
||||
JToolBarHelper::save('admin_view.save', 'JTOOLBAR_SAVE');
|
||||
// We can save this record, but check the create permission to see
|
||||
// if we can return to make a new one.
|
||||
if ($this->canDo->get('core.create'))
|
||||
if ($this->canDo->get('admin_view.create'))
|
||||
{
|
||||
JToolBarHelper::custom('admin_view.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
|
||||
}
|
||||
}
|
||||
$canVersion = ($this->canDo->get('core.version') && $this->canDo->get('admin_view.version'));
|
||||
if ($this->state->params->get('save_history', 1) && $this->canDo->get('core.edit') && $canVersion)
|
||||
if ($this->state->params->get('save_history', 1) && $this->canDo->get('admin_view.edit') && $canVersion)
|
||||
{
|
||||
JToolbarHelper::versions('com_componentbuilder.admin_view', $this->item->id);
|
||||
}
|
||||
if ($this->canDo->get('core.create'))
|
||||
if ($this->canDo->get('admin_view.create'))
|
||||
{
|
||||
JToolBarHelper::custom('admin_view.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user