2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
11 {ts}Badge Layout screen for creating custom labels{/ts}
14 {if $action eq 1 or $action eq 2 or $action eq 8}
15 {include file="CRM/Badge/Form/Layout.tpl"}
19 <div id="badge-layout" class="crm-content-block crm-block">
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">
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>
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}
41 <td class="crm-badge-layout-is_default">{icon condition=$row.is_default}{ts}Default{/ts}{/icon}
43 <td>{$row.action|replace:'xx':$row.id}</td>
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}
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}