Skip to content

Commit 48350d2

Browse files
committed
feat: cancel button on shuttle form
1 parent 61e1aeb commit 48350d2

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/arrow_web/live/shuttle_live/shuttle_live.ex

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,18 @@ defmodule ArrowWeb.ShuttleViewLive do
151151
</div>
152152
</div>
153153
<:actions>
154-
<.button class="btn-primary">Save Shuttle</.button>
154+
<div class="w-25 mr-2">
155+
<.button class="btn-primary w-100">Save Shuttle</.button>
156+
</div>
157+
<div class="w-25 mr-2">
158+
<.link_button
159+
href={~p"/shuttles"}
160+
class="btn-outline-primary w-100"
161+
data-confirm="Are you sure you want to cancel? All changes will be lost!"
162+
>
163+
Cancel
164+
</.link_button>
165+
</div>
155166
</:actions>
156167
</.simple_form>
157168
"""

0 commit comments

Comments
 (0)