parent
782d66aed0
commit
eabd17eb67
@ -0,0 +1,7 @@
|
||||
<div hx-target="this" hx-swap="outerHTML">
|
||||
<label for="content" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Content</label>
|
||||
<textarea id="update-drawer-content" name="content" hx-post="/htmx/validation/update-content/" rows="4" class="block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-[#3b82f6] focus:border-[#3b82f6] dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-[#3b82f6] dark:focus:border-[#3b82f6]" placeholder="Write article here" {{#if error}}aria-invalid="true"{{/if}}>{{ content }}</textarea>
|
||||
{{#if error}}
|
||||
<div class='text-sm font-bold leading-tight tracking-tight text-red-600 mt-2'>{{ error }}</div>
|
||||
{{/if}}
|
||||
</div>
|
@ -0,0 +1,16 @@
|
||||
<div hx-target="this" hx-swap="outerHTML">
|
||||
<label for="title" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">Title</label>
|
||||
<input type="text"
|
||||
name="title"
|
||||
hx-post="/htmx/validation/update-title/"
|
||||
x-model="title"
|
||||
id="update-title"
|
||||
placeholder="Type article title"
|
||||
required=""
|
||||
{{#if error}}aria-invalid="true"{{/if}}
|
||||
value="{{ title }}"
|
||||
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-[#2563eb] focus:border-[#2563eb] block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-[#3b82f6] dark:focus:border-[#3b82f6]">
|
||||
{{#if error}}
|
||||
<div class='text-sm font-bold leading-tight tracking-tight text-red-600 mt-2'>{{ error }}</div>
|
||||
{{/if}}
|
||||
</div>
|
Loading…
Reference in new issue