Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
819d0d41 | 3 | | CiviCRM version 4.5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
819d0d41 | 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
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 | {* This file provides the template for inline editing of phones *} | |
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}Phone{/ts} | |
38 | {if $actualBlockCount lt 5 } | |
39 | <span id="add-more-phone" title="{ts}click to add more{/ts}"><a class="crm-link-action add-more-inline">{ts}add{/ts}</a></span> | |
40 | {/if} | |
41 | </td> | |
42 | <td>{ts}Phone Location{/ts}</td> | |
43 | <td>{ts}Phone Type{/ts}</td> | |
44 | <td>{ts}Primary?{/ts}</td> | |
45 | <td> </td> | |
46 | </tr> | |
47 | {section name='i' start=1 loop=$totalBlocks} | |
48 | {assign var='blockId' value=$smarty.section.i.index} | |
49 | <tr id="Phone_Block_{$blockId}" {if $blockId gt $actualBlockCount}class="hiddenElement"{/if}> | |
50 | <td>{$form.phone.$blockId.phone.html} {ts}ext.{/ts} {$form.phone.$blockId.phone_ext.html|crmAddClass:four} </td> | |
51 | <td>{$form.phone.$blockId.location_type_id.html}</td> | |
52 | <td>{$form.phone.$blockId.phone_type_id.html}</td> | |
53 | <td align="center" class="crm-phone-is_primary">{$form.phone.$blockId.is_primary.1.html}</td> | |
54 | <td> | |
55 | {if $blockId gt 1} | |
56 | <a class="crm-delete-inline crm-link-action" title="{ts}delete phone block{/ts}">{ts}delete{/ts}</a> | |
57 | {/if} | |
58 | </td> | |
59 | </tr> | |
60 | {/section} | |
61 | </table> | |
62 | ||
63 | {literal} | |
64 | <script type="text/javascript"> | |
3cc60a06 | 65 | CRM.$(function($) { |
6a488035 TO |
66 | // check first primary radio |
67 | $('#Phone_1_IsPrimary').prop('checked', true ); | |
68 | }); | |
69 | </script> | |
70 | {/literal} |