refactor: use core components
This commit is contained in:
parent
f0be98316c
commit
b7c93f19cb
26 changed files with 1080 additions and 954 deletions
|
|
@ -100,7 +100,7 @@ defmodule MvWeb.CustomFieldLive.IndexComponent do
|
|||
<.link phx-click={
|
||||
JS.push("edit_custom_field", value: %{id: custom_field.id}, target: @myself)
|
||||
}>
|
||||
{gettext("Edit")}
|
||||
{gettext("Edit datafield")}
|
||||
</.link>
|
||||
</:action>
|
||||
|
||||
|
|
@ -164,17 +164,17 @@ defmodule MvWeb.CustomFieldLive.IndexComponent do
|
|||
</div>
|
||||
|
||||
<div class="modal-action">
|
||||
<button phx-click="cancel_delete" phx-target={@myself} class="btn">
|
||||
<.button variant="neutral" phx-click="cancel_delete" phx-target={@myself}>
|
||||
{gettext("Cancel")}
|
||||
</button>
|
||||
<button
|
||||
</.button>
|
||||
<.button
|
||||
variant="danger"
|
||||
phx-click="confirm_delete"
|
||||
phx-target={@myself}
|
||||
class="btn btn-error"
|
||||
disabled={@slug_confirmation != @custom_field_to_delete.slug}
|
||||
>
|
||||
{gettext("Delete Custom Field and All Values")}
|
||||
</button>
|
||||
</.button>
|
||||
</div>
|
||||
</div>
|
||||
</dialog>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue