Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
8c9251b3 | 5 | | Copyright CiviCRM LLC (c) 2004-2018 | |
6a488035 TO |
6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | <div class="batch-update form-item"> | |
27 | <fieldset> | |
f6eedce7 | 28 | <div class="help"> |
6a488035 TO |
29 | {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} |
30 | </div> | |
6a488035 TO |
31 | <table class="crm-copy-fields"> |
32 | <thead class="sticky"> | |
33 | <tr class="columnheader"> | |
34 | {foreach from=$readOnlyFields item=fTitle key=fName} | |
35 | <th>{$fTitle}</th> | |
36 | {/foreach} | |
37 | ||
38 | {foreach from=$fields item=field key=fieldName} | |
39 | <td><img src="{$config->resourceBase}i/copy.png" alt="{ts 1=$field.title}Click to copy %1 from row one to all rows.{/ts}" fname="{$field.name}" class="action-icon" title="{ts}Click here to copy the value in row one to ALL rows.{/ts}" />{$field.title}</td> | |
40 | {/foreach} | |
41 | </tr> | |
42 | </thead> | |
43 | {foreach from=$componentIds item=cid} | |
44 | <tr class="{cycle values="odd-row,even-row"}" entity_id="{$cid}"> | |
45 | {foreach from=$readOnlyFields item=fTitle key=fName} | |
46 | <td>{$contactDetails.$cid.$fName}</td> | |
47 | {/foreach} | |
48 | ||
49 | {foreach from=$fields item=field key=fieldName} | |
50 | {assign var=n value=$field.name} | |
3d927ee7 | 51 | <td class="compressed">{$form.field.$cid.$n.html}</td> |
6a488035 TO |
52 | {/foreach} |
53 | </tr> | |
54 | {/foreach} | |
55 | </tr> | |
56 | </table> | |
57 | <div class="crm-submit-buttons">{if $fields}{$form._qf_Batch_refresh.html}{/if} {$form.buttons.html}</div> | |
58 | </fieldset> | |
59 | </div> | |
60 | ||
61 | {*include batch copy js js file*} | |
62 | {include file="CRM/common/batchCopy.tpl"} |