add columns button in admin
This commit is contained in:
@@ -133,6 +133,7 @@ admin-no-profile-tables = Tento profil nemá vlastní tabulky.
|
|||||||
admin-no-dependencies = Bez závislostí
|
admin-no-dependencies = Bez závislostí
|
||||||
admin-depends-on-prefix = Závisí na
|
admin-depends-on-prefix = Závisí na
|
||||||
admin-row-display-prefix = zobrazení:
|
admin-row-display-prefix = zobrazení:
|
||||||
|
admin-add-columns = Přidat sloupce
|
||||||
admin-column-presentation = Aliasy sloupců
|
admin-column-presentation = Aliasy sloupců
|
||||||
admin-delete-table = Smazat tabulku
|
admin-delete-table = Smazat tabulku
|
||||||
admin-who-may-use-it = Kdo ji může používat
|
admin-who-may-use-it = Kdo ji může používat
|
||||||
|
|||||||
@@ -137,6 +137,7 @@ admin-no-profile-tables = This profile has no tables of its own.
|
|||||||
admin-no-dependencies = No dependencies
|
admin-no-dependencies = No dependencies
|
||||||
admin-depends-on-prefix = Depends on
|
admin-depends-on-prefix = Depends on
|
||||||
admin-row-display-prefix = display:
|
admin-row-display-prefix = display:
|
||||||
|
admin-add-columns = Add columns
|
||||||
admin-column-presentation = Column aliases
|
admin-column-presentation = Column aliases
|
||||||
admin-delete-table = Delete table
|
admin-delete-table = Delete table
|
||||||
admin-who-may-use-it = Who may use it
|
admin-who-may-use-it = Who may use it
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ admin-no-profile-tables = Tento profil nemá vlastné tabuľky.
|
|||||||
admin-no-dependencies = Bez závislostí
|
admin-no-dependencies = Bez závislostí
|
||||||
admin-depends-on-prefix = Závisí od
|
admin-depends-on-prefix = Závisí od
|
||||||
admin-row-display-prefix = zobrazenie:
|
admin-row-display-prefix = zobrazenie:
|
||||||
|
admin-add-columns = Pridať stĺpce
|
||||||
admin-column-presentation = Aliasy stĺpcov
|
admin-column-presentation = Aliasy stĺpcov
|
||||||
admin-delete-table = Vymazať tabuľku
|
admin-delete-table = Vymazať tabuľku
|
||||||
admin-who-may-use-it = Kto ju môže používať
|
admin-who-may-use-it = Kto ju môže používať
|
||||||
|
|||||||
@@ -156,6 +156,7 @@ mod tests {
|
|||||||
|
|
||||||
let html = render_workspace(&page);
|
let html = render_workspace(&page);
|
||||||
for route in [
|
for route in [
|
||||||
|
"/admin/tables/columns/add?profile=books&table=invoice",
|
||||||
"/admin/tables/presentation?profile=books&table=invoice",
|
"/admin/tables/presentation?profile=books&table=invoice",
|
||||||
"/admin/tables/delete?profile=books&table=invoice",
|
"/admin/tables/delete?profile=books&table=invoice",
|
||||||
"/admin/tables/new?profile=books",
|
"/admin/tables/new?profile=books",
|
||||||
|
|||||||
@@ -58,6 +58,7 @@
|
|||||||
{% if page.selected_table.as_deref() == Some(table.name.as_str()) %}
|
{% if page.selected_table.as_deref() == Some(table.name.as_str()) %}
|
||||||
<div class="browser-actions">
|
<div class="browser-actions">
|
||||||
{% if page.can_manage_tables && !table.is_system() %}
|
{% 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 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>
|
<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 %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user