feat: add custom field slug
This commit is contained in:
parent
bc75a5853a
commit
edf8b2b79e
10 changed files with 756 additions and 9 deletions
|
|
@ -11,6 +11,7 @@ defmodule MvWeb.CustomFieldLive.Index do
|
|||
- Delete custom fields (if no custom field values use them)
|
||||
|
||||
## Displayed Information
|
||||
- Slug: URL-friendly identifier (auto-generated from name)
|
||||
- Name: Unique identifier for the custom field
|
||||
- Value type: Data type constraint (string, integer, boolean, date, email)
|
||||
- Description: Human-readable explanation
|
||||
|
|
@ -43,7 +44,7 @@ defmodule MvWeb.CustomFieldLive.Index do
|
|||
rows={@streams.custom_fields}
|
||||
row_click={fn {_id, custom_field} -> JS.navigate(~p"/custom_fields/#{custom_field}") end}
|
||||
>
|
||||
<:col :let={{_id, custom_field}} label="Id">{custom_field.id}</:col>
|
||||
<:col :let={{_id, custom_field}} label="Slug">{custom_field.slug}</:col>
|
||||
|
||||
<:col :let={{_id, custom_field}} label="Name">{custom_field.name}</:col>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue