-
Notifications
You must be signed in to change notification settings - Fork 91
/
listGrid.html.twig
49 lines (43 loc) · 1.4 KB
/
listGrid.html.twig
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
{% extends '@ShopsysFramework/Admin/Grid/Grid.html.twig' %}
{% import _self as self %}
{% macro getLabel(row) %}
{{ row.feedLabel }} - {{ row.domainConfig.name }}
{% if row.additionalInformation is not null %}
<span
title="{{ row.additionalInformation }}"
class="js-tooltip cursor-help"
data-toggle="tooltip"
data-placement="top"
>
<i class="svg svg-question"></i>
</span>
{% endif %}
{% endmacro %}
{% block grid_value_cell_id_label %}
{% import _self as self %}
{% if row.created %}
<a href="{{ row.url }}" target="_blank">{{ self.getLabel(row) }}</a>
{% else %}
{{ self.getLabel(row) }}
{% endif %}
{% endblock %}
{% block grid_value_cell_id_generate %}
<a href="{{ url(
'admin_feed_generate', {
feedName: row.feedName,
domainId: row.domainConfig.id
}
) }}" class="btn">{{ 'Generate'|trans }}</a>
{% endblock %}
{% block grid_value_cell_id_schedule %}
{% if value is same as(false) %}
<a href="{{ url(
'admin_feed_schedule', {
feedName: row.feedName,
domainId: row.domainConfig.id
}
) }}" class="btn">{{ 'Schedule'|trans }}</a>
{% else %}
<span style="color: green;"><i class="svg svg-checked"></i> {{ 'Scheduled'|trans }}</span>
{% endif %}
{% endblock %}