From 261371e18162396e61fb8098e4dab95d27292b6d Mon Sep 17 00:00:00 2001 From: kurund Date: Sat, 27 Jul 2013 22:54:41 +0530 Subject: [PATCH] CRM-13078, whitespace fixes and template cleanup ---------------------------------------- * CRM-13078: Batch Data Entry silently drops 'batch-valid' entries if no contact_id is associated with them http://issues.civicrm.org/jira/browse/CRM-13078 --- templates/CRM/Batch/Form/Entry.tpl | 655 +++++++++++++++-------------- 1 file changed, 347 insertions(+), 308 deletions(-) diff --git a/templates/CRM/Batch/Form/Entry.tpl b/templates/CRM/Batch/Form/Entry.tpl index 423c0288f3..03f5135a97 100644 --- a/templates/CRM/Batch/Form/Entry.tpl +++ b/templates/CRM/Batch/Form/Entry.tpl @@ -24,41 +24,53 @@ +--------------------------------------------------------------------+ *}
-
+
{ts}Click Validate & Process below when you've entered all items for the batch. You can also Save & Continue Later at any time. Go to Administer > Customize Data and Screens > Profiles > Reserved Profiles > to add, remove or change the order of columns.{/ts} -
-{if $batchAmountMismatch} -
-
{ts}Total for amounts entered below does not match the expected batch total.{/ts} -
-
- {$form._qf_Entry_upload_force.html}
-
-{/if} - - - -
{ts}Total amount expected{/ts}{$batchTotal|crmMoney}
{ts}Total amount entered{/ts}{$config->defaultCurrencySymbol}
- -
-
+ {if $batchAmountMismatch} +
+
{ts}Total for amounts entered below does not match the expected batch total.{/ts} +
+
+ {$form._qf_Entry_upload_force.html} +
+
+ {/if} + + + + + + + + + +
{ts}Total amount expected{/ts}{$batchTotal|crmMoney}
{ts}Total amount entered{/ts}{$config->defaultCurrencySymbol}
+ +
+
+
 
+
{ts}Contact{/ts}
+ {if $batchType eq 2 }
 
-
{ts}Contact{/ts}
- {if $batchType eq 2 } -
 
- {/if} - {foreach from=$fields item=field key=fieldName} -
{ts 1=$field.title}Click to copy %1 from row one to all rows.{/ts}{$field.title}
- {/foreach} -
+ {/if} + {foreach from=$fields item=field key=fieldName} +
+ {ts 1=$field.title}Click to copy %1 from row one to all rows.{/ts}{$field.title} +
+ {/foreach} +
{section name='i' start=1 loop=$rowCount} - {assign var='rowNumber' value=$smarty.section.i.index} -
+ {assign var='rowNumber' value=$smarty.section.i.index} +
{* contact select/create option*}
- {include file="CRM/Contact/Form/NewContact.tpl" blockNo = $rowNumber noLabel=true prefix="primary_" newContactCallback="updateContactInfo($rowNumber, 'primary_')"} + {include file="CRM/Contact/Form/NewContact.tpl" blockNo = $rowNumber noLabel=true prefix="primary_" newContactCallback="updateContactInfo($rowNumber, 'primary_')"}
{if $batchType eq 2 } @@ -66,251 +78,270 @@ {/if} {foreach from=$fields item=field key=fieldName} - {assign var=n value=$field.name} - {if ( $fields.$n.data_type eq 'Date') or ( in_array( $n, array( 'thankyou_date', 'cancel_date', 'receipt_date', 'receive_date', 'join_date', 'membership_start_date', 'membership_end_date' ) ) ) } -
{include file="CRM/common/jcalendar.tpl" elementName=$n elementIndex=$rowNumber batchUpdate=1}
- {elseif $n eq 'soft_credit'} -
{include file="CRM/Contact/Form/NewContact.tpl" blockNo = $rowNumber noLabel=true prefix="soft_credit_"}
- {elseif in_array( $fields.$n.html_type, array('Radio', 'CheckBox'))} + {assign var=n value=$field.name} + {if ( $fields.$n.data_type eq 'Date') or ( in_array( $n, array( 'thankyou_date', 'cancel_date', 'receipt_date', 'receive_date', 'join_date', 'membership_start_date', 'membership_end_date' ) ) ) } +
+ + {include file="CRM/common/jcalendar.tpl" elementName=$n elementIndex=$rowNumber batchUpdate=1} + +
+ {elseif $n eq 'soft_credit'} +
+ {include file="CRM/Contact/Form/NewContact.tpl" blockNo = $rowNumber noLabel=true prefix="soft_credit_"} +
+ {elseif in_array( $fields.$n.html_type, array('Radio', 'CheckBox'))}
 {$form.field.$rowNumber.$n.html}
- {else} + {else}
{$form.field.$rowNumber.$n.html}
- {/if} + {/if} {/foreach} -
+
{/section} -
-
{if $fields}{$form._qf_Batch_refresh.html}{/if}   {$form.buttons.html}
+
+
{if $fields}{$form._qf_Batch_refresh.html}{/if}   {$form.buttons.html}
{literal} -- 2.25.1