add columns button in admin

This commit is contained in:
Priec
2026-08-15 15:00:01 +02:00
parent 7b190e3d2f
commit d0bcdb1b7c
5 changed files with 5 additions and 0 deletions

View File

@@ -133,6 +133,7 @@ admin-no-profile-tables = Tento profil nemá vlastní tabulky.
admin-no-dependencies = Bez závislostí
admin-depends-on-prefix = Závisí na
admin-row-display-prefix = zobrazení:
admin-add-columns = Přidat sloupce
admin-column-presentation = Aliasy sloupců
admin-delete-table = Smazat tabulku
admin-who-may-use-it = Kdo ji může používat

View File

@@ -137,6 +137,7 @@ admin-no-profile-tables = This profile has no tables of its own.
admin-no-dependencies = No dependencies
admin-depends-on-prefix = Depends on
admin-row-display-prefix = display:
admin-add-columns = Add columns
admin-column-presentation = Column aliases
admin-delete-table = Delete table
admin-who-may-use-it = Who may use it

View File

@@ -133,6 +133,7 @@ admin-no-profile-tables = Tento profil nemá vlastné tabuľky.
admin-no-dependencies = Bez závislostí
admin-depends-on-prefix = Závisí od
admin-row-display-prefix = zobrazenie:
admin-add-columns = Pridať stĺpce
admin-column-presentation = Aliasy stĺpcov
admin-delete-table = Vymazať tabuľku
admin-who-may-use-it = Kto ju môže používať

View File

@@ -156,6 +156,7 @@ mod tests {
let html = render_workspace(&page);
for route in [
"/admin/tables/columns/add?profile=books&table=invoice",
"/admin/tables/presentation?profile=books&table=invoice",
"/admin/tables/delete?profile=books&table=invoice",
"/admin/tables/new?profile=books",

View File

@@ -58,6 +58,7 @@
{% if page.selected_table.as_deref() == Some(table.name.as_str()) %}
<div class="browser-actions">
{% if page.can_manage_tables && !table.is_system() %}
<a href="/admin/tables/columns/add?profile={{ page.selected_profile.as_deref().unwrap_or_default() }}&table={{ table.name }}">{{ nav.tr("admin-add-columns") }}</a>
<a href="/admin/tables/presentation?profile={{ page.selected_profile.as_deref().unwrap_or_default() }}&table={{ table.name }}">{{ nav.tr("admin-column-presentation") }}</a>
<a class="danger-action" href="/admin/tables/delete?profile={{ page.selected_profile.as_deref().unwrap_or_default() }}&table={{ table.name }}">{{ nav.tr("admin-delete-table") }}</a>
{% endif %}