d2dd488eea672277a83b3552d3aff4dbce9deab2
[civicrm-core.git] / templates / CRM / Admin / Page / LabelFormats.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 5 |
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">
29 {ts}You can configure one or more Label Formats for your CiviCRM installation. Label Formats are used when creating mailing labels.{/ts}
30 </div>
31 {if $action eq 1 or $action eq 2 or $action eq 8 or $action eq 16384}
32 {include file="CRM/Admin/Form/LabelFormats.tpl"}
33 {else}
34 <div class="crm-content-block crm-block">
35 {if $rows}
36 <div id="ltype">
37 {strip}
38 <table id="labelFormats" class="row-highlight">
39 <thead>
40 <tr class="columnheader">
41 <th>{ts}Name{/ts}</th>
42 <th>{ts}Used for{/ts}</th>
43 <th>{ts}Order{/ts}</th>
44 <th>{ts}Grouping{/ts}</th>
45 <th>{ts}Default?{/ts}</th>
46 <th>{ts}Reserved?{/ts}</th>
47 <th></th>
48 </tr>
49 </thead>
50 {foreach from=$rows item=row}
51 <tr id="row_{$row.id}" class="crm-labelFormat {cycle values="odd-row,even-row"} {$row.class}">
52 <td class="crm-labelFormat-name">{$row.label}</td>
53 <td class="crm-labelFormat-name">{$row.groupName}</td>
54 <td class="crm-labelFormat-order nowrap">{$row.weight}</td>
55 <td class="crm-labelFormat-description">{$row.grouping}</td>
56 <td class="crm-labelFormat-is_default">{icon condition=$row.is_default}{ts}Default{/ts}{/icon}&nbsp;</td>
57 <td class="crm-labelFormat-is_reserved">{if $row.is_reserved eq 1}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
58 &nbsp;</td>
59 <td>{$row.action|replace:'xx':$row.id}</td>
60 </tr>
61 {/foreach}
62 </table>
63 {/strip}
64
65 <div class="action-link">
66 {crmButton q="action=add&reset=1" id="newLabelFormat" icon="crm-i fa-plus-circle"}{ts}Add Label Format{/ts}{/crmButton}
67 </div>
68 </div>
69 {else}
70 <div class="messages status no-popup">
71 <div class="icon inform-icon"></div>
72 {capture assign=crmURL}{crmURL p='civicrm/admin/labelFormats' q="action=add&reset=1"}{/capture}
73 {ts 1=$crmURL}There are no Label Formats configured. You can<a href='%1'>add one</a>.{/ts}
74 </div>
75 {/if}
76 </div>
77 {/if}