feat: add custom field slug
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Moritz 2025-11-13 19:17:18 +01:00
parent 158ac52d97
commit 0135dafa3a
Signed by: moritz
GPG key ID: 1020A035E5DD0824
10 changed files with 756 additions and 9 deletions

View file

@ -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>