Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
fee14197 | 3 | | CiviCRM version 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 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> | |
e52d8c19 | 35 | <div class="crm-content-block crm-block"> |
6a488035 TO |
36 | {if $rows} |
37 | <div id="ltype"> | |
38 | {strip} | |
e5e1786f | 39 | <table id="pdfFormats" class="row-highlight"> |
6a488035 TO |
40 | <thead> |
41 | <tr class="columnheader"> | |
e5e1786f CW |
42 | <th>{ts}Name{/ts}</th> |
43 | <th>{ts}Description{/ts}</th> | |
6a488035 | 44 | <th >{ts}Default?{/ts}</th> |
e5e1786f | 45 | <th>{ts}Order{/ts}</th> |
6a488035 TO |
46 | <th ></th> |
47 | </tr> | |
48 | </thead> | |
49 | {foreach from=$rows item=row} | |
50 | <tr id="row_{$row.id}" class="crm-pdfFormat {cycle values="odd-row,even-row"} {$row.class}"> | |
51 | <td class="crm-pdfFormat-name">{$row.name}</td> | |
52 | <td class="crm-pdfFormat-description">{$row.description}</td> | |
53 | <td class="crm-pdfFormat-is_default">{if $row.is_default eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}" />{/if} </td> | |
e5e1786f | 54 | <td class="crm-pdfFormat-order nowrap">{$row.weight}</td> |
6a488035 TO |
55 | <td>{$row.action|replace:'xx':$row.id}</td> |
56 | </tr> | |
57 | {/foreach} | |
58 | </table> | |
59 | {/strip} | |
60 | </div> | |
61 | {else} | |
62 | <div class="messages status no-popup"> | |
63 | <div class="icon inform-icon"></div> | |
e5e8ab99 | 64 | {ts}None found.{/ts} |
6a488035 TO |
65 | </div> |
66 | {/if} | |
67 | <div class="spacer"></div> | |
68 | <div class="action-link"> | |
80bc2820 AH |
69 | {crmButton q="action=add&reset=1" id="newPdfFormat" icon="plus-circle"}{ts}Add PDF Page Format{/ts}{/crmButton} |
70 | {crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton} | |
6a488035 TO |
71 | </div> |
72 | {/if} | |
71d7100c | 73 | </div> |