|
54 | 54 |
|
55 | 55 | <!-- Modal -->
|
56 | 56 | <%= 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">×</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">×</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> |
73 | 73 | </div>
|
74 | 74 | </div>
|
75 | 75 | </div>
|
76 |
| - </div> |
| 76 | + <% end %> |
77 | 77 | </div>
|
0 commit comments