{@title}

<.form :let={f} for={@changeset} id="tag-form" class="flex flex-col space-y-4 sm:space-y-0 sm:grid sm:grid-cols-3 sm:gap-4 justify-center items-center" phx-target={@myself} phx-change="validate" phx-submit="save" >
{changeset_errors(@changeset)}
{label(f, :name, gettext("Name"), class: "title text-lg text-primary-600")} {text_input(f, :name, class: "input input-primary col-span-2", maxlength: 255, phx_debounce: 300 )} {error_tag(f, :name, "col-span-3")} {label(f, :bg_color, gettext("Background color"), class: "title text-lg text-primary-600")} {color_input(f, :bg_color)} {error_tag(f, :bg_color, "col-span-3")} {label(f, :text_color, gettext("Text color"), class: "title text-lg text-primary-600")} {color_input(f, :text_color)} {error_tag(f, :text_color, "col-span-3")} {submit(dgettext("actions", "Save"), class: "mx-auto btn btn-primary col-span-3", phx_disable_with: dgettext("prompts", "Saving...") )}