CRM-13863 - Get rid of double title for forms that use popups
[civicrm-core.git] / templates / CRM / Admin / Page / Options.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
819d0d41 3 | CiviCRM version 4.5 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
6a488035
TO
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
6c2473d5
CW
27{if empty($gName)}
28 {include file="CRM/Admin/Page/OptionGroup.tpl"}
29
30{elseif $action eq 1 or $action eq 2 or $action eq 8}
6a488035
TO
31 {include file="CRM/Admin/Form/Options.tpl"}
32{else}
33
34<div id="help">
35 {if $gName eq "gender"}
36 {ts}CiviCRM is pre-configured with standard options for individual gender (e.g. Male, Female, Transgender). You can use this page to customize these options and add new options as needed for your installation.{/ts}
37 {elseif $gName eq "individual_prefix"}
38 {ts}CiviCRM is pre-configured with standard options for individual contact prefixes (e.g. Ms., Mr., Dr. etc.). You can use this page to customize these options and add new ones as needed for your installation.{/ts}
39 {elseif $gName eq "mobile_provider"}
40 {ts}When recording mobile phone numbers for contacts, it may be useful to include the Mobile Phone Service Provider (e.g. Cingular, Sprint, etc.). CiviCRM is installed with the most commonly encountered service providers. Administrators may define as many additional providers as needed.{/ts}
41 {elseif $gName eq "instant_messenger_service"}
42 {ts}When recording Instant Messenger (IM) 'screen names' for contacts, it is useful to include the IM Service Provider (e.g. AOL, Yahoo, etc.). CiviCRM is installed with the most commonly encountered service providers. Administrators may define as many additional providers as needed.{/ts}
43 {elseif $gName eq "individual_suffix"}
44 {ts}CiviCRM is pre-configured with standard options for individual contact name suffixes (e.g. Jr., Sr., II etc.). You can use this page to customize these options and add new ones as needed for your installation.{/ts}
45 {elseif $gName eq "activity_type"}
46 {ts}Activities are 'interactions with contacts' which you want to record and track. This list is sorted by component and then by weight within the component.{/ts} {help id='id-activity-types'}
47 {elseif $gName eq "payment_instrument"}
48 {ts}You may choose to record the payment method used for each contribution and fee. Reserved payment methods are required - you may modify their labels but they can not be deleted (e.g. Check, Credit Card, Debit Card). If your site requires additional payment methods, you can add them here. You can associate each payment method with a Financial Account which specifies where the payment is going (e.g. a bank account for checks and cash).{/ts}
49 {elseif $gName eq "accept_creditcard"}
50 {ts}This page lists the credit card options that will be offered to contributors using your Online Contribution pages. You will need to verify which cards are accepted by your chosen Payment Processor and update these entries accordingly.{/ts}<br /><br />
51 {ts}IMPORTANT: This page does NOT control credit card/payment method choices for sites and/or contributors using the PayPal Express service (e.g. where billing information is collected on the Payment Processor's website).{/ts}
52 {elseif $gName eq "acl_role"}
39288b99 53 {capture assign=docLink}{docURL page="user/current/initial-set-up/permissions-and-access-control/" text="Access Control Documentation"}{/capture}
6a488035
TO
54 {capture assign=aclURL}{crmURL p='civicrm/acl' q='reset=1'}{/capture}
55 {capture assign=erURL}{crmURL p='civicrm/acl/entityrole' q='reset=1'}{/capture}
56 {ts 1=$docLink}ACLs allow you control access to CiviCRM data. An ACL consists of an <strong>Operation</strong> (e.g. 'View' or 'Edit'), a <strong>set of data</strong> that the operation can be performed on (e.g. a group of contacts), and a <strong>Role</strong> that has permission to do this operation. Refer to the %1 for more info.{/ts}<br /><br />
57 {ts 1=$aclURL 2=$erURL}You can add or modify your ACL Roles below. You can create ACL&rsquo;s and grant permission to roles <a href='%1'>here</a>... and you can assign role(s) to CiviCRM contacts who are users of your site <a href='%2'>here</a>.{/ts}
58 {elseif $gName eq 'event_type'}
59 {ts}Use Event Types to categorize your events. Event feeds can be filtered by Event Type and participant searches can use Event Type as a criteria.{/ts}
60 {elseif $gName eq 'participant_role'}
61 {ts}Define participant roles for events here (e.g. Attendee, Host, Speaker...). You can then assign roles and search for participants by role.{/ts}
62 {elseif $gName eq 'participant_status'}
63 {ts}Define statuses for event participants here (e.g. Registered, Attended, Cancelled...). You can then assign statuses and search for participants by status.{/ts} {ts}"Counted?" controls whether a person with that status is counted as participant for the purpose of controlling the Maximum Number of Participants.{/ts}
64 {elseif $gName eq 'from_email_address'}
65 {ts}By default, CiviCRM uses the primary email address of the logged in user as the FROM address when sending emails to contacts. However, you can use this page to define one or more general Email Addresses that can be selected as an alternative. EXAMPLE: <em>"Client Services" &lt;clientservices@example.org&gt;</em>{/ts}
66 {else}
6c2473d5 67 {ts 1=$gLabel}The existing option choices for %1 group are listed below. You can add, edit or delete them from this screen.{/ts}
6a488035
TO
68 {/if}
69</div>
70
71<div class="crm-content-block crm-block">
72{if $rows}
e2046b33 73{if $isLocked ne 1}
6a488035 74 <div class="action-link">
118e964e 75 <a href="{crmURL p="civicrm/admin/options/$gName" q='action=add&reset=1'}" class="button new-option"><span><div class="icon add-icon"></div>{ts 1=$gLabel}Add %1{/ts}</span></a>
6a488035
TO
76 </div>
77{/if}
78<div id={$gName}>
79 {strip}
80 {* handle enable/disable actions*}
5e7dd082 81 {include file="CRM/common/enableDisableApi.tpl"}
e5e1786f 82 <table id="options" class="row-highlight">
6a488035
TO
83 <thead>
84 <tr>
85 {if $showComponent}
86 <th>{ts}Component{/ts}</th>
87 {/if}
88 <th>
89 {if $gName eq "redaction_rule"}
90 {ts}Match Value or Expression{/ts}
91 {else}
92 {ts}Label{/ts}
93 {/if}
94 </th>
95 {if $gName eq "case_status"}
96 <th>
97 {ts}Status Class{/ts}
98 </th>
99 {/if}
100 <th>
101 {if $gName eq "redaction_rule"}
102 {ts}Replacement{/ts}
103 {elseif $gName eq "activity_type"}
104 {ts}Activity Type ID{/ts}
105 {else}
106 {ts}Value{/ts}
107 {/if}
108 </th>
109 {if $gName eq "payment_instrument"}<th>Account</th>{/if}
110 {if $showCounted}<th>{ts}Counted?{/ts}</th>{/if}
111 {if $showVisibility}<th>{ts}Visibility{/ts}</th>{/if}
112 <th id="nosort">{ts}Description{/ts}</th>
e5e1786f 113 <th>{ts}Order{/ts}</th>
6a488035
TO
114 {if $showIsDefault}<th>{ts}Default{/ts}</th>{/if}
115 <th>{ts}Reserved{/ts}</th>
116 <th>{ts}Enabled?{/ts}</th>
6a488035
TO
117 <th></th>
118 </tr>
119 </thead>
120 <tbody>
121 {foreach from=$rows item=row}
5e7dd082 122 <tr id="option_value-{$row.id}" class="crm-admin-options crm-admin-options_{$row.id} crm-entity {cycle values="odd-row,even-row"}{if NOT $row.is_active} disabled{/if}">
6a488035
TO
123 {if $showComponent}
124 <td class="crm-admin-options-component_name">{$row.component_name}</td>
125 {/if}
5e7dd082 126 <td class="crm-admin-options-label crm-editable" data-field="label">{$row.label}</td>
6a488035
TO
127 {if $gName eq "case_status"}
128 <td class="crm-admin-options-grouping">{$row.grouping}</td>
129 {/if}
130 <td class="crm-admin-options-value">{$row.value}</td>
131 {if $gName eq "payment_instrument"}
132 <td>{$row.financial_account}</td>
133 {/if}
134 {if $showCounted}
135 <td class="yes-no crm-admin-options-filter">{if $row.filter eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Counted{/ts}" />{/if}</td>
136 {/if}
137 {if $showVisibility}<td class="crm-admin-visibility_label">{$row.visibility_label}</td>{/if}
7d644ac8 138 <td class="crm-admin-options-description crm-editable" data-field="description" data-type="textarea">{$row.description}</td>
e5e1786f 139 <td class="nowrap crm-admin-options-order">{$row.weight}</td>
6a488035
TO
140 {if $showIsDefault}
141 <td class="crm-admin-options-is_default" align="center">{if $row.is_default eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}" />{/if}&nbsp;</td>
142 {/if}
143 <td class="crm-admin-options-is_reserved">{if $row.is_reserved eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
144 <td class="crm-admin-options-is_active" id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
145 <td>{$row.action|replace:'xx':$row.id}</td>
6a488035
TO
146 </tr>
147 {/foreach}
148 </tbody>
149 </table>
5e7dd082 150 {include file="CRM/common/crmeditable.tpl"}
6a488035
TO
151 {/strip}
152
6a488035
TO
153</div>
154{else}
155 <div class="messages status no-popup">
e2046b33
CW
156 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
157 {ts}None found.{/ts}
6a488035
TO
158 </div>
159{/if}
e2046b33
CW
160 {if $isLocked ne 1}
161 <div class="action-link">
162 <a href="{crmURL p="civicrm/admin/options/$gName" q='action=add&reset=1'}" class="button new-option"><span><div class="icon add-icon"></div>{ts 1=$gLabel}Add %1{/ts}</span></a>
163 </div>
164 {/if}
6a488035 165</div>
232624b1 166{/if}