mirror of
https://github.com/perstarkse/minne.git
synced 2026-03-18 15:34:16 +01:00
41 lines
1.3 KiB
HTML
41 lines
1.3 KiB
HTML
{% extends "modal_base.html" %}
|
|
|
|
{% block modal_class %}
|
|
flex flex-col min-h-[95%] w-11/12 max-w-[90ch] max-h-[95%]
|
|
{% endblock %}
|
|
|
|
{% block form_attributes %}
|
|
hx-patch="/content/{{text_content.id}}"
|
|
hx-target="#main_section"
|
|
hx-swap="outerHTML"
|
|
class="flex flex-col flex-1 h-full"
|
|
{% endblock %}
|
|
|
|
{% block modal_content %}
|
|
<h3 class="text-lg font-bold">Edit Content</h3>
|
|
<div class="form-control">
|
|
<label class="floating-label">
|
|
<span class="label-text">Context</span>
|
|
<input type="text" name="context" value="{{ text_content.context }}" 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="category" value="{{ text_content.category }}" class="w-full input input-bordered">
|
|
</label>
|
|
</div>
|
|
<div class="form-control flex-1 flex flex-col min-h-0">
|
|
<label class="floating-label flex-1 flex flex-col min-h-0">
|
|
<span class="label-text">Text</span>
|
|
<textarea name="text" class="textarea textarea-bordered w-full flex-1 min-h-[200px] h-full resize-none">{{
|
|
text_content.text }}</textarea>
|
|
</label>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block primary_actions %}
|
|
<button type="submit" class="btn btn-primary">
|
|
Save Changes
|
|
</button>
|
|
{% endblock %} |