Add the styled buttons for the forms.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user