up
This commit is contained in:
@@ -130,6 +130,28 @@ require __DIR__ . '/../partials/structure/layout_start.php';
|
||||
</form>
|
||||
</dialog>
|
||||
|
||||
<!-- Edit Template Dialog -->
|
||||
<dialog id="editTemplateDialog" class="rounded-2xl p-0 w-[700px]">
|
||||
<form id="editTemplateForm" method="dialog" class="p-4 bg-white rounded-2xl">
|
||||
<h3 class="text-lg font-semibold mb-2">Template bearbeiten</h3>
|
||||
<div class="space-y-3">
|
||||
<label class="block">
|
||||
<span class="text-sm text-slate-600">Name</span>
|
||||
<input id="edit_tpl_name" type="text" class="w-full border rounded-lg px-3 py-2" />
|
||||
</label>
|
||||
<label class="block">
|
||||
<span class="text-sm text-slate-600">API Name (ohne Leerzeichen)</span>
|
||||
<input id="edit_tpl_api_name" type="text" class="w-full border rounded-lg px-3 py-2" />
|
||||
<p id="edit_tpl_api_warn" class="text-xs text-amber-700 mt-1 hidden">Warnung: Das Ändern des API-Namens kann bestehende API-Integrationen brechen.</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="mt-4 flex justify-end gap-2">
|
||||
<button type="button" id="editTemplateCancel" class="btn">Abbrechen</button>
|
||||
<button type="submit" id="editTemplateSave" class="btn">Speichern</button>
|
||||
</div>
|
||||
</form>
|
||||
</dialog>
|
||||
|
||||
<div id="toast-root"></div>
|
||||
<?php
|
||||
tpl_add_script(app_asset_url('/assets/js/toast.js'));
|
||||
|
||||
Reference in New Issue
Block a user