fix titles
This commit is contained in:
@@ -44,6 +44,8 @@ class Listing
|
|||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
'title' => $tabellisting['title'],
|
||||||
|
'icon' => $tabellisting['icon'],
|
||||||
'table' => $table,
|
'table' => $table,
|
||||||
'pagination' => null, // TODO: write some logic
|
'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">
|
<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">
|
<h3 class="page-header">
|
||||||
{% if table_options.icon is not empty %}
|
{% if listing.icon is not empty %}
|
||||||
<i class="{{ table_options.icon }}"></i>
|
<i class="{{ listing.icon }}"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ title }}
|
{{ listing.title }}
|
||||||
</h3>
|
</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,6 @@
|
|||||||
|
|
||||||
{% import "Froxlor/table/table.html.twig" as table %}
|
{% import "Froxlor/table/table.html.twig" as table %}
|
||||||
|
|
||||||
{{ table.table(listing, table_options.title) }}
|
{{ table.table(listing) }}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user