A continuation of HomeBox the inventory and organization system built for the Home User
Merge branch 'main' into add-char-counts-with-max-to-lots-of-inputs
Tonya4a0039c838e9
diff --cc frontend/components/Form/TextField.vueindex fd3ff21e,2d303906..e78c06d4--- a/frontend/components/Form/TextField.vue+++ b/frontend/components/Form/TextField.vue@@@ -1,18 -1,16 +1,25 @@@<template><div v-if="!inline" class="form-control w-full"><label class="label">- <span class="label-text">{{ label }}</span>+ <span class="label-text"> {{ label }} </span>+ <span+ :class="{+ 'text-red-600':+ typeof value === 'string' &&+ ((maxLength && value.length > maxLength) || (minLength && value.length < minLength)),+ }"+ >+ {{ typeof value === "string" && (maxLength || minLength) ? `${value.length}/${maxLength}` : "" }}+ </span></label>- <input ref="input" v-model="value" :placeholder="placeholder" :type="type" class="input input-bordered w-full" />+ <input+ ref="input"+ v-model="value"+ :placeholder="placeholder"+ :type="type"+ :required="required"+ class="input input-bordered w-full"+ /></div><div v-else class="sm:grid sm:grid-cols-4 sm:items-start sm:gap-4"><label class="label">diff --cc frontend/components/Location/CreateModal.vueindex aa5702b4,0cf92a2c..8963874c--- a/frontend/components/Location/CreateModal.vue+++ b/frontend/components/Location/CreateModal.vue@@@ -7,11 -7,10 +7,12 @@@v-model="form.name":trigger-focus="focused":autofocus="true"+ :required="true"label="Location Name"+ :max-length="255"+ :min-length="1"/>- <FormTextArea v-model="form.description" label="Location Description" />+ <FormTextArea v-model="form.description" label="Location Description" :max-length="1000" /><LocationSelector v-model="form.parent" /><div class="modal-action"><div class="flex justify-center">