versioning of FK for archiving
This commit is contained in:
@@ -24,6 +24,15 @@
|
||||
<section class="builder-section">
|
||||
<h2>Table</h2>
|
||||
<div class="form-grid">
|
||||
<label>Scope
|
||||
<span><input type="checkbox" name="global" value="true"
|
||||
{% if page.draft.global %}checked{% endif %}
|
||||
hx-post="/admin/tables/builder" hx-trigger="change"
|
||||
hx-include="#table-form" hx-target="#builder" hx-swap="innerHTML"
|
||||
hx-vals='{"action": "refresh"}'> Shared across profiles</span>
|
||||
</label>
|
||||
|
||||
{% if !page.draft.global %}
|
||||
<label>Profile
|
||||
<select name="profile_name" hx-post="/admin/tables/builder" hx-trigger="change"
|
||||
hx-include="#table-form" hx-target="#builder" hx-swap="innerHTML"
|
||||
@@ -35,6 +44,9 @@
|
||||
<option value="__new__" {% if page.draft.creating_new_profile %}selected{% endif %}>+ New profile…</option>
|
||||
</select>
|
||||
</label>
|
||||
{% else %}
|
||||
<input type="hidden" name="profile_name" value="{{ page.draft.profile_name }}">
|
||||
{% endif %}
|
||||
|
||||
{% if page.draft.show_profile_name_input() %}
|
||||
<label>New profile name
|
||||
|
||||
Reference in New Issue
Block a user