You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
848 B
17 lines
848 B
<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>
|