Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-07-14-13-42-39
[civicrm-core.git] / templates / CRM / Contact / Form / Test.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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 {* test template for testing ajax *}
27 <script type="text/javascript" src="{crmURL p='civicrm/contact/StateCountryServer' q="set=1&path=civicrm/contact/StateCountryServer"}"></script>
28 <script type="text/javascript" src="{$config->resourceBase}js/Test.js"></script>
29
30 <form id="autoCompleteForm" name="autoCompleteForm">
31
32 {$form.state.label} {$form.state.html}<br />
33 {$form.state_id.label} {$form.state_id.html}<br />
34 {$form.country.label} {$form.country.html}<br />
35 <!--{$form.country_id.label} {$form.country_id.html}<br /> -->
36 <!--
37 Enter a State: <input type="text" id="state" name="state" value="" onkeyup="getWord(this,event);" autocomplete="off" onblur="getWord(this,event);"-->
38 <!--input type="text" id="state" name="state" value="" onkeyup="getWord(this,event);" autocomplete="off"-->
39
40 <!-- Note the autocomplete="off": without it you get errors like;
41 "Permission denied to get property XULElement.selectedIndex..."
42 -->
43 <!--
44 state id: <input type="text" id="state_id" name="state_id" value="" READONLY>
45 <br />
46 Country :<input type="text" id="country" name ="country" READONLY>
47 country id: <input type="text" name="country_id" id="country_id" value="" READONLY>
48 -->