Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | <div class="batch-update form-item"> | |
11 | <fieldset> | |
f6eedce7 | 12 | <div class="help"> |
6a488035 TO |
13 | {ts}Update field values for each contribution as needed. Click <strong>Update Contributions</strong> below to save all your changes. To set a field to the same value for ALL rows, enter that value for the first contribution and then click the <strong>Copy icon</strong> (next to the column title).{/ts} |
14 | </div> | |
6a488035 TO |
15 | <table class="crm-copy-fields"> |
16 | <thead class="sticky"> | |
17 | <tr class="columnheader"> | |
18 | {foreach from=$readOnlyFields item=fTitle key=fName} | |
19 | <th>{$fTitle}</th> | |
20 | {/foreach} | |
21 | ||
22 | {foreach from=$fields item=field key=fieldName} | |
611910c7 | 23 | <td>{copyIcon name=$field.name title=$field.title}{$field.title}</td> |
6a488035 TO |
24 | {/foreach} |
25 | </tr> | |
26 | </thead> | |
27 | {foreach from=$componentIds item=cid} | |
28 | <tr class="{cycle values="odd-row,even-row"}" entity_id="{$cid}"> | |
29 | {foreach from=$readOnlyFields item=fTitle key=fName} | |
30 | <td>{$contactDetails.$cid.$fName}</td> | |
31 | {/foreach} | |
32 | ||
33 | {foreach from=$fields item=field key=fieldName} | |
34 | {assign var=n value=$field.name} | |
3d927ee7 | 35 | <td class="compressed">{$form.field.$cid.$n.html}</td> |
6a488035 TO |
36 | {/foreach} |
37 | </tr> | |
38 | {/foreach} | |
39 | </tr> | |
40 | </table> | |
41 | <div class="crm-submit-buttons">{if $fields}{$form._qf_Batch_refresh.html}{/if} {$form.buttons.html}</div> | |
42 | </fieldset> | |
43 | </div> | |
44 | ||
45 | {*include batch copy js js file*} | |
46 | {include file="CRM/common/batchCopy.tpl"} |