Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-04-04-00-48-43
[civicrm-core.git] / templates / CRM / Admin / Page / LabelFormats.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
819d0d41 3 | CiviCRM version 4.5 |
6a488035
TO
4 +--------------------------------------------------------------------+
5 | Copyright (C) 2011 Marty Wright |
6 | Licensed to CiviCRM under the Academic Free License version 3.0. |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Affero General Public |
20 | License and the CiviCRM Licensing Exception along |
21 | with this program; if not, contact CiviCRM LLC |
22 | at info[AT]civicrm[DOT]org. If you have questions about the |
23 | GNU Affero General Public License or the licensing of CiviCRM, |
24 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
25 +--------------------------------------------------------------------+
26*}
27{* this template is for configuring label formats *}
28<div class="help">
252708df 29 {ts}You can configure one or more Label Formats for your CiviCRM installation. Label Formats are used when creating mailing labels.{/ts}
6a488035
TO
30</div>
31{if $action eq 1 or $action eq 2 or $action eq 8 or $action eq 16384}
252708df 32 {include file="CRM/Admin/Form/LabelFormats.tpl"}
6a488035
TO
33{else}
34
252708df
KJ
35 {if $rows}
36 <div id="ltype">
37 {strip}
6a488035
TO
38 {include file="CRM/common/jsortable.tpl"}
39 <table id="labelFormats" class="display">
252708df
KJ
40 <thead>
41 <tr class="columnheader">
6a488035 42 <th class="sortable">{ts}Name{/ts}</th>
252708df 43 <th class="sortable">{ts}Used for{/ts}</th>
6a488035 44 <th class="sortable">{ts}Grouping{/ts}</th>
252708df
KJ
45 <th>{ts}Default?{/ts}</th>
46 <th>{ts}Reserved?{/ts}</th>
6a488035
TO
47 <th id="order" class="sortable">{ts}Order{/ts}</th>
48 <th class="hiddenElement"></th>
252708df
KJ
49 <th></th>
50 </tr>
51 </thead>
52 {foreach from=$rows item=row}
53 <tr id="row_{$row.id}" class="crm-labelFormat {cycle values="odd-row,even-row"} {$row.class}">
54 <td class="crm-labelFormat-name">{$row.label}</td>
55 <td class="crm-labelFormat-name">{$row.groupName}</td>
56 <td class="crm-labelFormat-description">{$row.grouping}</td>
57 <td class="crm-labelFormat-is_default">{if $row.is_default eq 1}<img
58 src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}"/>{/if}&nbsp;</td>
59 <td class="crm-labelFormat-is_reserved">{if $row.is_reserved eq 1}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
60 &nbsp;</td>
61 <td class="crm-labelFormat-order nowrap">{$row.order}</td>
62 <td class="order hiddenElement">{$row.weight}</td>
63 <td>{$row.action|replace:'xx':$row.id}</td>
64 </tr>
65 {/foreach}
6a488035 66 </table>
252708df 67 {/strip}
6a488035
TO
68
69 <div class="action-link">
252708df
KJ
70 <a href="{crmURL q="action=add&reset=1"}" id="newLabelFormat" class="button"><span><div
71 class="icon add-icon"></div>{ts}Add Label Format{/ts}</span></a>
72 </div>
73 </div>
74 {else}
6a488035
TO
75 <div class="messages status no-popup">
76 <div class="icon inform-icon"></div>
252708df
KJ
77 {capture assign=crmURL}{crmURL p='civicrm/admin/labelFormats' q="action=add&reset=1"}{/capture}
78 {ts 1=$crmURL}There are no Label Formats configured. You can<a href='%1'>add one</a>.{/ts}
6a488035 79 </div>
252708df 80 {/if}
6a488035 81{/if}