This commit is contained in:
parent
188a6f667c
commit
8ce89a7227
2 changed files with 9 additions and 2 deletions
|
|
@ -22,7 +22,12 @@ defmodule MvWeb.CustomFieldLive.FormComponent do
|
||||||
<div id={@id} class="mb-8 border shadow-xl card border-base-300">
|
<div id={@id} class="mb-8 border shadow-xl card border-base-300">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="flex items-center gap-4 mb-4">
|
<div class="flex items-center gap-4 mb-4">
|
||||||
<.button type="button" phx-click="cancel" phx-target={@myself} aria-label={gettext("Back to custom field overview")}>
|
<.button
|
||||||
|
type="button"
|
||||||
|
phx-click="cancel"
|
||||||
|
phx-target={@myself}
|
||||||
|
aria-label={gettext("Back to custom field overview")}
|
||||||
|
>
|
||||||
<.icon name="hero-arrow-left" class="w-4 h-4" />
|
<.icon name="hero-arrow-left" class="w-4 h-4" />
|
||||||
</.button>
|
</.button>
|
||||||
<h3 class="card-title">
|
<h3 class="card-title">
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,9 @@ defmodule MvWeb.CustomFieldLive.IndexComponent do
|
||||||
module={MvWeb.CustomFieldLive.FormComponent}
|
module={MvWeb.CustomFieldLive.FormComponent}
|
||||||
id={@form_id}
|
id={@form_id}
|
||||||
custom_field={@editing_custom_field}
|
custom_field={@editing_custom_field}
|
||||||
on_save={fn custom_field, action -> send(self(), {:custom_field_saved, custom_field, action}) end}
|
on_save={
|
||||||
|
fn custom_field, action -> send(self(), {:custom_field_saved, custom_field, action}) end
|
||||||
|
}
|
||||||
on_cancel={fn -> send_update(__MODULE__, id: @id, show_form: false) end}
|
on_cancel={fn -> send_update(__MODULE__, id: @id, show_form: false) end}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue