| 1 | {* |
| 2 | +--------------------------------------------------------------------+ |
| 3 | | CiviCRM version 4.7 | |
| 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 *} |
| 28 | {if $action eq 1 or $action eq 2 or $action eq 8} |
| 29 | {include file="CRM/Admin/Form/PdfFormats.tpl"} |
| 30 | {else} |
| 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> |
| 35 | {if $rows} |
| 36 | <div id="ltype"> |
| 37 | {strip} |
| 38 | <table id="pdfFormats" class="row-highlight"> |
| 39 | <thead> |
| 40 | <tr class="columnheader"> |
| 41 | <th>{ts}Name{/ts}</th> |
| 42 | <th>{ts}Description{/ts}</th> |
| 43 | <th >{ts}Default?{/ts}</th> |
| 44 | <th>{ts}Order{/ts}</th> |
| 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} </td> |
| 53 | <td class="crm-pdfFormat-order nowrap">{$row.weight}</td> |
| 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> |
| 63 | {ts}None found.{/ts} |
| 64 | </div> |
| 65 | {/if} |
| 66 | <div class="spacer"></div> |
| 67 | <div class="action-link"> |
| 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} |
| 70 | </div> |
| 71 | {/if} |