Replace all instances of check.gif appearing in listings
[civicrm-core.git] / templates / CRM / Badge / Page / Layout.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 <div class="help">
11 {ts}Badge Layout screen for creating custom labels{/ts}
12 </div>
13
14 {if $action eq 1 or $action eq 2 or $action eq 8}
15 {include file="CRM/Badge/Form/Layout.tpl"}
16 {else}
17
18 {if $rows}
19 <div id="badge-layout" class="crm-content-block crm-block">
20 {strip}
21 {* handle enable/disable actions*}
22 {include file="CRM/common/enableDisableApi.tpl"}
23 {include file="CRM/common/jsortable.tpl"}
24 <table id="options" class="display">
25 <thead>
26 <tr>
27 <th id="sortable">{ts}Title{/ts}</th>
28 <th id="nosort">{ts}Description{/ts}</th>
29 <th>{ts}Enabled?{/ts}</th>
30 <th>{ts}Default?{/ts}</th>
31 <th></th>
32 </tr>
33 </thead>
34 {foreach from=$rows item=row}
35 <tr id="print_label-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class} crm-badge-layout {if NOT $row.is_active} disabled{/if}">
36 <td class="crm-badge-layout-title crm-editable" data-field="title">{$row.title}</td>
37 <td class="crm-badge-layout-description crm-editable" data-field="description" data-type="textarea">{$row.description}</td>
38 <td id="row_{$row.id}_status" class="crm-badge-layout-is_active">
39 {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}
40 </td>
41 <td class="crm-badge-layout-is_default">{icon condition=$row.is_default}{ts}Default{/ts}{/icon}&nbsp;
42 </td>
43 <td>{$row.action|replace:'xx':$row.id}</td>
44 </tr>
45 {/foreach}
46 </table>
47 {/strip}
48
49 {if $action ne 1 and $action ne 2}
50 <div class="action-link">
51 {crmButton q="action=add&reset=1" id="newbadge-layout" icon="crm-i fa-plus-circle"}{ts}New Badge Layout{/ts}{/crmButton}
52 </div>
53 {/if}
54 </div>
55 {else}
56 <div class="messages status no-popup">
57 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
58 {capture assign=crmURL}{crmURL p='civicrm/admin/badgelayout' q="action=add&reset=1"}{/capture}
59 {ts 1=$crmURL}There are no Badge Layout entered for this Contact. You can<a href='%1'>add one</a>.{/ts}
60 </div>
61 {/if}
62 {/if}