2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 {* This file provides the template for inline editing of websites *}
27 {$form.oplock_ts.html}
28 <table class="crm-inline-edit-form">
31 <div class="crm-submit-buttons">
32 {include file="CRM/common/formButtons.tpl"}
39 {help id="id-website" file="CRM/Contact/Form/Contact.hlp"}
40 {if $actualBlockCount lt 5 }
41 <span id="add-more-website" title="{ts}click to add more{/ts}"><a class="crm-hover-button action-item add-more-inline" href="#">{ts}add{/ts}</a></span>
44 <td>{ts}Website Type{/ts}</td>
48 {section name='i' start=1 loop=$totalBlocks}
49 {assign var='blockId' value=$smarty.section.i.index}
50 <tr id="Website_Block_{$blockId}" {if $blockId gt $actualBlockCount}class="hiddenElement"{/if}>
51 <td>{$form.website.$blockId.url.html|crmAddClass:url} </td>
52 <td>{$form.website.$blockId.website_type_id.html}</td>
55 <a class="crm-delete-inline crm-hover-button action-item" href="#" title="{ts}Delete Website{/ts}"><span class="icon delete-icon"></span></a>
63 <script type="text/javascript">
65 // error handling / show hideen elements duing form validation
66 $('tr[id^="Website_Block_"]' ).each( function() {
67 if( $(this).find('td:first span').length > 0 ) {
68 $(this).removeClass('hiddenElement');