</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>
<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>
</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>
{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}
{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">
<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">
</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>
</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>
<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>
<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>
<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>
<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>
<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>
</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} </td>
<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>
</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">
</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} {$row.start_action_unit}{if $row.start_action_offset > 1}{ts}(s){/ts}{/if} {$row.start_action_condition} {$row.entityDate}{/if}</td>
</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">
<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>
</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>
</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>
<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>
</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>
</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} {/if}</td>
<td class="nowrap" data-order="{$event.start_date|crmDate:'%Y-%m-%d'}">
<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>
<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>
</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>
</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>
</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>
</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>
<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/>
</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>
<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>