Fix often undefined variable $row.class in tpl tables
authorColeman Watts <coleman@civicrm.org>
Tue, 29 Jun 2021 18:26:13 +0000 (14:26 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 29 Jun 2021 18:26:13 +0000 (14:26 -0400)
33 files changed:
templates/CRM/ACL/Page/ACL.tpl
templates/CRM/ACL/Page/ACLBasic.tpl
templates/CRM/ACL/Page/EntityRole.tpl
templates/CRM/Activity/Form/Selector.tpl
templates/CRM/Activity/Selector/Activity.tpl
templates/CRM/Admin/Page/JobLog.tpl
templates/CRM/Admin/Page/LabelFormats.tpl
templates/CRM/Admin/Page/LocationType.tpl
templates/CRM/Admin/Page/Mapping.tpl
templates/CRM/Admin/Page/OptionGroup.tpl
templates/CRM/Admin/Page/ParticipantStatusType.tpl
templates/CRM/Admin/Page/PaymentProcessor.tpl
templates/CRM/Admin/Page/PaymentProcessorType.tpl
templates/CRM/Admin/Page/PdfFormats.tpl
templates/CRM/Admin/Page/PreferencesDate.tpl
templates/CRM/Admin/Page/RelationshipType.tpl
templates/CRM/Admin/Page/Reminders.tpl
templates/CRM/Badge/Page/Layout.tpl
templates/CRM/Contribute/Page/ContributionType.tpl
templates/CRM/Contribute/Page/ManagePremiums.tpl
templates/CRM/Contribute/Page/PcpUserDashboard.tpl
templates/CRM/Contribute/Page/Premium.tpl
templates/CRM/Custom/Page/Group.tpl
templates/CRM/Event/Page/List.tpl
templates/CRM/Financial/Page/FinancialTypeAccount.tpl
templates/CRM/Mailing/Page/Component.tpl
templates/CRM/Member/Page/MembershipType.tpl
templates/CRM/Price/Page/Field.tpl
templates/CRM/Price/Page/Option.tpl
templates/CRM/Price/Page/Set.tpl
templates/CRM/SMS/Page/Provider.tpl
templates/CRM/UF/Page/Field.tpl
templates/CRM/UF/Page/Group.tpl

index d1e07327ce0aaa6dfc435ca9f9e8ca02cdd3ee5b..302c97a06cd0d4732ab713e440cb5a03e742849f 100644 (file)
@@ -35,7 +35,7 @@
             </thead>
             <tbody>
             {foreach from=$rows item=row key=aclID}
-              <tr id="acl-{$aclID}" class="{cycle values="odd-row,even-row"} {$row.class} crm-acl crm-entity {if NOT $row.is_active} disabled{/if}">
+              <tr id="acl-{$aclID}" class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if} crm-acl crm-entity {if NOT $row.is_active} disabled{/if}">
                 <td class="crm-acl-entity">{$row.entity}</td>
                 <td class="crm-acl-operation" >{$row.operation}</td>
                 <td class="crm-acl-object_name">{$row.object_name}</td>
index 8ecb0eee8a52b3ec189a32da62fd5f0bdfb2df17..f747719e1e011cfc82a146ddbd432b02f4dfda01 100644 (file)
@@ -28,7 +28,7 @@
             <th></th>
         </tr>
         {foreach from=$rows item=row}
-        <tr class="{cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+        <tr class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
           <td>{$row.entity}</td>
           <td>{$row.object_table}</td>
           <td>{$row.action}</td>
index d76a8fc56fcb587893e6dc5ce4712f6e211a7248..9d4fd90107b534de1980883c3aa14ac7dfe90158 100644 (file)
@@ -31,7 +31,7 @@
         </thead>
         <tbody>
         {foreach from=$rows item=row}
-          <tr id="acl_role-{$row.id}" class="{cycle values="odd-row,even-row"} {$row.class} crm-acl_entity_role crm-entity {if NOT $row.is_active} disabled{/if}">
+          <tr id="acl_role-{$row.id}" class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if} crm-acl_entity_role crm-entity {if NOT $row.is_active} disabled{/if}">
             <td class="crm-acl_entity_role-acl_role">{$row.acl_role}</td>
             <td class="crm-acl_entity_role-entity">{$row.entity}</td>
             <td class="crm-acl_entity_role-is_active" id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
