Skip to content

Commit b99e145

Browse files
author
calin
committed
Fix delete form
1 parent c34e086 commit b99e145

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

lib/kaffy_web/templates/resource/show.html.eex

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,24 @@
5454

5555
<!-- Modal -->
5656
<%= form_for @changeset, Kaffy.Utils.router().kaffy_resource_path(@conn, :delete, @context, @resource, @changeset.data.id), [method: :delete], fn _f -> %>
57-
<% end %>
58-
<div class="modal fade" id="delete-modal" tabindex="-1" role="dialog" aria-labelledby="delete-modal-label" aria-hidden="true">
59-
<div class="modal-dialog" role="document">
60-
<div class="modal-content">
61-
<div class="modal-header">
62-
<h5 class="modal-title" id="delete-modal-label">Are you sure?</h5>
63-
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
64-
<span aria-hidden="true">&times;</span>
65-
</button>
66-
</div>
67-
<div class="modal-body">
68-
You might lose this record and other related records forever if you continue. Make sure this is what you really want to do.
69-
</div>
70-
<div class="modal-footer">
71-
<button type="button" class="btn btn-light" data-dismiss="modal">Cancel</button>
72-
<button type="submit" class="btn btn-danger">Yes, delete this <%= @resource_name %></button>
57+
<div class="modal fade" id="delete-modal" tabindex="-1" role="dialog" aria-labelledby="delete-modal-label" aria-hidden="true">
58+
<div class="modal-dialog" role="document">
59+
<div class="modal-content">
60+
<div class="modal-header">
61+
<h5 class="modal-title" id="delete-modal-label">Are you sure?</h5>
62+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
63+
<span aria-hidden="true">&times;</span>
64+
</button>
65+
</div>
66+
<div class="modal-body">
67+
You might lose this record and other related records forever if you continue. Make sure this is what you really want to do.
68+
</div>
69+
<div class="modal-footer">
70+
<button type="button" class="btn btn-light" data-dismiss="modal">Cancel</button>
71+
<button type="submit" class="btn btn-danger">Yes, delete this <%= @resource_name %></button>
72+
</div>
7373
</div>
7474
</div>
7575
</div>
76-
</div>
76+
<% end %>
7777
</div>

0 commit comments

Comments
 (0)