CRM-19958 Fix invalid name of variable subtype
[civicrm-core.git] / templates / CRM / Activity / Form / Task / Batch.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2017 |
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="crm-block crm-form-block crm-activity-task-batch-form-block">
27 <fieldset>
28 <div class="help">
29 {ts}Update field values for each Activities as needed. Click <strong>Update Activities</strong> below to save all your changes. To set a field to the same value for ALL rows, enter that value for the first Activity and then click the <strong>Copy icon</strong> (next to the column title).{/ts}
30 </div>
31 <div class="crm-submit-buttons">{if $fields}{$form._qf_Batch_refresh.html}{/if}{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
32 <table class="crm-copy-fields">
33 <thead class="sticky">
34 <tr class="columnheader">
35 {foreach from=$readOnlyFields item=fTitle key=fName}
36 <th>{$fTitle}</th>
37 {/foreach}
38
39 {foreach from=$fields item=field key=fieldName}
40 <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>
41 {/foreach}
42 </tr>
43 </thead>
44 {foreach from=$componentIds item=activityId}
45 <tr class="{cycle values="odd-row,even-row"}" entity_id="{$activityId}">
46 {foreach from=$readOnlyFields item=fTitle key=fName}
47 <td>{$contactDetails.$activityId.$fName}</td>
48 {/foreach}
49 {foreach from=$fields item=field key=fieldName}
50 {assign var=n value=$field.name}
51 {if $fields.$n.name eq 'activity_date_time' }
52 <td class="compressed">{include file="CRM/common/jcalendar.tpl" elementName=$fieldName elementIndex=$activityId batchUpdate=1}</td>
53 {else}
54 <td class="compressed">{$form.field.$activityId.$n.html}</td>
55 {/if}
56 {/foreach}
57 </tr>
58 {/foreach}
59 </tr>
60 </table>
61 <div class="crm-submit-buttons">{if $fields}{$form._qf_Batch_refresh.html}{/if}{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
62 </fieldset>
63 </div>
64
65 {*include batch copy js js file*}
66 {include file="CRM/common/batchCopy.tpl"}