index ab1e4f6e10c917753d235fae9399f143012deb22..c8ac5d4ed1c2fb56c19a3e92bb39ffb233df3de1 100644 (file)
@@ -35,7 +35,7 @@
 
   {counter start=0 skip=1 print=false}
   {foreach from=$rows item=row}
-  <tr id='rowid{$row.activity_id}' class="{cycle values="odd-row,even-row"} {$row.class}">
+  <tr id='rowid{$row.activity_id}' class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}">
   {if !$single }
         {if $context eq 'Search' }
           {assign var=cbName value=$row.checkbox}
index 2d866e5b40f55e1ccb76d45b37688fcb80a60d92..ce706a7c7a210f41ebc90a6dad86c820ad63748e 100644 (file)
@@ -34,7 +34,7 @@
 
       {counter start=0 skip=1 print=false}
       {foreach from=$rows item=row}
-      <tr class="{cycle values="odd-row,even-row"} {$row.class} crm-activity crm-activity_status-{$row.activity_status_id} crm-activity-type_{$row.activity_type_id}" id="crm-activity_{$row.activity_id}">
+      <tr class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if} crm-activity crm-activity_status-{$row.activity_status_id} crm-activity-type_{$row.activity_type_id}" id="crm-activity_{$row.activity_id}">
         <td class="crm-activity-type crm-activity-type_{$row.activity_type_id}">{$row.activity_type}</td>
         <td class="crm-activity-subject">{$row.subject}</td>
         <td class="crm-activity-source_contact_name">
index 5e93685a6a2a4df9d0be9fd7749a91b1f954e374..4199bade944b055708717d45f3452e72d1a1e59c 100644 (file)
@@ -36,7 +36,7 @@
             <th >{ts}Command{/ts}/{ts}Job Status{/ts}/{ts}Additional Information{/ts}</th>
         </tr>
         {foreach from=$rows item=row}
-        <tr id="job-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}">
+        <tr id="job-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}">
             <td class="crm-joblog-run_datetime">{$row.run_time}</td>
             <td class="crm-joblog-name">{$row.name}</td>
             <td class="crm-joblog-details">
index e2ddf676bda4a38a86b589499821f5a5c982302a..4a4142f5f80c67ba9e8efa9f1cd4ef0056a6ff71 100644 (file)
@@ -48,7 +48,7 @@
           </tr>
           </thead>
           {foreach from=$rows item=row}
-            <tr id="row_{$row.id}" class="crm-labelFormat {cycle values="odd-row,even-row"} {$row.class}">
+            <tr id="row_{$row.id}" class="crm-labelFormat {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}">
               <td class="crm-labelFormat-name">{$row.label}</td>
               <td class="crm-labelFormat-name">{$row.groupName}</td>
               <td class="crm-labelFormat-order nowrap">{$row.weight}</td>
index 9802054b33457c7f99aca871fc9067561a79966d..80e8b716aa2f7a1deb69b714ad24370f476907a9 100644 (file)
@@ -34,7 +34,7 @@
       </tr>
     </thead>
     {foreach from=$rows item=row}
-    <tr id="location_type-{$row.id}"  data-action="setvalue" class="{cycle values="odd-row,even-row"} {$row.class} crm-entity {if NOT $row.is_active} disabled{/if}">
+    <tr id="location_type-{$row.id}"  data-action="setvalue" class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if} crm-entity {if NOT $row.is_active} disabled{/if}">
         <td class="crmf-name">{$row.name}</td>
         <td class="crmf-display_name crm-editable">{$row.display_name}</td>
         <td class="crmf-vcard_name crm-editable">{if !empty($row.vcard_name)}{$row.vcard_name}{/if}</td>
index 8f34ebc4a5cc3a5642743d7b8429b4bf2afc89ba..d7b3ba0538c01c04a3fd7470fd191b95c4e4d007 100644 (file)
@@ -27,7 +27,7 @@
               <th></th>
             </tr>
             {foreach from=$rows item=row}
-            <tr class="{cycle values="odd-row,even-row"} {$row.class} crm-mapping">
+            <tr class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if} crm-mapping">
                 <td class="crm-mapping-name">{$row.name}</td>
                 <td class="crm-mapping-description">{$row.description}</td>
                 <td class="crm-mapping-mapping_type">{$row.mapping_type}</td>
