Add the styled buttons for the forms.

This commit is contained in:
2025-03-26 15:30:58 +02:00
parent 396b1eb0be
commit 1a3b30e251
3 changed files with 75 additions and 2 deletions
@@ -47,8 +47,12 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.FormComponent do
<% end %>
<:actions>
<.button phx-disable-with="Saving...">Save Author</.button>
<.button phx-click="cancel" phx-target={@myself} class="me-auto">Cancel</.button>
<.success_button phx-disable-with="Saving...">
Save Author
</.success_button>
<.primary_button phx-click="cancel" phx-target={@myself}>
Cancel
</.primary_button>
</:actions>
</.simple_form>
</div>