refactor: modal homogenity

This commit is contained in:
Per Stark
2025-02-13 11:21:24 +01:00
parent 30de324879
commit ecee3415f6
5 changed files with 23 additions and 16 deletions

View File

@@ -7,20 +7,26 @@ hx-swap="outerHTML"
{% endblock %}
{% block modal_content %}
<h3 class="text-lg font-bold mb-4">Edit Content</h3>
<h3 class="text-lg font-bold ">Edit Content</h3>
<div class="form-control">
<label class="floating-label">
<span class="label-text">Content Name</span>
<input type="text" name="name" value="{{ text_content.text }}" class="w-full input input-bordered">
<span class="label-text">Instructions</span>
<input type="text" name="name" value="{{ text_content.instructions}}" class="w-full input input-bordered">
</label>
</div>
<div class="form-control ">
<label class="floating-label">
<span class="label-text">Category</span>
<input type="text" name="name" value="{{ text_content.category}}" class="w-full input input-bordered">
</label>
</div>
<input type="text" name="id" value="{{ text_content.id }}" class="hidden">
<div class="form-control mt-4 ">
<div class="form-control">
<label class="floating-label">
<span class="label-text">Description</span>
<span class="label-text">Text</span>
<textarea name="description" class="textarea textarea-bordered h-32 w-full">{{ text_content.text}}</textarea>
</label>
</div>