index ca9abf725160cfb20d62b7fe32b4d19f9a9d14f8..1d72cb849c4ac19bfbec3bd84c1d4c41282c7f79 100644 (file)
@@ -39,7 +39,7 @@
           <th></th>
         </tr>
         {foreach from=$rows item=row}
-        <tr id="optionGroup-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+        <tr id="optionGroup-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
           <td class="crm-admin-optionGroup-title">{if $row.title}{$row.title}{else}( {ts}none{/ts} ){/if}</td>
           <td class="crm-admin-optionGroup-name">{$row.name}</td>
           <td class="crm-admin-optionGroup-is_reserved">{if $row.is_reserved eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
index 273d3b728d53bc45c5eedd41147f9bd9f26fdd2d..a32d84cd41baffd631143be6792f3add0b40fd42 100644 (file)
@@ -29,7 +29,7 @@
         <th></th>
       </thead>
       {foreach from=$rows item=row}
-       <tr id="participant_status_type-{$row.id}" class="crm-entity crm-participant_{$row.id} {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+       <tr id="participant_status_type-{$row.id}" class="crm-entity crm-participant_{$row.id} {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
           <td class="crmf-label crm-editable" data-field="label">{$row.label}</td>
           <td class="crmf-name">{$row.name} ({$row.id})</td>
           <td class="crmf-class {if empty($row.is_reserved)} crm-editable {/if}" data-type="select">{$row.class}</td>
index 2323dffa9c2d1cde2b50d9fd88425b18bf89d891..4e12846cfd8405643e8210ab14e893e4ae48d6f6 100644 (file)
@@ -34,7 +34,7 @@
             <th></th>
         </tr>
         {foreach from=$rows item=row}
-        <tr id="payment_processor-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+        <tr id="payment_processor-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
             <td class="crmf-id center">{$row.id}</td>
             <td class="crmf-test_id center">{$row.test_id}</td>
             <td class="crmf-name">{$row.name}</td>
index 9c1f9b51711cafca2a7a21ef667089922ebd07c2..2340f7e653f4e827c015064121ad11a773d89a9a 100644 (file)
@@ -31,7 +31,7 @@
             <th></th>
         </tr>
         {foreach from=$rows item=row}
-        <tr id="paymentProcessorType-{$row.id}" class="{cycle values="odd-row,even-row"} {$row.class} crm-entity {if NOT $row.is_active} disabled{/if}">
+        <tr id="paymentProcessorType-{$row.id}" class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if} crm-entity {if NOT $row.is_active} disabled{/if}">
           <td class="crm-paymentProcessorType-name">{$row.name}</td>
           <td class="crm-paymentProcessorType-title crm-editable" data-field="title">{$row.title}</td>
             <td class="crm-paymentProcessorType-description">{if isset($row.description)}{$row.description}{/if}</td>
index 063a160ff1d127689e289a86e95bc1d273607fc9..b715a07bca0b9dd2296a5040fc6778ddfd619580 100644 (file)
@@ -47,7 +47,7 @@
         </tr>
         </thead>
         {foreach from=$rows item=row}
-        <tr id="row_{$row.id}" class="crm-pdfFormat {cycle values="odd-row,even-row"} {$row.class}">
+        <tr id="row_{$row.id}" class="crm-pdfFormat {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}">
             <td class="crm-pdfFormat-name">{$row.name}</td>
             <td class="crm-pdfFormat-description">{$row.description}</td>
             <td class="crm-pdfFormat-is_default">{icon condition=$row.is_default}{ts}Default{/ts}{/icon}&nbsp;</td>
index 96f806dbd77e7834328d8144b3607f6b2f57792e..aa39aefd0a2f293b2fbb3bf879d689eb5dc0e83e 100644 (file)
@@ -25,7 +25,7 @@
                 <th ></th>
             </tr>
             {foreach from=$rows item=row}
-            <tr class="{cycle values="odd-row,even-row"} {$row.class}">
+            <tr class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}">
                 <td>{$row.name}</td>
                 <td>{$row.description}</td>
                 <td class="nowrap">{if !$row.date_format}{ts}Default{/ts}{else}{$row.date_format}{/if}</td>
