From 237ae89dcb5c195f8b0beba3f15331a4dcafbc7f Mon Sep 17 00:00:00 2001
From: Uma <uma.s@vtiger.com>
Date: Sun, 30 Aug 2020 21:48:24 +0530
Subject: [PATCH] Fixes #1472 Usability with editview fields display is
 addressed

---
 layouts/v7/modules/Inventory/partials/EditViewContents.tpl | 2 +-
 layouts/v7/modules/Users/partials/EditViewContents.tpl     | 2 +-
 layouts/v7/modules/Vtiger/partials/EditViewContents.tpl    | 2 +-
 layouts/v7/skins/contact/style.css                         | 3 +++
 layouts/v7/skins/inventory/style.css                       | 3 +++
 layouts/v7/skins/marketing/style.css                       | 3 +++
 layouts/v7/skins/marketing_and_sales/style.css             | 3 +++
 layouts/v7/skins/project/style.css                         | 3 +++
 layouts/v7/skins/sales/style.css                           | 3 +++
 layouts/v7/skins/support/style.css                         | 3 +++
 layouts/v7/skins/tools/style.css                           | 3 +++
 layouts/v7/skins/vtiger/style.less                         | 3 +++
 12 files changed, 30 insertions(+), 3 deletions(-)

diff --git a/layouts/v7/modules/Inventory/partials/EditViewContents.tpl b/layouts/v7/modules/Inventory/partials/EditViewContents.tpl
index 9f141adc3..4c1290da8 100644
--- a/layouts/v7/modules/Inventory/partials/EditViewContents.tpl
+++ b/layouts/v7/modules/Inventory/partials/EditViewContents.tpl
@@ -140,7 +140,7 @@
                              {/if}
                              &nbsp;&nbsp;
                          </td>
-                         <td class="fieldValue" {if $FIELD_MODEL->getFieldDataType() eq 'boolean'} style="width:25%" {/if} {if $FIELD_MODEL->get('uitype') eq '19'} colspan="3" {assign var=COUNTER value=$COUNTER+1} {/if}>
+                         <td {if in_array($FIELD_MODEL->get('uitype'),array('19','69')) || $FIELD_NAME eq 'description'} class="fieldValue fieldValueWidth80" colspan="3" {assign var=COUNTER value=$COUNTER+1} {else} class="fieldValue" {/if}>
                              {if $FIELD_MODEL->getFieldDataType() eq 'image' || $FIELD_MODEL->getFieldDataType() eq 'file'}
                                  <div class='col-lg-4 col-md-4 redColor'>
                                      {vtranslate('LBL_NOTE_EXISTING_ATTACHMENTS_WILL_BE_REPLACED', $MODULE)}
diff --git a/layouts/v7/modules/Users/partials/EditViewContents.tpl b/layouts/v7/modules/Users/partials/EditViewContents.tpl
index 04d68d61f..2f4a770e3 100644
--- a/layouts/v7/modules/Users/partials/EditViewContents.tpl
+++ b/layouts/v7/modules/Users/partials/EditViewContents.tpl
@@ -63,7 +63,7 @@
                              {/if}
                              &nbsp; {if $FIELD_MODEL->isMandatory() eq true} <span class="redColor">*</span> {/if}
                          </td>
-                         <td class="fieldValue" {if $FIELD_MODEL->getFieldDataType() eq 'boolean'} style="width:25%" {/if} {if $FIELD_MODEL->get('uitype') eq '19'} colspan="3" {assign var=COUNTER value=$COUNTER+1} {/if}>
+                         <td  {if in_array($FIELD_MODEL->get('uitype'),array('19')) || $FIELD_MODEL->get('label') eq 'Signature'} class="fieldValue fieldValueWidth80" colspan="3" {assign var=COUNTER value=$COUNTER+1} {else} class="fieldValue" {/if}>
                              {include file=vtemplate_path($FIELD_MODEL->getUITypeModel()->getTemplateName(),$MODULE)}
                          </td>
                      {/if}
diff --git a/layouts/v7/modules/Vtiger/partials/EditViewContents.tpl b/layouts/v7/modules/Vtiger/partials/EditViewContents.tpl
index 14b730825..bfc4aea7e 100644
--- a/layouts/v7/modules/Vtiger/partials/EditViewContents.tpl
+++ b/layouts/v7/modules/Vtiger/partials/EditViewContents.tpl
@@ -96,7 +96,7 @@
 										&nbsp;{if $FIELD_MODEL->isMandatory() eq true} <span class="redColor">*</span> {/if}
 									</td>
 									{if $FIELD_MODEL->get('uitype') neq '83'}
-										<td class="fieldValue" {if $FIELD_MODEL->getFieldDataType() eq 'boolean'} style="width:25%" {/if} {if ($FIELD_MODEL->get('uitype') eq '19' )|| ($FIELD_MODEL->get('uitype') eq '16')} colspan="3" {assign var=COUNTER value=$COUNTER+1} {/if}>
+										<td {if in_array($FIELD_MODEL->get('uitype'),array('19','69')) || $FIELD_NAME eq 'description' ||  (($FIELD_NAME eq 'recurringtype' or $FIELD_NAME eq 'reminder_time')  && in_array({$MODULE},array('Events','Calendar')))} class="fieldValue fieldValueWidth80"  colspan="3" {assign var=COUNTER value=$COUNTER+1} {elseif $FIELD_MODEL->get('uitype') eq '56'} class="fieldValue checkBoxType" {elseif $isReferenceField eq 'reference' or $isReferenceField eq 'multireference' } class="fieldValue p-t-8" {else}class="fieldValue" {/if}>
 											{include file=vtemplate_path($FIELD_MODEL->getUITypeModel()->getTemplateName(),$MODULE)}
 										</td>
 									{/if}
