ebc19071db0c86792c6dd1f2574a2343.php
12 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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<?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/attribute_list.twig */
class __TwigTemplate_36dd537f2d5ac0e569e4013c6e83782c 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=\"button\" data-toggle=\"tooltip\" title=\"";
// line 6
yield ($context["button_delete"] ?? null);
yield "\" class=\"btn btn-danger\" onclick=\"confirm('";
yield ($context["text_confirm"] ?? null);
yield "') ? \$('#form-attribute').submit() : false;\"><i class=\"fa fa-trash-o\"></i></button>
</div>
<h1>";
// line 8
yield ($context["heading_title"] ?? null);
yield "</h1>
<ul class=\"breadcrumb\">
";
// line 10
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(($context["breadcrumbs"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
// line 11
yield " <li><a href=\"";
yield CoreExtension::getAttribute($this->env, $this->source, $context["breadcrumb"], "href", [], "any", false, false, false, 11);
yield "\">";
yield CoreExtension::getAttribute($this->env, $this->source, $context["breadcrumb"], "text", [], "any", false, false, false, 11);
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 13
yield " </ul>
</div>
</div>
<div class=\"container-fluid\">
";
// line 17
if (($context["error_warning"] ?? null)) {
// line 18
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 22
yield " ";
if (($context["success"] ?? null)) {
// line 23
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 27
yield " <div class=\"panel panel-default\">
<div class=\"panel-heading\">
<h3 class=\"panel-title\"><i class=\"fa fa-list\"></i> ";
// line 29
yield ($context["text_list"] ?? null);
yield "</h3>
</div>
<div class=\"panel-body\">
<form action=\"";
// line 32
yield ($context["delete"] ?? null);
yield "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-attribute\">
<div class=\"table-responsive\">
<table class=\"table table-bordered table-hover\">
<thead>
<tr>
<td style=\"width: 1px;\" class=\"text-center\"><input type=\"checkbox\" onclick=\"\$('input[name*=\\'selected\\']').prop('checked', this.checked);\" /></td>
<td class=\"text-left\">";
// line 38
if ((($context["sort"] ?? null) == "ad.name")) {
// line 39
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 41
yield " <a href=\"";
yield ($context["sort_name"] ?? null);
yield "\">";
yield ($context["column_name"] ?? null);
yield "</a>
";
}
// line 42
yield "</td>
<td class=\"text-left\">";
// line 43
if ((($context["sort"] ?? null) == "attribute_group")) {
// line 44
yield " <a href=\"";
yield ($context["sort_attribute_group"] ?? null);
yield "\" class=\"";
yield Twig\Extension\CoreExtension::lower($this->env->getCharset(), ($context["order"] ?? null));
yield "\">";
yield ($context["column_attribute_group"] ?? null);
yield "</a>
";
} else {
// line 46
yield " <a href=\"";
yield ($context["sort_attribute_group"] ?? null);
yield "\">";
yield ($context["column_attribute_group"] ?? null);
yield "</a>
";
}
// line 47
yield "</td>
<td class=\"text-right\">";
// line 48
if ((($context["sort"] ?? null) == "a.sort_order")) {
// line 49
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 51
yield " <a href=\"";
yield ($context["sort_sort_order"] ?? null);
yield "\">";
yield ($context["column_sort_order"] ?? null);
yield "</a>
";
}
// line 52
yield "</td>
<td class=\"text-right\">";
// line 53
yield ($context["column_action"] ?? null);
yield "</td>
</tr>
</thead>
<tbody>
";
// line 57
if (($context["attributes"] ?? null)) {
// line 58
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(($context["attributes"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["attribute"]) {
// line 59
yield " <tr>
<td class=\"text-center\">";
// line 60
if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute_id", [], "any", false, false, false, 60), ($context["selected"] ?? null))) {
// line 61
yield " <input type=\"checkbox\" name=\"selected[]\" value=\"";
yield CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute_id", [], "any", false, false, false, 61);
yield "\" checked=\"checked\" />
";
} else {
// line 63
yield " <input type=\"checkbox\" name=\"selected[]\" value=\"";
yield CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute_id", [], "any", false, false, false, 63);
yield "\" />
";
}
// line 64
yield "</td>
<td class=\"text-left\">";
// line 65
yield CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "name", [], "any", false, false, false, 65);
yield "</td>
<td class=\"text-left\">";
// line 66
yield CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute_group", [], "any", false, false, false, 66);
yield "</td>
<td class=\"text-right\">";
// line 67
yield CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "sort_order", [], "any", false, false, false, 67);
yield "</td>
<td class=\"text-right\"><a href=\"";
// line 68
yield CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "edit", [], "any", false, false, false, 68);
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['attribute'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 71
yield " ";
} else {
// line 72
yield " <tr>
<td class=\"text-center\" colspan=\"5\">";
// line 73
yield ($context["text_no_results"] ?? null);
yield "</td>
</tr>
";
}
// line 76
yield " </tbody>
</table>
</div>
</form>
<div class=\"row\">
<div class=\"col-sm-6 text-left\">";
// line 81
yield ($context["pagination"] ?? null);
yield "</div>
<div class=\"col-sm-6 text-right\">";
// line 82
yield ($context["results"] ?? null);
yield "</div>
</div>
</div>
</div>
</div>
</div>
";
// line 88
yield ($context["footer"] ?? null);
yield "
";
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "catalog/attribute_list.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 283 => 88, 274 => 82, 270 => 81, 263 => 76, 257 => 73, 254 => 72, 251 => 71, 240 => 68, 236 => 67, 232 => 66, 228 => 65, 225 => 64, 219 => 63, 213 => 61, 211 => 60, 208 => 59, 203 => 58, 201 => 57, 194 => 53, 191 => 52, 183 => 51, 173 => 49, 171 => 48, 168 => 47, 160 => 46, 150 => 44, 148 => 43, 145 => 42, 137 => 41, 127 => 39, 125 => 38, 116 => 32, 110 => 29, 106 => 27, 98 => 23, 95 => 22, 87 => 18, 85 => 17, 79 => 13, 68 => 11, 64 => 10, 59 => 8, 52 => 6, 46 => 5, 38 => 1,);
}
public function getSourceContext()
{
return new Source("", "catalog/attribute_list.twig", "");
}
}