index 974033dba469d9b479c5ae8d92048f5cb3edacc7..f1f5c79bd53853e4a16a5f083168443648096420 100644 (file)
@@ -44,7 +44,7 @@
         </tr>
         </thead>
         {foreach from=$rows item=row}
-        <tr id="relationship_type-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if} crm-relationship">
+        <tr id="relationship_type-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if} crm-relationship">
             <td class="crm-relationship-label_a_b crm-editable" data-field="label_a_b">{$row.label_a_b}</td>
             <td class="crm-relationship-label_b_a crm-editable" data-field="label_b_a">{$row.label_b_a}</td>
             <td class="crm-relationship-contact_type_a_display">
index 39b11de446df2d84f97a8f668a4972b26dd9614b..3a08352e62acf213c3753709cf2eb5dc25358991 100644 (file)
@@ -28,7 +28,7 @@
     </thead>
     {if $rows and is_array($rows)}
       {foreach from=$rows item=row}
-        <tr id="action_schedule-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+        <tr id="action_schedule-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
           <td class="crm-scheduleReminders-title crm-editable" data-field="title">{$row.title}</td>
           <td class="crm-scheduleReminders-value">{$row.entity} - {$row.value}</td>
           <td class="crm-scheduleReminders-description">{if $row.absolute_date}{$row.absolute_date|crmDate}{else}{$row.start_action_offset}&nbsp;{$row.start_action_unit}{if $row.start_action_offset > 1}{ts}(s){/ts}{/if}&nbsp;{$row.start_action_condition}&nbsp;{$row.entityDate}{/if}</td>
index a69b549b34743ce264edd15373539664d27ef015..88bca86ec15a633416224ab4a5a8cc3857267d32 100644 (file)
@@ -32,7 +32,7 @@
           </tr>
           </thead>
           {foreach from=$rows item=row}
-            <tr id="print_label-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class} crm-badge-layout {if NOT $row.is_active} disabled{/if}">
+            <tr id="print_label-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if} crm-badge-layout {if NOT $row.is_active} disabled{/if}">
               <td class="crm-badge-layout-title crm-editable" data-field="title">{$row.title}</td>
               <td class="crm-badge-layout-description crm-editable" data-field="description" data-type="textarea">{$row.description}</td>
               <td id="row_{$row.id}_status" class="crm-badge-layout-is_active">
index 25103e624d3c19f593748c6cff1b573ae89cbdff..8a824542249e921e21e05f7a744bf8343b974eaf 100644 (file)
@@ -32,7 +32,7 @@
             <th></th>
           </thead>
          {foreach from=$rows item=row}
-        <tr id="contribution_type-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+        <tr id="contribution_type-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
           <td>{$row.name}</td>
           <td>{$row.description}</td>
               <td>{$row.accounting_code}</td>
index 6f2d632329917ae2cb3d8c931296b6d9d1bad4c4..f80c43e5dcfb85f8b77c95bd690281240bdc9a59 100644 (file)
@@ -43,7 +43,7 @@
            </tr>
           </thead>
         {foreach from=$rows item=row}
-        <tr id="product-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+        <tr id="product-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
           <td class="crm-contribution-form-block-name crm-editable" data-field="name">{$row.name}</td>
           <td class="crm-contribution-form-block-sku crm-editable" data-field="sku">{$row.sku}</td>
           <td class="crm-contribution-form-block-price">{$row.price|crmMoney}</td>
index 60c47528467ddb85b6660791e07e174fd79ada99..23c59e82830bb249930d5119605bb0d5d503370e 100644 (file)
@@ -25,7 +25,7 @@
   </tr>
 
   {foreach from=$pcpInfo item=row}
-  <tr class="{cycle values="odd-row,even-row"} {$row.class}">
+  <tr class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}">
         <td class="bold"><a href="{crmURL p='civicrm/pcp/info' q="reset=1&id=`$row.pcpId`" a=1}" title="{ts}Preview your Personal Campaign Page{/ts}">{$row.pcpTitle}</a></td>
         <td>{$row.pageTitle}</td>
         <td>{if $row.end_date}{$row.end_date|truncate:10:''|crmDate}{else}({ts}ongoing{/ts}){/if}</td>
