From 45db73b22919b262af4a522f15c806e81d12ed5f Mon Sep 17 00:00:00 2001 From: Aishwarya Date: Thu, 26 Dec 2019 11:24:58 +0530 Subject: [PATCH] Bug #317 fix: Edge>> Action button alignment is not properly placed as per chrome browser --- .../com_tjucm/site/layouts/list/list.php | 49 ++++++++++++++----- 1 file changed, 37 insertions(+), 12 deletions(-) diff --git a/src/components/com_tjucm/site/layouts/list/list.php b/src/components/com_tjucm/site/layouts/list/list.php index ba61b877..a33b600e 100644 --- a/src/components/com_tjucm/site/layouts/list/list.php +++ b/src/components/com_tjucm/site/layouts/list/list.php @@ -1,10 +1,10 @@ + * @author TechJoomla * @copyright Copyright (c) 2009-2019 TechJoomla. All rights reserved. - * @license GNU General Public License version 2 or later; see LICENSE.txt + * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access @@ -51,7 +51,7 @@ $xmlFormObject = $displayData['xmlFormObject']; $formObject = $displayData['formObject']; $ucmTypeId = $displayData['ucmTypeId']; -$allowDraftSave= $displayData['ucmTypeParams']->allow_draft_save; +$allowDraftSave = $displayData['ucmTypeParams']->allow_draft_save; $appendUrl = ''; $csrf = "&" . Session::getFormToken() . '=1'; @@ -99,7 +99,9 @@ { $class = ($canChange) ? 'active' : 'disabled'; ?> - + state == 1) { @@ -116,16 +118,21 @@ } ?> - + escape($item->id); ?> + { + ?> draft) ? Text::_('COM_TJUCM_DATA_STATUS_DRAFT') : Text::_('COM_TJUCM_DATA_STATUS_SAVE'); ?> field_values)) { foreach ($item->field_values as $key => $fieldValue) @@ -141,13 +148,17 @@ $fieldXml = $formObject->getFieldXml($tjFieldsFieldTable->name); ?> - + created_by == $user->id)) { $field = $formObject->getField($tjFieldsFieldTable->name); $field->setValue($fieldValue); - $layoutToUse = (array_key_exists(ucfirst($tjFieldsFieldTable->type), $fieldLayout)) ? $fieldLayout[ucfirst($tjFieldsFieldTable->type)] : 'field'; + $layoutToUse = ( + array_key_exists( + ucfirst($tjFieldsFieldTable->type), $fieldLayout + ) + ) ? $fieldLayout[ucfirst($tjFieldsFieldTable->type)] : 'field'; $layout = new JLayoutFile($layoutToUse, JPATH_ROOT . '/components/com_tjfields/layouts/fields'); $output = $layout->render(array('fieldXml' => $fieldXml, 'field' => $field)); echo $output; @@ -156,22 +167,36 @@ - + + + - | + | + + - | + | + +