Added friendly_name to form

This commit is contained in:
Kieran Eglin 2024-02-02 12:49:20 -08:00
parent 32bcf38d0e
commit e4300391b6
No known key found for this signature in database
GPG key ID: 193984967FCF432D
2 changed files with 8 additions and 3 deletions

View file

@ -9,9 +9,12 @@
</.header>
<.list>
<:item title="Collection Name"><%= @source.collection_name %></:item>
<:item title="Collection ID"><%= @source.collection_id %></:item>
<:item title="Original URL"><%= @source.original_url %></:item>
<:item
:for={attr <- ~w(collection_type collection_name collection_id original_url friendly_name)a}
title={attr}
>
<%= Map.get(@source, attr) %>
</:item>
</.list>
<.back navigate={~p"/media_sources/sources"}>Back to sources</.back>

View file

@ -3,6 +3,8 @@
Oops, something went wrong! Please check the errors below.
</.error>
<.input field={f[:friendly_name]} type="text" label="Friendly Name" />
<.input
field={f[:media_profile_id]}
options={Enum.map(@media_profiles, &{&1.name, &1.id})}