index 5dd5aa91579ac900fe81be5a085fc269365f2abf..18a30af042677bc2f869cc2bce1de1397fb169f3 100644 (file)
@@ -27,7 +27,7 @@
             <th></th>
         </tr>
         {foreach from=$rows item=row}
-        <tr class="{cycle values='odd-row,even-row'} {$row.class}{if NOT $row.is_active} disabled{/if}">
+        <tr class="{cycle values='odd-row,even-row'}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
           <td class="crm-contribution-form-block-product_name">{$row.product_name}</td>
           <td class="crm-contribution-form-block-sku">{$row.sku}</td>
           <td class="crm-contribution-form-block-price">{$row.price|crmMoney}</td>
index d430a99f3bac36ded4e2732f09ccdfa28cfbe4e1..2b2b7e6b5b2d7022d757b683e842964de80fb111 100644 (file)
@@ -40,7 +40,7 @@
         </thead>
         <tbody>
         {foreach from=$rows item=row}
-        <tr id="CustomGroup-{$row.id}" data-action="setvalue" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+        <tr id="CustomGroup-{$row.id}" data-action="setvalue" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
           <td>{$row.id}</td>
           <td class="crmf-title crm-editable">{$row.title}</td>
           <td id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
index e4578b1d49270d2e39f2f17287b20f967545d16d..50da60fd8b6d9caf50469bf443b98ad9379cbd1a 100644 (file)
@@ -26,7 +26,7 @@
     </tr>
     </thead>
     {foreach from=$events key=uid item=event}
-      <tr class="{cycle values="odd-row,even-row"} {$row.class}">
+      <tr class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}">
         <td><a href="{crmURL p='civicrm/event/info' q="reset=1&id=`$event.event_id`"}" title="{ts}read more{/ts}"><strong>{$event.title}</strong></a></td>
         <td>{if $event.summary}{$event.summary|purify} (<a href="{crmURL p='civicrm/event/info' q="reset=1&id=`$event.event_id`"}" title="{ts}details...{/ts}">{ts}read more{/ts}...</a>){else}&nbsp;{/if}</td>
         <td class="nowrap" data-order="{$event.start_date|crmDate:'%Y-%m-%d'}">
index 5bc79434833235354eaf17a03d86fe4b585afe1c..c3af8775a1fa6886e956a13eba77cf1a1c68e344 100644 (file)
@@ -33,7 +33,7 @@
           <th></th>
         </thead>
         {foreach from=$rows item=row}
