fix titles
This commit is contained in:
@@ -44,6 +44,8 @@ class Listing
|
||||
}
|
||||
|
||||
return [
|
||||
'title' => $tabellisting['title'],
|
||||
'icon' => $tabellisting['icon'],
|
||||
'table' => $table,
|
||||
'pagination' => null, // TODO: write some logic
|
||||
];
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{% macro table(listing, action, title = "") %}
|
||||
{% macro table(listing) %}
|
||||
|
||||
<form action="{{ action|default("") }}" method="post" enctype="application/x-www-form-urlencoded" class="form">
|
||||
{% if title is not empty %}
|
||||
{% if listing.title is not empty %}
|
||||
<h3 class="page-header">
|
||||
{% if table_options.icon is not empty %}
|
||||
<i class="{{ table_options.icon }}"></i>
|
||||
{% if listing.icon is not empty %}
|
||||
<i class="{{ listing.icon }}"></i>
|
||||
{% endif %}
|
||||
{{ title }}
|
||||
{{ listing.title }}
|
||||
</h3>
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
|
||||
{% import "Froxlor/table/table.html.twig" as table %}
|
||||
|
||||
{{ table.table(listing, table_options.title) }}
|
||||
{{ table.table(listing) }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user