Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-07-14-13-42-39
[civicrm-core.git] / templates / CRM / Block / Add.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 <div id="crm-quick-create" class="crm-container">
27 <form action="{$postURL}" method="post">
28
29 <div class="form-item">
30 <div>
31 <label for="qa_first_name">{ts}First Name:{/ts}</label>
32 </div>
33 <div>
34 <input type="text" name="first_name" id="qa_first_name" class="form-text" maxlength="64" />
35 </div>
36 </div>
37
38 <div class="form-item">
39 <div>
40 <label for="qa_last_name">{ts}Last Name:{/ts}</label>
41 </div>
42 <div>
43 <input type="text" name="last_name" id="qa_last_name" class="form-text required" maxlength="64" />
44 </div>
45 </div>
46
47 <div class="form-item">
48 <div>
49 <label for="qa_email">{ts}Email:{/ts}</label>
50 </div>
51 <div>
52 <input type="text" name="email[1][email]" id="qa_email" class="form-text" maxlength="64" />
53 </div>
54
55 <input type="hidden" name="email[1][location_type_id]" value="{$primaryLocationType}" />
56 <input type="hidden" name="email[1][is_primary]" value="1" />
57 <input type="hidden" name="ct" value="Individual" />
58 <input type="hidden" name="email_greeting_id" value="{$email_greeting_id}" />
59 <input type="hidden" name="postal_greeting_id" value="{$postal_greeting_id}" />
60 <input type="hidden" name="addressee_id" value="{$addressee_id}" />
61 <input type="hidden" name="qfKey" value="{crmKey name='CRM_Contact_Form_Contact' addSequence=1}" />
62 </div>
63
64 <div class="form-item"><input type="submit" name="_qf_Contact_next" value="{ts}Save{/ts}" class="form-submit" /></div>
65
66 </form>
67 </div>