-        <tr id="row_{$row.id}"class="{cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+        <tr id="row_{$row.id}"class="{cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
           <td>{$row.account_relationship}</td>
           <td>{$row.financial_account}</td>
           <td>{$row.accounting_code}</td>
index ee7b47880d792c864adba077fdcdfd57b3c4d5b9..ccc1db657fd3b82f5f853da5352de3604d21b94f 100644 (file)
@@ -29,7 +29,7 @@
         <th></th>
         </thead>
        {foreach from=$rows item=row}
-         <tr id="mailing_component-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+         <tr id="mailing_component-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
            <td class="crm-editable" data-field="name">{$row.name}</td>
            <td>{$row.component_type}</td>
            <td>{$row.subject}</td>
index 04dc38cc7df9ad2cad73e874bd3e784db409b5be..74fff6a6f4b8482224812fb4c833e42f7c2d9a3a 100644 (file)
@@ -37,7 +37,7 @@
       </tr>
       </thead>
       {foreach from=$rows item=row}
-        <tr id="membership_type-{$row.id}" class="crm-entity {cycle values='odd-row,even-row'} {$row.class} crm-membership-type {if NOT $row.is_active} disabled{/if}">
+        <tr id="membership_type-{$row.id}" class="crm-entity {cycle values='odd-row,even-row'}{if !empty($row.class)} {$row.class}{/if} crm-membership-type {if NOT $row.is_active} disabled{/if}">
           <td class="crmf-name crm-editable" data-field="name">{$row.name}</td>
           <td class="crmf-period_type crm-editable" data-type="select">{$row.period_type}</td>
           <td class="crmf-fixed_period_start_day">{$row.fixed_period_start_day}</td>
index 665ab2add5bef1640016862c168df777bb5d5d98..9b6153ec046c6e3bb9d63e47083644f75f5f0663 100644 (file)
@@ -58,7 +58,7 @@
       </tr>
       </thead>
       {foreach from=$priceField key=fid item=row}
-      <tr id="price_field-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+      <tr id="price_field-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
         <td class="crm-editable" data-field="label">{$row.label}</td>
         <td>{$row.html_type_display}</td>
         <td class="nowrap">{$row.weight}</td>
index 0f4a5b079ae6fc3354d8c4889342cdb0b47c61c2..7889a67cd22c30bbc2512fde65d6612ea482db72 100644 (file)
@@ -58,7 +58,7 @@
           </thead>
           <tbody>
           {foreach from=$customOption item=row}
-            <tr id="price_field_value-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+            <tr id="price_field_value-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
               <td class="crm-price-option-label crm-editable" data-field="label">{$row.label}</td>
               <td class="crm-price-option-value">{$row.amount|crmMoney}</td>
               <td class="crm-price-option-non-deductible-amount">{$row.non_deductible_amount|crmMoney}</td>
index e145781fe9ac1aa7ecda1c21313e96b8cccf5624..4b90dce429eec7138c1a1a687ed4820438c46c2a 100644 (file)
@@ -48,7 +48,7 @@
         </tr>
         </thead>
         {foreach from=$rows item=row}
-      <tr id="price_set-{$row.id}" class="crm-entity crm-price-set_{$row.id} {cycle values="even-row,odd-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+      <tr id="price_set-{$row.id}" class="crm-entity crm-price-set_{$row.id} {cycle values="even-row,odd-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
           <td class="crmf-title crm-editable">{$row.title}</td>
           <td class="crmf-extends">{$row.extends}</td>
           <td class="crmf-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
index 9a9deac2c2a177da4e601cc9d6bd0150ca8a5ea1..3ebf7393f7686140766e764494e0070281cbc6b4 100644 (file)
@@ -29,7 +29,7 @@
             <th >{ts}Action{/ts}</th>
         </tr>
         {foreach from=$rows item=row}
-        <tr id="sms_provider-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+        <tr id="sms_provider-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
             <td class="crm-provider-name"><strong>{$row.name}</strong> ({$row.title})<br/>
                 {ts}API Type:{/ts} {$row.api_type}<br/>
                 {ts}API Url:{/ts} {$row.api_url}<br/>
index 75229e7bc671a4f928b6227772b097563503f128..64f0b23ab2ec3fe959102826e004e7af5fbf5f4f 100644 (file)
@@ -42,7 +42,7 @@
             </tr>
             </thead>
             {foreach from=$ufField item=row}
-            <tr id="UFField-{$row.id}" data-action="setvalue" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+            <tr id="UFField-{$row.id}" data-action="setvalue" class="crm-entity {cycle values="odd-row,even-row"}{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
                 <td><span class="crmf-label crm-editable">{$row.label}</span>({$row.field_type})</td>
                 {if in_array("Profile",$otherModules) or in_array("Search Profile",$otherModules) }
                 <td class="crm-editable crmf-visibility" data-type="select">{$row.visibility_display}</td>
index d77ffdede5b624e5347b9f15fcd6a83c3e4b13a5..4fcc269f5d8996bdee58ad156b8e46f9e34ca14c 100644 (file)
@@ -69,7 +69,7 @@
             <tbody>
             {foreach from=$rows item=row}
             {if !$row.is_reserved }
-              <tr id="UFGroup-{$row.id}" data-action="setvalue" class="crm-entity {$row.class}{if NOT $row.is_active} disabled{/if}">
+              <tr id="UFGroup-{$row.id}" data-action="setvalue" class="crm-entity{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
                 <td class="crmf-title crm-editable">{$row.title}</td>
                 <td class="crmf-frontend_title crm-editable">{$row.frontend_title}</td>
                 <td>
             <tbody>
             {foreach from=$rows item=row}
             {if $row.is_reserved}
-              <tr id="UFGroup-{$row.id}" class="crm-entity {$row.class}{if NOT $row.is_active} disabled{/if}">
+              <tr id="UFGroup-{$row.id}" class="crm-entity{if !empty($row.class)} {$row.class}{/if}{if NOT $row.is_active} disabled{/if}">
                 <td>{$row.title}</td>
                 <td>{$row.frontend_title}</td>
                 <td>