Commit | Line | Data |
---|---|---|
50998125 KJ |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
fee14197 | 3 | | CiviCRM version 5 | |
50998125 | 4 | +--------------------------------------------------------------------+ |
6b83d5bd | 5 | | Copyright CiviCRM LLC (c) 2004-2019 | |
50998125 KJ |
6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | {* this template is used for adding/editing badge layouts *} | |
27 | <h3>{if $action eq 1}{ts}New Badge Layout{/ts}{elseif $action eq 2}{ts}Edit Badge Layout{/ts}{else}{ts}Delete Badge Layout{/ts}{/if}</h3> | |
28 | <div class="crm-block crm-form-block crm-badge-layout-form-block"> | |
29 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> | |
30 | {if $action eq 8} | |
31 | <div class="messages status no-popup"> | |
32 | <div class="icon inform-icon"></div> | |
636f1cbe | 33 | {ts}This may mean the loss of a substantial amount of data, and the action cannot be undone.{/ts} {ts}Do you want to continue?{/ts} |
50998125 KJ |
34 | </div> |
35 | {else} | |
36 | <table class="form-layout-compressed"> | |
50998125 KJ |
37 | <tr class="crm-badge-layout-form-block-title"> |
38 | <td class="label">{$form.title.label}</td> | |
39 | <td>{$form.title.html}</td> | |
40 | </tr> | |
d34dbf05 KJ |
41 | <tr class="crm-badge-layout-form-block-label_format_name"> |
42 | <td class="label">{$form.label_format_name.label}</td> | |
15cb4bd7 | 43 | <td>{$form.label_format_name.html} {help id="id-label_format"}</td> |
636f1cbe | 44 | </tr> |
50998125 KJ |
45 | <tr class="crm-badge-layout-form-block-description"> |
46 | <td class="label">{$form.description.label}</td> | |
47 | <td>{$form.description.html}</td> | |
48 | </tr> | |
bd4515a9 KJ |
49 | <tr class="crm-badge-layout-form-block-image_1"> |
50 | <td class="label">{$form.image_1.label}</td> | |
51 | <td> | |
07d113b7 PJ |
52 | <table> |
53 | <tr> | |
54 | <td>{$form.image_1.html} | |
44f15f74 | 55 | <a href="#" class="crm-hover-button clear-image" title="{ts}Clear{/ts}"><i class="crm-i fa-times"></i></a> |
4a143c04 | 56 | <br/> |
07d113b7 PJ |
57 | <span class="description">{ts}Click above and select a file by double clicking on it.{/ts}</span> |
58 | </td> | |
59 | <td> | |
60 | {$form.width_image_1.html}<br/>{$form.width_image_1.label} | |
61 | </td> | |
62 | <td> | |
63 | {$form.height_image_1.html}</br>{$form.height_image_1.label} | |
64 | </td> | |
65 | </tr> | |
66cae705 | 66 | </table> |
bd4515a9 KJ |
67 | </td> |
68 | </tr> | |
69 | <tr class="crm-badge-layout-form-block-image_2"> | |
70 | <td class="label">{$form.image_2.label}</td> | |
71 | <td> | |
07d113b7 PJ |
72 | <table> |
73 | <tr> | |
74 | <td>{$form.image_2.html} | |
44f15f74 | 75 | <a href="#" class="crm-hover-button clear-image" title="{ts}Clear{/ts}"><i class="crm-i fa-times"></i></a> |
4a143c04 | 76 | <br/> |
07d113b7 PJ |
77 | <span class="description">{ts}Click above and select a file by double clicking on it.{/ts}</span> |
78 | </td> | |
79 | <td> | |
80 | {$form.width_image_2.html}<br/>{$form.width_image_2.label} | |
81 | </td> | |
82 | <td> | |
83 | {$form.height_image_2.html}<br/>{$form.height_image_2.label} | |
84 | </td> | |
85 | </tr> | |
66cae705 | 86 | </table> |
cf723d2e M |
87 | </td> |
88 | </tr> | |
89 | <tr class="crm-badge-layout-form-block-participant_image"> | |
609df1ed | 90 | <td class="label">{$form.show_participant_image.label}</td> |
cf723d2e M |
91 | <td> |
92 | <table> | |
93 | <tr> | |
609df1ed | 94 | <td>{$form.show_participant_image.html} |
cf723d2e M |
95 | <br/> |
96 | <span class="description">{ts}Select this option if you want to use a contact's image on their name badge.{/ts}</span> | |
97 | </td> | |
98 | <td> | |
99 | {$form.width_participant_image.html}<br/>{$form.width_participant_image.label} | |
100 | </td> | |
101 | <td> | |
102 | {$form.height_participant_image.html}</br>{$form.height_participant_image.label} | |
103 | </td> | |
104 | <td> | |
105 | {$form.alignment_participant_image.html}</br>{$form.alignment_participant_image.label} | |
106 | </td> | |
107 | </tr> | |
66cae705 | 108 | </table> |
bd4515a9 KJ |
109 | </td> |
110 | </tr> | |
636f1cbe | 111 | <tr class="crm-badge-layout-form-block-elements"> |
2c3c9a71 | 112 | <td class="label"><label>{ts}Elements{/ts}</label></td> |
636f1cbe KJ |
113 | <td> |
114 | <table class="form-layout-compressed"> | |
115 | <tr> | |
116 | <td>{ts}Row{/ts}</td> | |
117 | <td>{ts}Label{/ts}</td> | |
118 | <td>{ts}Font{/ts}</td> | |
119 | <td>{ts}Size{/ts}</td> | |
0bc1ba89 | 120 | <td>{ts}Style{/ts}</td> |
636f1cbe KJ |
121 | <td>{ts}Alignment{/ts}</td> |
122 | </tr> | |
123 | {section name='i' start=1 loop=$rowCount} | |
124 | {assign var='rowNumber' value=$smarty.section.i.index} | |
125 | <tr> | |
126 | <td>#{$rowNumber}</td> | |
127 | <td>{$form.token.$rowNumber.html|crmAddClass:twenty}</td> | |
128 | <td>{$form.font_name.$rowNumber.html}</td> | |
129 | <td>{$form.font_size.$rowNumber.html}</td> | |
0bc1ba89 | 130 | <td>{$form.font_style.$rowNumber.html}</td> |
636f1cbe KJ |
131 | <td>{$form.text_alignment.$rowNumber.html}</td> |
132 | </tr> | |
133 | {/section} | |
134 | </table> | |
135 | </td> | |
136 | </tr> | |
636f1cbe KJ |
137 | <tr class="crm-badge-layout-form-block-add_barcode"> |
138 | <td class="label">{$form.add_barcode.label}</td> | |
f38395f7 KJ |
139 | <td>{$form.add_barcode.html} {ts}of type{/ts} |
140 | {$form.barcode_type.html} {ts}on{/ts} {$form.barcode_alignment.html} | |
141 | </td> | |
636f1cbe | 142 | </tr> |
50998125 KJ |
143 | <tr class="crm-badge-layout-form-block-is_active"> |
144 | <td class="label">{$form.is_active.label}</td> | |
145 | <td>{$form.is_active.html}</td> | |
146 | </tr> | |
147 | <tr class="crm-badge-layout-form-block-is_default"> | |
148 | <td class="label">{$form.is_default.label}</td> | |
149 | <td>{$form.is_default.html}</td> | |
150 | </tr> | |
151 | <tr class="crm-badge-layout-form-block-is_reserved"> | |
152 | <td class="label">{$form.is_reserved.label}</td> | |
153 | <td>{$form.is_reserved.html}</td> | |
154 | </tr> | |
155 | </table> | |
156 | {/if} | |
157 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
158 | </div> |