Skip to content

Commit d4e9cb5

Browse files
fix: badges bootstrap 4 => 5, add more columns (#141)
Co-authored-by: Christopher Georg <[email protected]>
1 parent e854336 commit d4e9cb5

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

Resources/views/List/index.html.twig

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
<th data-searchable="false" data-orderable="true">{{ "detail.lastExecution"|trans }}</th>
2222
<th data-searchable="false" data-orderable="true">{{ "detail.nextRun"|trans }}</th>
2323
<th data-searchable="false" data-orderable="true" class="text-right">{{ "detail.priority"|trans }}</th>
24-
<th data-searchable="false" data-orderable="false" class="text-right">{{ "detail.actions"|trans }}</th>
24+
<th data-visible="false" data-searchable="false" data-orderable="true" class="text-right">{{ "detail.locked"|trans }}</th>
25+
<th data-visible="false" data-searchable="false" data-orderable="true" class="text-right">{{ "detail.notes"|trans }}</th>
26+
<th data-visible="false" data-searchable="false" data-orderable="true" class="text-right">{{ "detail.pingBackUrl"|trans }}</th>
27+
<th data-visible="false" data-searchable="false" data-orderable="true" class="text-right">{{ "detail.pingBackFailedUrl"|trans }}</th>
28+
<th data-searchable="false" data-orderable="false" class="text-right" style="min-width: 150px;">{{ "detail.actions"|trans }}</th>
2529
</tr>
2630
</thead>
2731
<tbody>
@@ -40,9 +44,9 @@
4044
</td>
4145
<td data-search="{{ command.name }}" data-order="{{ command.name }}">
4246
<span style="font-size:14px;" {% if command.disabled == false %}
43-
class="badge badge-success" title="Command is active"
47+
class="badge bg-success" title="Command is active"
4448
{% else %}
45-
class="badge badge-danger" title="Command is disabled"
49+
class="badge bg-danger" title="Command is disabled"
4650
{% endif %}>
4751
{{ command.name }}
4852
</span>
@@ -57,7 +61,7 @@
5761
{{ command.logFile }}
5862
</td>
5963
<td>
60-
<span style="font-size:14px;" class="badge badge-{% if command.lastReturnCode == 0 %}success{% else %}danger{% endif %}" title="Last Return Code: {{ command.lastReturnCode }}">
64+
<span style="font-size:14px;" class="badge bg-{% if command.lastReturnCode == 0 %}success{% else %}danger{% endif %}" title="Last Return Code: {{ command.lastReturnCode }}">
6165
{{ command.lastExecution is empty ? "" : command.lastExecution|date( "dateFormat"|trans ) }}
6266
</span>
6367
</td>
@@ -70,7 +74,19 @@
7074
<td class="text-right">
7175
{{ command.priority }}
7276
</td>
73-
<td style="min-width: 90px;" class="action-container text-right">
77+
<td class="text-right">
78+
{{ command.locked }}
79+
</td>
80+
<td class="text-right">
81+
{{ command.notes }}
82+
</td>
83+
<td class="text-right">
84+
{{ command.pingBackUrl }}
85+
</td>
86+
<td class="text-right">
87+
{{ command.pingBackFailedUrl }}
88+
</td>
89+
<td style="min-width: 150px;" class="action-container text-right">
7490
{% if command.locked == true %}
7591
<a href="{{ path('dukecity_command_scheduler_action_unlock', {'id': command.id}) }}"
7692
onclick="return confirm('{{ "action.unlock"|trans }}')"

0 commit comments

Comments
 (0)