Replace Util::getIcon by Twig exetension
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
This commit is contained in:
parent
dc72341b75
commit
1967db6ae1
@ -823,13 +823,8 @@ class CentralColumns
|
||||
int $pos,
|
||||
string $db
|
||||
): string {
|
||||
$icon = Util::getIcon(
|
||||
'centralColumns_add',
|
||||
__('Add column')
|
||||
);
|
||||
$table_drop_down = $this->getHtmlForTableDropdown($db);
|
||||
return Template::get('database/central_columns/add_column')->render(array(
|
||||
'icon' => $icon,
|
||||
'pos' => $pos,
|
||||
'db' => $db,
|
||||
'total_rows' => $total_rows,
|
||||
|
||||
@ -2,9 +2,9 @@
|
||||
<tr>
|
||||
<td class="navigation_separator largescreenonly"></td>
|
||||
<td class="central_columns_navigation">
|
||||
{{ icon|raw }}
|
||||
{{ Util_getIcon('centralColumns_add', 'Add column'|trans)|raw }}
|
||||
<form id="add_column" action="db_central_columns.php" method="post">
|
||||
{{ Url_getHiddenInputs(db)}}
|
||||
{{ Url_getHiddenInputs(db) |raw }}
|
||||
<input type="hidden" name="add_column" value="add">
|
||||
<input type="hidden" name="pos" value="{{ pos }}" />
|
||||
<input type="hidden" name="total_rows" value="{{ total_rows }}"/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user