feat: adds required column to custom field settings
This commit is contained in:
parent
3d81461fbe
commit
e088123fb9
1 changed files with 13 additions and 0 deletions
|
|
@ -68,6 +68,19 @@ defmodule MvWeb.CustomFieldLive.IndexComponent do
|
||||||
{custom_field.description}
|
{custom_field.description}
|
||||||
</:col>
|
</:col>
|
||||||
|
|
||||||
|
<:col
|
||||||
|
:let={{_id, custom_field}}
|
||||||
|
label={gettext("Required")}
|
||||||
|
class="max-w-[9.375rem] text-center"
|
||||||
|
>
|
||||||
|
<span :if={custom_field.required} class="text-base-content font-semibold">
|
||||||
|
{gettext("Required")}
|
||||||
|
</span>
|
||||||
|
<span :if={!custom_field.required} class="text-base-content/70">
|
||||||
|
{gettext("Optional")}
|
||||||
|
</span>
|
||||||
|
</:col>
|
||||||
|
|
||||||
<:col
|
<:col
|
||||||
:let={{_id, custom_field}}
|
:let={{_id, custom_field}}
|
||||||
label={gettext("Show in overview")}
|
label={gettext("Show in overview")}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue