Files
2026-08-14 20:35:37 +02:00

34 lines
1.2 KiB
HTML

{#
The copy-profile page's body —
crate::pages::admin::table_definition::ui::CopyFragment.
#}
{% include "pages/admin/table_definition/feedback.html" %}
<section class="panel">
<h2>{{ nav.tr("td-copy-into") }} <code>{{ page.selection.profile }}</code></h2>
<p class="hint">{{ nav.tr("td-copy-hint") }}</p>
<form hx-post="/admin/profiles/copy"
hx-target="#table-panel" hx-swap="innerHTML">
<input type="hidden" name="profile" value="{{ page.selection.profile }}">
<div class="form-grid">
<label>{{ nav.tr("td-new-profile-name") }}
<input name="target_profile_name" value="{{ page.copy.target_profile_name }}" placeholder="billing_2027">
</label>
</div>
{% if !page.copy_candidates().is_empty() %}
<div class="check-group">
{% for table in page.copy_candidates() %}
<label class="check">
<input type="checkbox" name="table_names" value="{{ table.name }}"
{% if page.copy_selected(table.name.as_str()) %}checked{% endif %}>
{{ table.name }}
</label>
{% endfor %}
</div>
{% endif %}
<div class="form-actions">
<button type="submit">{{ nav.tr("td-copy-button") }}</button>
</div>
</form>
</section>