Skip to content

Commit b3c62f4

Browse files
committed
Revert "Fix 68"
This reverts commit 33b76c8.
1 parent 2946595 commit b3c62f4

File tree

2 files changed

+21
-26
lines changed

2 files changed

+21
-26
lines changed

Controller/CrudController.php

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,7 @@ protected function doIndex()
276276
Query::HINT_CUSTOM_OUTPUT_WALKER,
277277
'Gedmo\Translatable\Query\TreeWalker\TranslationWalker'
278278
)
279-
// ->getResult()
280-
;
279+
->getResult();
281280

282281
return $this->renderIndex($query);
283282
}
@@ -477,8 +476,8 @@ protected function addSuccessFlash($message, $route = null)
477476
'heading' => 'Success!',
478477
'message' => $this->getTranslator()->trans($message, array('%entity%' => $this->getEntityName())),
479478
'actions' => $actions
479+
)
480480
)
481-
)
482481
);
483482
}
484483

@@ -497,16 +496,12 @@ protected function handleSuccessResponse($action, $entity = null)
497496
*
498497
* @param object $entity entity
499498
*/
500-
protected function prePersist($entity, $action)
501-
{
502-
}
499+
protected function prePersist($entity, $action) {}
503500

504501
/**
505502
* Post flush entity
506503
*
507504
* @param object $entity entity
508505
*/
509-
protected function postFlush($entity, $action)
510-
{
511-
}
506+
protected function postFlush($entity, $action) {}
512507
}

Resources/views/base.list.html.twig

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
<div class="widget-content">
1818
<table class="table table-striped table-bordered table-hover">
1919
<thead>
20-
<tr>
21-
{% for attr, field in list_fields %}
22-
<th>{{ field|trans }}</th>
23-
{% endfor %}
24-
{% if actions|length > 0 %}
25-
<th>Actions</th>
26-
{% endif %}
27-
</tr>
20+
<tr>
21+
{% for attr, field in list_fields %}
22+
<th>{{ field | trans }}</th>
23+
{% endfor %}
24+
{% if actions|length > 0 %}
25+
<th>Actions</th>
26+
{% endif %}
27+
</tr>
2828
</thead>
2929
<tbody>
3030
{% for item in list_items %}
@@ -33,15 +33,15 @@
3333
<td>{{ attribute(item, attr)|nl2br }}</td>
3434
{% endfor %}
3535
{% block action_buttons %}
36-
{% if actions|length > 0 %}
37-
<td>
38-
<div class="btn-group">
39-
{% for action in actions %}
40-
<a class="btn btn-link" href="{{ action.href|replace({'__ID__': item.id}) }}"><span class="glyphicon glyphicon-{{ action.icon }}"></span></a>
41-
{% endfor %}
42-
</div>
43-
</td>
44-
{% endif %}
36+
{% if actions|length > 0 %}
37+
<td>
38+
<div class="btn-group">
39+
{% for action in actions %}
40+
<a class="btn btn-link" href="{{ action.href|replace({'__ID__': item.id}) }}"><span class="glyphicon glyphicon-{{ action.icon }}"></span></a>
41+
{% endfor %}
42+
</div>
43+
</td>
44+
{% endif %}
4545
{% endblock %}
4646
</tr>
4747
{% endfor %}

0 commit comments

Comments
 (0)