diff --git a/layouts/v7/skins/contact/style.css b/layouts/v7/skins/contact/style.css
index f3bba03bc..24d6b45e9 100644
--- a/layouts/v7/skins/contact/style.css
+++ b/layouts/v7/skins/contact/style.css
@@ -6145,6 +6145,9 @@ div.tooltip-inner {
   width: 100%;
   display: inline-block;
 }
+.fieldValueWidth80{
+    width:80% !important;
+}
 .input-group-addon {
   line-height: 1.5;
   border-width: thin;
diff --git a/layouts/v7/skins/inventory/style.css b/layouts/v7/skins/inventory/style.css
index ea92f4fcd..2f83710f3 100644
--- a/layouts/v7/skins/inventory/style.css
+++ b/layouts/v7/skins/inventory/style.css
@@ -6145,6 +6145,9 @@ div.tooltip-inner {
   width: 100%;
   display: inline-block;
 }
+.fieldValueWidth80{
+    width:80% !important;
+}
 .input-group-addon {
   line-height: 1.5;
   border-width: thin;
diff --git a/layouts/v7/skins/marketing/style.css b/layouts/v7/skins/marketing/style.css
index 5add96fd9..a871f1d4e 100644
--- a/layouts/v7/skins/marketing/style.css
+++ b/layouts/v7/skins/marketing/style.css
@@ -6145,6 +6145,9 @@ div.tooltip-inner {
   width: 100%;
   display: inline-block;
 }
+.fieldValueWidth80{
+    width:80% !important;
+}
 .input-group-addon {
   line-height: 1.5;
   border-width: thin;
diff --git a/layouts/v7/skins/marketing_and_sales/style.css b/layouts/v7/skins/marketing_and_sales/style.css
index fd6d72018..c6af07c66 100644
--- a/layouts/v7/skins/marketing_and_sales/style.css
+++ b/layouts/v7/skins/marketing_and_sales/style.css
@@ -6139,6 +6139,9 @@ div.tooltip-inner {
   width: 100%;
   display: inline-block;
 }
+.fieldValueWidth80{
+    width:80% !important;
+}
 .input-group-addon {
   line-height: 1.5;
   border-width: thin;
diff --git a/layouts/v7/skins/project/style.css b/layouts/v7/skins/project/style.css
index f64f6842b..2ff149cc9 100644
--- a/layouts/v7/skins/project/style.css
+++ b/layouts/v7/skins/project/style.css
@@ -6145,6 +6145,9 @@ div.tooltip-inner {
   width: 100%;
   display: inline-block;
 }
+.fieldValueWidth80{
+    width:80% !important;
+}
 .input-group-addon {
   line-height: 1.5;
   border-width: thin;
diff --git a/layouts/v7/skins/sales/style.css b/layouts/v7/skins/sales/style.css
index 42026c685..3f89fb5ce 100644
--- a/layouts/v7/skins/sales/style.css
+++ b/layouts/v7/skins/sales/style.css
@@ -6145,6 +6145,9 @@ div.tooltip-inner {
   width: 100%;
   display: inline-block;
 }
+.fieldValueWidth80{
+    width:80% !important;
+}
 .input-group-addon {
   line-height: 1.5;
   border-width: thin;
diff --git a/layouts/v7/skins/support/style.css b/layouts/v7/skins/support/style.css
index c5bb39b23..689338d98 100644
--- a/layouts/v7/skins/support/style.css
+++ b/layouts/v7/skins/support/style.css
@@ -6145,6 +6145,9 @@ div.tooltip-inner {
   width: 100%;
   display: inline-block;
 }
+.fieldValueWidth80{
+    width:80% !important;
+}
 .input-group-addon {
   line-height: 1.5;
   border-width: thin;
diff --git a/layouts/v7/skins/tools/style.css b/layouts/v7/skins/tools/style.css
index 749a55cd2..5a5f0be6e 100644
--- a/layouts/v7/skins/tools/style.css
+++ b/layouts/v7/skins/tools/style.css
@@ -6145,6 +6145,9 @@ div.tooltip-inner {
   width: 100%;
   display: inline-block;
 }
+.fieldValueWidth80{
+    width:80% !important;
+}
 .input-group-addon {
   line-height: 1.5;
   border-width: thin;
diff --git a/layouts/v7/skins/vtiger/style.less b/layouts/v7/skins/vtiger/style.less
index 8ba953509..f64fe595e 100644
--- a/layouts/v7/skins/vtiger/style.less
+++ b/layouts/v7/skins/vtiger/style.less
@@ -6892,6 +6892,9 @@ div.tooltip-inner{
     width: 100%;
     display: inline-block;
 }
+.fieldValueWidth80{
+    width:80% !important;
+}
 .input-group-addon{
     line-height: 1.5;
     border-width: thin;
-- 
GitLab