knowledge type select instead of input

This commit is contained in:
Per Stark
2025-02-18 14:47:33 +01:00
parent 813e454f89
commit d0ab590d1d
4 changed files with 37 additions and 17 deletions

View File

@@ -16,11 +16,13 @@ hx-swap="outerHTML"
</label>
</div>
<div class="form-control">
<label class="floating-label">
<span class="label-text">Type</span>
<input type="text" name="name" value="{{ entity.entity_type}}" class="input input-bordered w-full">
</label>
<div class="form-control relative" style="margin-top: -1.5rem;">
<span class="absolute left-2.5 top-2.5 z-[100] p-0.5 bg-white text-xs text-light">Type</span>
<select name="entity_type" class="select select-bordered w-full">
{% for et in entity_types %}
<option value="{{ et }}" {% if entity.entity_type==et %}selected{% endif %}>{{ et }}</option>
{% endfor %}
</select>
</div>
<input type="text" name="id" value="{{ entity.id }}" class="hidden">