Swap out button/submit inputs for button elements
[civicrm-core.git] / templates / CRM / Block / Add.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 <div id="crm-quick-create" class="crm-container">
11 <form action="{$postURL}" method="post">
12
13 <div class="form-item">
14 <div>
15 <label for="qa_first_name">{ts}First Name:{/ts}</label>
16 </div>
17 <div>
18 <input type="text" name="first_name" id="qa_first_name" class="form-text" maxlength="64" />
19 </div>
20 </div>
21
22 <div class="form-item">
23 <div>
24 <label for="qa_last_name">{ts}Last Name:{/ts}</label>
25 </div>
26 <div>
27 <input type="text" name="last_name" id="qa_last_name" class="form-text required" maxlength="64" />
28 </div>
29 </div>
30
31 <div class="form-item">
32 <div>
33 <label for="qa_email">{ts}Email:{/ts}</label>
34 </div>
35 <div>
36 <input type="email" name="email[1][email]" id="qa_email" class="form-text" maxlength="64" />
37 </div>
38
39 <input type="hidden" name="email[1][location_type_id]" value="{$primaryLocationType}" />
40 <input type="hidden" name="email[1][is_primary]" value="1" />
41 <input type="hidden" name="ct" value="Individual" />
42 <input type="hidden" name="email_greeting_id" value="{$email_greeting_id}" />
43 <input type="hidden" name="postal_greeting_id" value="{$postal_greeting_id}" />
44 <input type="hidden" name="addressee_id" value="{$addressee_id}" />
45 <input type="hidden" name="qfKey" value="{crmKey name='CRM_Contact_Form_Contact' addSequence=1}" />
46 </div>
47
48 <div class="form-item"><button type="submit" name="_qf_Contact_next" class="crm-button crm-form-submit">{ts}Save{/ts}</button></div>
49
50 </form>
51 </div>