Commit | Line | Data |
---|---|---|
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 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} | |
38 | {include file="CRM/common/jsortable.tpl"} | |
39 | <table id="pdfFormats" class="display"> | |
40 | <thead> | |
41 | <tr class="columnheader"> | |
42 | <th class="sortable">{ts}Name{/ts}</th> | |
43 | <th id="nosort">{ts}Description{/ts}</th> | |
44 | <th >{ts}Default?{/ts}</th> | |
45 | <th id="order" class="sortable">{ts}Order{/ts}</th> | |
46 | <th class="hiddenElement"></th> | |
47 | <th ></th> | |
48 | </tr> | |
49 | </thead> | |
50 | {foreach from=$rows item=row} | |
51 | <tr id="row_{$row.id}" class="crm-pdfFormat {cycle values="odd-row,even-row"} {$row.class}"> | |
52 | <td class="crm-pdfFormat-name">{$row.name}</td> | |
53 | <td class="crm-pdfFormat-description">{$row.description}</td> | |
54 | <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> | |
55 | <td class="crm-pdfFormat-order nowrap">{$row.order}</td> | |
56 | <td class="order hiddenElement">{$row.weight}</td> | |
57 | <td>{$row.action|replace:'xx':$row.id}</td> | |
58 | </tr> | |
59 | {/foreach} | |
60 | </table> | |
61 | {/strip} | |
62 | </div> | |
63 | {else} | |
64 | <div class="messages status no-popup"> | |
65 | <div class="icon inform-icon"></div> | |
a1c7d42f | 66 | {capture assign=link}href="{crmURL q="action=add&reset=1"}" class="action-item"{/capture} |
34f0c198 | 67 | {ts 1=$link}There are no PDF Page Formats configured. You can <a %1>add one</a>.{/ts} |
6a488035 TO |
68 | </div> |
69 | {/if} | |
70 | <div class="spacer"></div> | |
71 | <div class="action-link"> | |
72 | <a href="{crmURL q="action=add&reset=1"}" id="newPdfFormat" class="button"><span><div class="icon add-icon"></div>{ts}Add PDF Page Format{/ts}</span></a> | |
73 | </div> | |
74 | {/if} |