Added friendly_name to form
This commit is contained in:
parent
32bcf38d0e
commit
e4300391b6
2 changed files with 8 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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})}
|
||||
|
|
|
|||
Loading…
Reference in a new issue