fabbf083126b348354a35906d116f538.php
11.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* catalog/recurring_list.twig */
class __TwigTemplate_6ba0eb4142b82cc18e7380fb6a722609 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
yield ($context["header"] ?? null);
yield ($context["column_left"] ?? null);
yield "
<div id=\"content\">
<div class=\"page-header\">
<div class=\"container-fluid\">
<div class=\"pull-right\"><a href=\"";
// line 5
yield ($context["add"] ?? null);
yield "\" data-toggle=\"tooltip\" title=\"";
yield ($context["button_add"] ?? null);
yield "\" class=\"btn btn-primary\"><i class=\"fa fa-plus\"></i></a>
<button type=\"submit\" form=\"form-recurring\" formaction=\"";
// line 6
yield ($context["copy"] ?? null);
yield "\" data-toggle=\"tooltip\" title=\"";
yield ($context["button_copy"] ?? null);
yield "\" class=\"btn btn-default\"><i class=\"fa fa-copy\"></i></button>
<button type=\"button\" data-toggle=\"tooltip\" title=\"";
// line 7
yield ($context["button_delete"] ?? null);
yield "\" class=\"btn btn-danger\" onclick=\"confirm('";
yield ($context["text_confirm"] ?? null);
yield "') ? \$('#form-recurring').submit() : false;\"><i class=\"fa fa-trash-o\"></i></button>
</div>
<h1>";
// line 9
yield ($context["heading_title"] ?? null);
yield "</h1>
<ul class=\"breadcrumb\">
";
// line 11
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(($context["breadcrumbs"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
// line 12
yield " <li><a href=\"";
yield CoreExtension::getAttribute($this->env, $this->source, $context["breadcrumb"], "href", [], "any", false, false, false, 12);
yield "\">";
yield CoreExtension::getAttribute($this->env, $this->source, $context["breadcrumb"], "text", [], "any", false, false, false, 12);
yield "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 14
yield " </ul>
</div>
</div>
<div class=\"container-fluid\">
";
// line 18
if (($context["error_warning"] ?? null)) {
// line 19
yield " <div class=\"alert alert-danger alert-dismissible\"><i class=\"fa fa-exclamation-circle\"></i> ";
yield ($context["error_warning"] ?? null);
yield "
<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button>
</div>
";
}
// line 23
yield " ";
if (($context["success"] ?? null)) {
// line 24
yield " <div class=\"alert alert-success alert-dismissible\"><i class=\"fa fa-check-circle\"></i> ";
yield ($context["success"] ?? null);
yield "
<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button>
</div>
";
}
// line 28
yield " <div class=\"panel panel-default\">
<div class=\"panel-heading\">
<h3 class=\"panel-title\"><i class=\"fa fa-list\"></i> ";
// line 30
yield ($context["text_list"] ?? null);
yield "</h3>
</div>
<div class=\"panel-body\">
<form action=\"";
// line 33
yield ($context["delete"] ?? null);
yield "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-recurring\">
<div class=\"table-responsive\">
<table class=\"table table-bordered table-hover\">
<thead>
<tr>
<td class=\"text-center\" width=\"1\"><input type=\"checkbox\" onclick=\"\$('input[name*=\\'selected\\']').prop('checked', this.checked);\" /></td>
<td class=\"text-left\">";
// line 39
if ((($context["sort"] ?? null) == "pd.name")) {
// line 40
yield " <a href=\"";
yield ($context["sort_name"] ?? null);
yield "\" class=\"";
yield Twig\Extension\CoreExtension::lower($this->env->getCharset(), ($context["order"] ?? null));
yield "\">";
yield ($context["column_name"] ?? null);
yield "</a>
";
} else {
// line 42
yield " <a href=\"";
yield ($context["sort_name"] ?? null);
yield "\">";
yield ($context["column_name"] ?? null);
yield "</a>
";
}
// line 43
yield "</td>
<td class=\"text-right\">";
// line 44
if ((($context["sort"] ?? null) == "p.sort_order")) {
// line 45
yield " <a href=\"";
yield ($context["sort_sort_order"] ?? null);
yield "\" class=\"";
yield Twig\Extension\CoreExtension::lower($this->env->getCharset(), ($context["order"] ?? null));
yield "\">";
yield ($context["column_sort_order"] ?? null);
yield "</a>
";
} else {
// line 47
yield " <a href=\"";
yield ($context["sort_sort_order"] ?? null);
yield "\">";
yield ($context["column_sort_order"] ?? null);
yield "</a>
";
}
// line 48
yield "</td>
<td class=\"text-right\">";
// line 49
yield ($context["column_action"] ?? null);
yield "</td>
</tr>
</thead>
<tbody>
";
// line 53
if (($context["recurrings"] ?? null)) {
// line 54
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(($context["recurrings"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["recurring"]) {
// line 55
yield " <tr>
<td class=\"text-center\">";
// line 56
if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["recurring"], "recurring_id", [], "any", false, false, false, 56), ($context["selected"] ?? null))) {
// line 57
yield " <input type=\"checkbox\" name=\"selected[]\" value=\"";
yield CoreExtension::getAttribute($this->env, $this->source, $context["recurring"], "recurring_id", [], "any", false, false, false, 57);
yield "\" checked=\"checked\" />
";
} else {
// line 59
yield " <input type=\"checkbox\" name=\"selected[]\" value=\"";
yield CoreExtension::getAttribute($this->env, $this->source, $context["recurring"], "recurring_id", [], "any", false, false, false, 59);
yield "\" />
";
}
// line 60
yield "</td>
<td class=\"text-left\">";
// line 61
yield CoreExtension::getAttribute($this->env, $this->source, $context["recurring"], "name", [], "any", false, false, false, 61);
yield "</td>
<td class=\"text-right\">";
// line 62
yield CoreExtension::getAttribute($this->env, $this->source, $context["recurring"], "sort_order", [], "any", false, false, false, 62);
yield "</td>
<td class=\"text-right\"><a href=\"";
// line 63
yield CoreExtension::getAttribute($this->env, $this->source, $context["recurring"], "edit", [], "any", false, false, false, 63);
yield "\" data-toggle=\"tooltip\" title=\"";
yield ($context["button_edit"] ?? null);
yield "\" class=\"btn btn-primary\"><i class=\"fa fa-pencil\"></i></a></td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['recurring'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 66
yield " ";
} else {
// line 67
yield " <tr>
<td class=\"text-center\" colspan=\"4\">";
// line 68
yield ($context["text_no_results"] ?? null);
yield "</td>
</tr>
";
}
// line 71
yield " </tbody>
</table>
</div>
</form>
<div class=\"row\">
<div class=\"col-sm-6 text-left\">";
// line 76
yield ($context["pagination"] ?? null);
yield "</div>
<div class=\"col-sm-6 text-right\">";
// line 77
yield ($context["results"] ?? null);
yield "</div>
</div>
</div>
</div>
</div>
</div>
";
// line 83
yield ($context["footer"] ?? null);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "catalog/recurring_list.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 262 => 83, 253 => 77, 249 => 76, 242 => 71, 236 => 68, 233 => 67, 230 => 66, 219 => 63, 215 => 62, 211 => 61, 208 => 60, 202 => 59, 196 => 57, 194 => 56, 191 => 55, 186 => 54, 184 => 53, 177 => 49, 174 => 48, 166 => 47, 156 => 45, 154 => 44, 151 => 43, 143 => 42, 133 => 40, 131 => 39, 122 => 33, 116 => 30, 112 => 28, 104 => 24, 101 => 23, 93 => 19, 91 => 18, 85 => 14, 74 => 12, 70 => 11, 65 => 9, 58 => 7, 52 => 6, 46 => 5, 38 => 1,);
}
public function getSourceContext()
{
return new Source("", "catalog/recurring_list.twig", "");
}
}