Ian province abbreviation patch - issue 724
[civicrm-core.git] / templates / CRM / Admin / Page / LocationType.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
2c4c49ca 3 | CiviCRM version 4.7 |
6a488035 4 +--------------------------------------------------------------------+
e7112fa7 5 | Copyright CiviCRM LLC (c) 2004-2015 |
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*}
6a488035
TO
26{if $action eq 1 or $action eq 2 or $action eq 8}
27 {include file="CRM/Admin/Form/LocationType.tpl"}
28{else}
60158442
CW
29 <div id="help">
30 {ts}Location types provide convenient labels to differentiate contacts' location(s). Administrators may define as many additional types as appropriate for your constituents (examples might be Main Office, School, Vacation Home...).{/ts}
31 </div>
6a488035 32
e2046b33
CW
33 {if $rows}
34 <div id="ltype">
6a488035
TO
35 {strip}
36 {* handle enable/disable actions*}
4d17a233 37 {include file="CRM/common/enableDisableApi.tpl"}
6a488035
TO
38 {include file="CRM/common/jsortable.tpl"}
39 <table id="options" class="display">
40 <thead>
41 <tr>
42 <th id="sortable">{ts}Name{/ts}</th>
43 <th>{ts}Display Name{/ts}</th>
44 <th>{ts}vCard{/ts}</th>
45 <th id="nosort">{ts}Description{/ts}</th>
46 <th>{ts}Enabled?{/ts}</th>
47 <th>{ts}Default?{/ts}</th>
48 <th></th>
49 </tr>
50 </thead>
51 {foreach from=$rows item=row}
4d17a233 52 <tr id="location_type-{$row.id}" class="{cycle values="odd-row,even-row"} {$row.class} crm-entity {if NOT $row.is_active} disabled{/if}">
e2046b33
CW
53 <td class="crmf-name">{$row.name}</td>
54 <td class="crmf-display_name crm-editable">{$row.display_name}</td>
b633f8bd 55 <td class="crmf-vcard_name crm-editable">{$row.vcard_name}</td>
e2046b33
CW
56 <td class="crmf-description crm-editable">{$row.description}</td>
57 <td id="row_{$row.id}_status" class="crmf-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
58 <td class="crmf-is_default" >{if $row.is_default eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}" />{/if}&nbsp;</td>
6a488035
TO
59 <td>{$row.action|replace:'xx':$row.id}</td>
60 </tr>
61 {/foreach}
62 </table>
63 {/strip}
e2046b33
CW
64 </div>
65 {else}
6a488035 66 <div class="messages status no-popup">
e2046b33
CW
67 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
68 {ts}None found.{/ts}
6a488035 69 </div>
e2046b33
CW
70 {/if}
71 <div class="action-link">
f7296a9a
CW
72 {crmButton q="action=add&reset=1" id="newLocationType" icon="circle-plus"}{ts}Add Option{/ts}{/crmButton}
73 {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
e2046b33 74 </div>
6a488035 75{/if}