Ian province abbreviation patch - issue 724
[civicrm-core.git] / templates / CRM / Contact / Form / Domain.tpl
... / ...
CommitLineData
1{*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
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 template is used for viewing and editing Domain information (for system-generated emails CiviMail-related values) *}
27<div class="crm-block crm-form-block crm-domain-form-block">
28{if !($action eq 4)}
29 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
30{/if}
31 <table class="form-layout-compressed">
32 <tr>
33 <td>
34 {$form.name.label}{help id="domain-name"}<br />
35 {$form.name.html}
36 <br /><span class="description">{ts}The name of the organization or entity which owns this CiviCRM site or domain. This is the default organization contact record.{/ts}</span>
37 </td>
38 </tr>
39 <tr>
40 <td>
41 {$form.description.label}<br />
42 {$form.description.html}
43 <br /><span class="description">{ts}Optional description of this domain (useful for sites with multiple domains).{/ts}</span>
44 </td>
45 </tr>
46 </table>
47 <h3>{ts}System-generated Mail Settings{/ts}</h3>
48 <table class="form-layout-compressed">
49 <tr>
50 <td>
51 {$form.email_name.label} {help id="from-name"}<br />
52 {$form.email_name.html}
53 </td>
54 <td class="">
55 {$form.email_address.label} {help id="from-email"}<br />
56 {$form.email_address.html}
57 <br /><span class="description">(info@example.org)</span>
58 </td>
59 </tr>
60 </table>
61
62 <h3>{ts}Default Organization Address{/ts}</h3>
63 <div class="description">{ts 1=&#123;domain.address&#125;}CiviMail mailings must include the sending organization's address. This is done by putting the %1 token in either the body or footer of the mailing. This token may also be used in regular 'Email - send now' messages and in other Message Templates. The token is replaced by the address entered below when the message is sent.{/ts}</div>
64 {include file="CRM/Contact/Form/Edit/Address.tpl"}
65 <h3>{ts}Organization Contact Information{/ts}</h3>
66 <div class="description">{ts}You can also include general email and/or phone contact information in mailings.{/ts} {help id="additional-contact"}</div>
67 <table class="form-layout-compressed">
68 {* Display the email block *}
69 {include file="CRM/Contact/Form/Edit/Email.tpl"}
70
71 {* Display the phone block *}
72 {include file="CRM/Contact/Form/Edit/Phone.tpl"}
73 </table>
74
75 <div class="spacer"></div>
76
77 {if ($action eq 4)}
78 <div class="action-link">
79 <a href="{crmURL q="action=update&reset=1"}" id="editDomainInfo">&raquo; {ts}Edit Domain Information{/ts}</a>
80 </div>
81 {/if}
82{if !($action eq 4)}
83 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
84{/if}
85</div>
86
87{* phone_2 a email_2 only included in form if CiviMail enabled. *}
88{if array_search('CiviMail', $config->enableComponents)}
89 <script type="text/javascript">
90 cj('a#addEmail,a#addPhone').hide();
91 </script>
92{/if}