{if $rows}
<div id="ltype">
{strip}
- {include file="CRM/common/jsortable.tpl"}
- <table id="labelFormats" class="display">
+ <table id="labelFormats" class="row-highlight">
<thead>
<tr class="columnheader">
- <th class="sortable">{ts}Name{/ts}</th>
- <th class="sortable">{ts}Used for{/ts}</th>
- <th class="sortable">{ts}Grouping{/ts}</th>
+ <th>{ts}Name{/ts}</th>
+ <th>{ts}Used for{/ts}</th>
+ <th>{ts}Order{/ts}</th>
+ <th>{ts}Grouping{/ts}</th>
<th>{ts}Default?{/ts}</th>
<th>{ts}Reserved?{/ts}</th>
- <th id="order" class="sortable">{ts}Order{/ts}</th>
- <th class="hiddenElement"></th>
<th></th>
</tr>
</thead>
<tr id="row_{$row.id}" class="crm-labelFormat {cycle values="odd-row,even-row"} {$row.class}">
<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>
<td class="crm-labelFormat-description">{$row.grouping}</td>
<td class="crm-labelFormat-is_default">{if $row.is_default eq 1}<img
src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}"/>{/if} </td>
<td class="crm-labelFormat-is_reserved">{if $row.is_reserved eq 1}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
</td>
- <td class="crm-labelFormat-order nowrap">{$row.order}</td>
- <td class="order hiddenElement">{$row.weight}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
</tr>
{/foreach}
{strip}
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
- {include file="CRM/common/jsortable.tpl"}
- <table id="options" class="display">
+ <table id="options" class="row-highlight">
<thead>
<tr>
{if $showComponent}
{if $showCounted}<th>{ts}Counted?{/ts}</th>{/if}
{if $showVisibility}<th>{ts}Visibility{/ts}</th>{/if}
<th id="nosort">{ts}Description{/ts}</th>
- <th id="order">{ts}Order{/ts}</th>
+ <th>{ts}Order{/ts}</th>
{if $showIsDefault}<th>{ts}Default{/ts}</th>{/if}
<th>{ts}Reserved{/ts}</th>
<th>{ts}Enabled?{/ts}</th>
- <th class="hiddenElement"></th>
<th></th>
</tr>
</thead>
{/if}
{if $showVisibility}<td class="crm-admin-visibility_label">{$row.visibility_label}</td>{/if}
<td class="crm-admin-options-description crm-editable" data-field="description" data-type="textarea">{$row.description}</td>
- <td class="nowrap crm-admin-options-order">{$row.order}</td>
+ <td class="nowrap crm-admin-options-order">{$row.weight}</td>
{if $showIsDefault}
<td class="crm-admin-options-is_default" align="center">{if $row.is_default eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}" />{/if} </td>
{/if}
<td class="crm-admin-options-is_reserved">{if $row.is_reserved eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td class="crm-admin-options-is_active" id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
- <td class="order hiddenElement">{$row.weight}</td>
</tr>
{/foreach}
</tbody>
{if $rows}
<div id="ltype">
{strip}
- {include file="CRM/common/jsortable.tpl"}
- <table id="pdfFormats" class="display">
+ <table id="pdfFormats" class="row-highlight">
<thead>
<tr class="columnheader">
- <th class="sortable">{ts}Name{/ts}</th>
- <th id="nosort">{ts}Description{/ts}</th>
+ <th>{ts}Name{/ts}</th>
+ <th>{ts}Description{/ts}</th>
<th >{ts}Default?{/ts}</th>
- <th id="order" class="sortable">{ts}Order{/ts}</th>
- <th class="hiddenElement"></th>
+ <th>{ts}Order{/ts}</th>
<th ></th>
</tr>
</thead>
<td class="crm-pdfFormat-name">{$row.name}</td>
<td class="crm-pdfFormat-description">{$row.description}</td>
<td class="crm-pdfFormat-is_default">{if $row.is_default eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}" />{/if} </td>
- <td class="crm-pdfFormat-order nowrap">{$row.order}</td>
- <td class="order hiddenElement">{$row.weight}</td>
+ <td class="crm-pdfFormat-order nowrap">{$row.weight}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
</tr>
{/foreach}
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
{include file="CRM/common/crmeditable.tpl"}
- {include file="CRM/common/jsortable.tpl"}
- <table class="display">
+ <table class="row-highlight">
<thead>
<tr>
<th>
<th>
{ts}Value{/ts}
</th>
- <th id="nosort">{ts}Description{/ts}</th>
- <th id="order" class="sortable">{ts}Order{/ts}</th>
+ <th>{ts}Description{/ts}</th>
+ <th>{ts}Order{/ts}</th>
<th>{ts}Reserved{/ts}</th>
<th>{ts}Enabled?{/ts}</th>
<th></th>
- <th class="hiddenElement"></th>
</tr>
</thead>
{foreach from=$rows item=row}
<td class="crm-admin-options-label crm-editable" data-field="label">{$row.label}</td>
<td class="crm-admin-options-value">{$row.value}</td>
<td class="crm-admin-options-description">{$row.description}</td>
- <td class="nowrap crm-admin-options-order">{$row.order}</td>
+ <td class="nowrap crm-admin-options-order">{$row.weight}</td>
<td class="crm-admin-options-is_reserved">{if $row.is_reserved eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td class="crm-admin-options-is_active" id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
- <td class="order hiddenElement">{$row.weight}</td>
</tr>
{/foreach}
</table>
{strip}
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
- {include file="CRM/common/jsortable.tpl"}
- <table id="options" class="display">
+ <table id="options" class="row-highlight">
<thead>
<tr>
<th>{ts}Field Label{/ts}</th>
<th>{ts}Data Type{/ts}</th>
<th>{ts}Field Type{/ts}</th>
- <th id="order" class="sortable">{ts}Order{/ts}</th>
+ <th>{ts}Order{/ts}</th>
<th>{ts}Req?{/ts}</th>
<th>{ts}Searchable?{/ts}</th>
<th>{ts}Enabled?{/ts}</th>
<th></th>
- <th class="hiddenElement"></th>
</tr>
</thead>
<tbody>
<td><span class="crm-editable crmf-label">{$row.label}</span></td>
<td>{$row.data_type}</td>
<td>{$row.html_type}</td>
- <td class="nowrap">{$row.order}</td>
+ <td class="nowrap">{$row.weight}</td>
<td>{if $row.is_required eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{if $row.is_searchable eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
- <td class="order hiddenElement">{$row.weight}</td>
</tr>
{/foreach}
</tbody>
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
{include file="CRM/common/crmeditable.tpl"}
- {include file="CRM/common/jsortable.tpl"}
- <table id="options" class="display">
+ <table id="options" class="row-highlight">
<thead>
<tr>
<th>{ts}Set{/ts}</th>
<th>{ts}Enabled?{/ts}</th>
<th>{ts}Used For{/ts}</th>
<th>{ts}Type{/ts}</th>
- <th id="order" class="sortable">{ts}Order{/ts}</th>
+ <th>{ts}Order{/ts}</th>
<th>{ts}Style{/ts}</th>
<th></th>
- <th class='hiddenElement'></th>
</tr>
</thead>
<tbody>
<td id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{if $row.extends eq 'Contact'}{ts}All Contact Types{/ts}{else}{$row.extends_display}{/if}</td>
<td>{$row.extends_entity_column_value}</td>
- <td class="nowrap">{$row.order}</td>
+ <td class="nowrap">{$row.weight}</td>
<td>{$row.style_display}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
- <td class="order hiddenElement">{$row.weight}</td>
</tr>
{/foreach}
</tbody>
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
{include file="CRM/common/crmeditable.tpl"}
- {include file="CRM/common/jsortable.tpl"}
- <table id="options" class="display">
+ <table id="options" class="row-highlight">
<thead>
<tr>
<th>{ts}Membership{/ts}</th>
<th>{ts}Related{/ts}</th>
<th>{ts}Max{/ts}</th>
<th>{ts}Visibility{/ts}</th>
- <th id="order" class="sortable">{ts}Order{/ts}</th>
+ <th>{ts}Order{/ts}</th>
<th>{ts}Enabled?{/ts}</th>
<th></th>
- <th class="hiddenElement"></th>
</tr>
</thead>
{foreach from=$rows item=row}
<td class="crm-membership-type-relationship_type_name">{$row.relationshipTypeName}</td>
<td class="crm-membership-type-max_related" align="right">{$row.maxRelated}</td>
<td class="crm-membership-type-visibility">{$row.visibility}</td>
- <td class="nowrap crm-membership_type-order">{$row.order}</td>
+ <td class="nowrap crm-membership_type-order">{$row.weight}</td>
<td class="crm-membership-type-status_{$row.id}" id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
- <td class="order hiddenElement">{$row.weight}</td>
</tr>
{/foreach}
</table>
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
{include file="CRM/common/crmeditable.tpl"}
- {include file="CRM/common/jsortable.tpl"}
- <table id="options" class="display">
+ <table id="options" class="row-highlight">
<thead>
<tr>
<th>{ts}Field Label{/ts}</th>
<th>{ts}Field Type{/ts}</th>
- <th id="order" class="sortable">{ts}Order{/ts}</th>
+ <th>{ts}Order{/ts}</th>
<th>{ts}Req?{/ts}</th>
<th>{ts}Enabled?{/ts}</th>
<th>{ts}Active On{/ts}</th>
<th>{ts}Expire On{/ts}</th>
- <th id="nosort">{ts}Price{/ts}</th>
+ <th>{ts}Price{/ts}</th>
<th></th>
- <th class="hiddenElement"></th>
</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}">
<td class="crm-editable" data-field="label">{$row.label}</td>
<td>{$row.html_type}</td>
- <td class="nowrap">{$row.order}</td>
+ <td class="nowrap">{$row.weight}</td>
<td>{if $row.is_required eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{if $row.active_on}{$row.active_on|date_format:"%Y-%m-%d %T"}{/if}</td>
<td>{if $row.expire_on}{$row.expire_on|date_format:"%Y-%m-%d %T"}{/if}</td>
<td>{if $row.html_type eq "Text / Numeric Quantity"}{$row.price|crmMoney}{else}<a href="{crmURL p="civicrm/admin/price/field/option" q="action=browse&reset=1&sid=$sid&fid=$fid"}">{if $isReserved}{ts}View Price Options{/ts}{else}{ts}Edit Price Options{/ts}{/if}</a>{/if}</td>
<td class="field-action">{$row.action|replace:'xx':$row.id}</td>
- <td class="order hiddenElement">{$row.weight}</td>
</tr>
{/foreach}
</table>
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
{include file="CRM/common/crmeditable.tpl"}
- {include file="CRM/common/jsortable.tpl"}
- <table id="options" class="display">
+ <table id="options" class="row-highlight">
<thead>
<tr>
<th>{ts}Option Label{/ts}</th>
<th>{ts}Option Amount{/ts}</th>
<th>{ts}Default{/ts}</th>
<th>{ts}Financial Type{/ts}</th>
- <th id="order" class="sortable">{ts}Order{/ts}</th>
+ <th>{ts}Order{/ts}</th>
<th>{ts}Enabled?{/ts}</th>
<th></th>
- <th class="hiddenElement"></th>
</tr>
</thead>
{foreach from=$customOption item=row}
<td class="nowrap crm-price-option-order">{$row.weight}</td>
<td id="row_{$row.id}_status" class="crm-price-option-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
- <td class="order hiddenElement">{$row.weight}</td>
</tr>
{/foreach}
</tbody>
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
{include file="CRM/common/crmeditable.tpl"}
- {include file="CRM/common/jsortable.tpl"}
- <table id="options" class="display">
+ <table id="options" class="row-highlight">
<thead>
<tr>
<th>{ts}Label{/ts}</th>
<th>{ts}URL{/ts}</th>
- <th id="nosort">{ts}Description{/ts}</th>
- <th id="order" class="sortable">{ts}Order{/ts}</th>
+ <th>{ts}Description{/ts}</th>
+ <th>{ts}Order{/ts}</th>
{if $showIsDefault}
<th>{ts}Default{/ts}</th>
{/if}
<td class="crm-report-optionList-label crm-editable" data-field="label">{$row.label}</td>
<td class="crm-report-optionList-value">{$row.value}</td>
<td class="crm-report-optionList-description">{$row.description}</td>
- <td class="nowrap crm-report-optionList-order">{$row.order}</td>
+ <td class="nowrap crm-report-optionList-order">{$row.weight}</td>
{if $showIsDefault}
<td class="crm-report-optionList-default_value">{$row.default_value}</td>
{/if}
<td class="crm-report-optionList-is_active" id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td class="crm-report-optionList-component_name">{$row.component_name}</td>
<td class="crm-report-optionList-action">{$row.action}</td>
- <td class="order hiddenElement">{$row.weight}</td>
</tr>
{/foreach}
</table>
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
{include file="CRM/common/crmeditable.tpl"}
- {include file="CRM/common/jsortable.tpl"}
- <table id="options" class="display">
+ <table id="options" class="row-highlight">
<thead>
<tr>
<th>{ts}Field Name{/ts}</th>
<th>{ts}Searchable?{/ts}</th>
<th>{ts}In Selector?{/ts}</th>
{/if}
- <th id="order" class="sortable">{ts}Order{/ts}</th>
+ <th>{ts}Order{/ts}</th>
<th>{ts}Required{/ts}</th>
<th>{ts}View Only{/ts}</th>
<th>{ts}Reserved{/ts}</th>
<th></th>
- <th class="hiddenElement"></th>
</tr>
</thead>
{foreach from=$ufField item=row}
<td class="crmf-is_searchable">{if $row.is_searchable eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td class="crmf-in_selector">{if $row.in_selector eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
{/if}
- <td class="nowrap">{$row.order}</td>
+ <td class="nowrap">{$row.weight}</td>
<td class="crmf-is_required">{if $row.is_required eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{if $row.is_view eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{if $row.is_reserved eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
- <td class="order hiddenElement">{$row.weight}</td>
</tr>
{/foreach}
</table>
// for date sorting see http://wiki.civicrm.org/confluence/display/CRMDOC/Sorting+Date+Fields+in+dataTables+Widget
var useAjax = {/literal}{if $useAjax}1{else}0{/if}{literal};
- var sortEnabled = true;
var sourceUrl = '';
var useClass = 'display';
sortColumn += '[' + count + ', "asc" ],';
}
sortId = getRowId(tdObject, $(this).attr('id') +' hiddenElement' );
- sortEnabled = true;
columns += '{ "render": function ( data, type, row ) { return "<div style=\'display:none\'>"+ data +"</div>" + row[sortId] ; }, "targets": sortColumn,"bUseRendered": false},';
break;
case 'nosort':
"asStripClasses" : [ "odd-row", "even-row" ],
"bAutoWidth" : false,
"aoColumns" : columns,
- "bSort" : sortEnabled,
+ "bSort" : true,
"oLanguage":{"sEmptyTable" : noRecordFoundMsg,
"sZeroRecords" : noRecordFoundMsg }
});