Update version numbers to 4.4 and lint php
[civicrm-core.git] / templates / CRM / Admin / Page / PdfFormats.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
232624b1 3 | CiviCRM version 4.4 |
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 *}
28<div class="help">
29 {capture assign="messageTemplatesURL"}{crmURL p="civicrm/admin/messageTemplates" q="reset=1"}{/capture}
30 {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}
31</div>
32{if $action eq 1 or $action eq 2 or $action eq 8}
33 {include file="CRM/Admin/Form/PdfFormats.tpl"}
34{else}
35
36{if $rows}
37 <div id="ltype">
38 {strip}
39 {include file="CRM/common/jsortable.tpl"}
40 <table id="pdfFormats" class="display">
41 <thead>
42 <tr class="columnheader">
43 <th class="sortable">{ts}Name{/ts}</th>
44 <th id="nosort">{ts}Description{/ts}</th>
45 <th >{ts}Default?{/ts}</th>
46 <th id="order" class="sortable">{ts}Order{/ts}</th>
47 <th class="hiddenElement"></th>
48 <th ></th>
49 </tr>
50 </thead>
51 {foreach from=$rows item=row}
52 <tr id="row_{$row.id}" class="crm-pdfFormat {cycle values="odd-row,even-row"} {$row.class}">
53 <td class="crm-pdfFormat-name">{$row.name}</td>
54 <td class="crm-pdfFormat-description">{$row.description}</td>
55 <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>
56 <td class="crm-pdfFormat-order nowrap">{$row.order}</td>
57 <td class="order hiddenElement">{$row.weight}</td>
58 <td>{$row.action|replace:'xx':$row.id}</td>
59 </tr>
60 {/foreach}
61 </table>
62 {/strip}
63 </div>
64{else}
65 <div class="messages status no-popup">
66 <div class="icon inform-icon"></div>
67 {capture assign=crmURL}{crmURL p='civicrm/admin/pdfFormats' q="action=add&reset=1"}{/capture}
68 {ts 1=$crmURL}There are no PDF Page Formats configured. You can <a href='%1'>add one</a>.{/ts}
69 </div>
70{/if}
71 <div class="spacer"></div>
72 <div class="action-link">
73 <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>
74 </div>
75{/if}