web routing is POG now
This commit is contained in:
@@ -9,10 +9,9 @@
|
||||
<div>
|
||||
<p class="eyebrow">Workspace</p>
|
||||
<h1>Admin panel</h1>
|
||||
<p>Browse profiles, tables, and their physical columns.</p>
|
||||
<p>Browse profiles, tables, and their physical columns. Pick a table to reach what can be done to it.</p>
|
||||
</div>
|
||||
<div class="actions">
|
||||
{% if page.can_manage_tables %}<a href="/admin/table-definition">Table definition</a>{% endif %}
|
||||
{% if page.can_manage_tables %}<a href="/admin/tables/new">Add table</a>{% endif %}
|
||||
{% if page.can_manage_scripts %}<a href="/admin/logic/new">Add logic</a>{% endif %}
|
||||
{% if page.can_manage_validations %}<a href="/admin/validation/new">Add validation</a>{% endif %}
|
||||
|
||||
@@ -50,9 +50,38 @@
|
||||
</small>
|
||||
</button>
|
||||
</form>
|
||||
{#
|
||||
The actions for the table you are pointed at, next to the table
|
||||
itself. Each one is a page of its own; this pane is where you
|
||||
choose what to act on, so it is also where you say what to do.
|
||||
#}
|
||||
{% 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?profile={{ page.selected_profile.as_deref().unwrap_or_default() }}&table={{ table.name }}">Add / rename columns</a>
|
||||
<a class="danger-action" href="/admin/tables/delete?profile={{ page.selected_profile.as_deref().unwrap_or_default() }}&table={{ table.name }}">Delete table</a>
|
||||
{% endif %}
|
||||
<a href="/permissions/grants">Who may use it</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if page.selected_table.is_none() %}
|
||||
<p class="empty">Pick a table to add columns to it, delete it, or say who may use it.</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if page.can_manage_tables && page.selected_profile.is_some() %}
|
||||
<div class="browser-actions pane-footer">
|
||||
{% if page.is_global() %}
|
||||
<a href="/admin/tables/new?global=true">+ New global table</a>
|
||||
{% else %}
|
||||
<a href="/admin/tables/new?profile={{ page.selected_profile.as_deref().unwrap_or_default() }}">+ New table</a>
|
||||
<a href="/admin/tables/from-template?profile={{ page.selected_profile.as_deref().unwrap_or_default() }}">From template</a>
|
||||
<a href="/admin/profiles/copy?profile={{ page.selected_profile.as_deref().unwrap_or_default() }}">Copy profile</a>
|
||||
<a href="/admin/profiles/history?profile={{ page.selected_profile.as_deref().unwrap_or_default() }}">Rename history</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</section>
|
||||
|
||||
<section class="pane">
|
||||
|
||||
Reference in New Issue
Block a user