From ddac4a5411cf079f33796bcbfc5b441abda2d0fa Mon Sep 17 00:00:00 2001 From: Aishwarya Date: Wed, 18 Dec 2019 15:16:45 +0530 Subject: [PATCH] Bug#152970 Fix: Front end>> Text area not aligned properly at front end, in list view its occupy longer area. --- src/components/com_tjucm/media/css/tjucm.css | 2 +- .../com_tjucm/site/layouts/detail/fields.php | 34 +++++++++++++------ 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/src/components/com_tjucm/media/css/tjucm.css b/src/components/com_tjucm/media/css/tjucm.css index 36ccdf27..49bcf13d 100644 --- a/src/components/com_tjucm/media/css/tjucm.css +++ b/src/components/com_tjucm/media/css/tjucm.css @@ -7,6 +7,6 @@ margin-left:5px !important; width:200px !important; } -p.wordwrap-for-long-description{ +p.tj-wordwrap{ word-break: break-word; } diff --git a/src/components/com_tjucm/site/layouts/detail/fields.php b/src/components/com_tjucm/site/layouts/detail/fields.php index 4bea8516..180bf14d 100644 --- a/src/components/com_tjucm/site/layouts/detail/fields.php +++ b/src/components/com_tjucm/site/layouts/detail/fields.php @@ -1,10 +1,10 @@ + * @package TJ-UCM + * + * @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 @@ -143,7 +143,12 @@ // Call the JLayout recursively to render fields of ucmsubform $layout = new JLayoutFile('fields', JPATH_ROOT . '/components/com_tjucm/layouts/detail'); - echo $layout->render(array('xmlFormObject' => $ucmSubFormXmlFieldSets, 'formObject' => $ucmSubformFormObject, 'itemData' => $ucmSubFormRecordData, 'isSubForm' => 1)); + + echo $layout->render( + array('xmlFormObject' => $ucmSubFormXmlFieldSets, + 'formObject' => $ucmSubformFormObject, + 'itemData' => $ucmSubFormRecordData, 'isSubForm' => 1) + ); echo "
"; } } @@ -157,7 +162,9 @@ $layoutToUse = (array_key_exists($field->type, $fieldLayout)) ? $fieldLayout[$field->type] : 'field'; ?>
-
label; ?>:
+
+ label; ?>: +
render(array('fieldXml' => $xmlField, 'field' => $field)); + // To align text, textarea and textareacounter fields properly - if($field->type=='Textarea'|| $field->type=='Textareacounter'|| $field->type=='Text'){ - ?> -

type == 'Textarea'|| $field->type == 'Textareacounter'|| $field->type == 'Text') + { + ?> +

+ +

+