commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / templates / CRM / Contact / Form / Inline / Email.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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 {* This file provides the template for inline editing of emails *}
27 {$form.oplock_ts.html}
28 <table class="crm-inline-edit-form">
29 <tr>
30 <td colspan="5">
31 <div class="crm-submit-buttons">
32 {include file="CRM/common/formButtons.tpl"}
33 </div>
34 </td>
35 </tr>
36 <tr>
37 <td>{ts}Email{/ts}&nbsp;
38 {if $actualBlockCount lt 5 }
39 <span id="add-more-email" title="{ts}click to add more{/ts}"><a class="crm-hover-button action-item add-more-inline" href="#">{ts}add{/ts}</a></span>
40 {/if}
41 </td>
42 <td>{ts}On Hold?{/ts}</td>
43 <td>{ts}Bulk Mailings?{/ts}</td>
44 <td>{ts}Primary?{/ts}</td>
45 <td>&nbsp;</td>
46 </tr>
47 {section name='i' start=1 loop=$totalBlocks}
48 {assign var='blockId' value=$smarty.section.i.index}
49 <tr id="Email_Block_{$blockId}" {if $blockId gt $actualBlockCount}class="hiddenElement"{/if}>
50 <td>{$form.email.$blockId.email.html|crmAddClass:email}&nbsp;{$form.email.$blockId.location_type_id.html}
51 </td>
52 <td align="center">{$form.email.$blockId.on_hold.html}</td>
53 {if $multipleBulk}
54 <td align="center">{$form.email.$blockId.is_bulkmail.html}</td>
55 {else}
56 <td align="center" class="crm-email-bulkmail">{$form.email.$blockId.is_bulkmail.1.html}</td>
57 {/if}
58 <td align="center" class="crm-email-is_primary">{$form.email.$blockId.is_primary.1.html}</td>
59 <td>
60 {if $blockId gt 1}
61 <a title="{ts}Delete Email{/ts}" class="crm-delete-inline crm-hover-button" href="#"><span class="icon delete-icon"></span></a>
62 {/if}
63 </td>
64 </tr>
65 {/section}
66 </table>
67
68 {literal}
69 <script type="text/javascript">
70 CRM.$(function($) {
71 // check first primary radio
72 $('#Email_1_IsPrimary').prop('checked', true );
73 });
74 </script>
75 {/literal}