Ian province abbreviation patch - issue 724
[civicrm-core.git] / templates / CRM / Admin / Page / PdfFormats.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
2c4c49ca 3 | CiviCRM version 4.7 |
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 PDF Page Formats *}
6a488035
TO
28{if $action eq 1 or $action eq 2 or $action eq 8}
29 {include file="CRM/Admin/Form/PdfFormats.tpl"}
30{else}
34f0c198
CW
31 <div class="help">
32 {capture assign="messageTemplatesURL"}{crmURL p="civicrm/admin/messageTemplates" q="reset=1"}{/capture}
33 {ts 1=$messageTemplatesURL}You can configure one or more PDF Page Formats for your CiviCRM installation. PDF Page Formats may be assigned to <strong><a href="%1">Message Templates</a></strong> to use when creating PDF letters.{/ts}
34 </div>
6a488035
TO
35{if $rows}
36 <div id="ltype">
37 {strip}
e5e1786f 38 <table id="pdfFormats" class="row-highlight">
6a488035
TO
39 <thead>
40 <tr class="columnheader">
e5e1786f
CW
41 <th>{ts}Name{/ts}</th>
42 <th>{ts}Description{/ts}</th>
6a488035 43 <th >{ts}Default?{/ts}</th>
e5e1786f 44 <th>{ts}Order{/ts}</th>
6a488035
TO
45 <th ></th>
46 </tr>
47 </thead>
48 {foreach from=$rows item=row}
49 <tr id="row_{$row.id}" class="crm-pdfFormat {cycle values="odd-row,even-row"} {$row.class}">
50 <td class="crm-pdfFormat-name">{$row.name}</td>
51 <td class="crm-pdfFormat-description">{$row.description}</td>
52 <td class="crm-pdfFormat-is_default">{if $row.is_default eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}" />{/if}&nbsp;</td>
e5e1786f 53 <td class="crm-pdfFormat-order nowrap">{$row.weight}</td>
6a488035
TO
54 <td>{$row.action|replace:'xx':$row.id}</td>
55 </tr>
56 {/foreach}
57 </table>
58 {/strip}
59 </div>
60{else}
61 <div class="messages status no-popup">
62 <div class="icon inform-icon"></div>
e5e8ab99 63 {ts}None found.{/ts}
6a488035
TO
64 </div>
65{/if}
66 <div class="spacer"></div>
67 <div class="action-link">
f7296a9a
CW
68 {crmButton q="action=add&reset=1" id="newPdfFormat" icon="circle-plus"}{ts}Add PDF Page Format{/ts}{/crmButton}
69 {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="close"}{ts}Done{/ts}{/crmButton}
6a488035
TO
70 </div>
71{/if}