Skip to content

Commit 693b198

Browse files
committed
Move edit and delete buttons
1 parent 1a504a2 commit 693b198

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/views/product_drives/show.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@
6161
<div class="row">
6262
<div class="col-12">
6363
<!-- Default box -->
64+
<div class="card-footer clearfix">
65+
<%= edit_button_to edit_product_drive_path(@product_drive), { text: "Make a correction", size: "md" } %>
66+
<%= delete_button_to product_drive_path(@product_drive), { confirm: "Are you sure you want to permanently remove this product drive?", size: "md" } if current_user.has_cached_role?(Role::ORG_ADMIN, current_organization) %>
67+
</div>
6468
<div class="card">
6569
<div class="card-body p-0">
6670
<table class="table">
@@ -90,10 +94,6 @@
9094
<p style="text-align: center">
9195
To add additional donations to this product drive, please edit that donation and select this product drive from the appropriate dropdown.
9296
</p>
93-
<div class="card-footer clearfix">
94-
<%= edit_button_to edit_product_drive_path(@product_drive), { text: "Make a correction", size: "md" } %>
95-
<%= delete_button_to product_drive_path(@product_drive), { confirm: "Are you sure you want to permanently remove this product drive?", size: "md" } if current_user.has_cached_role?(Role::ORG_ADMIN, current_organization) %>
96-
</div>
9797
<!-- /.card-footer-->
9898
</div>
9999
<!-- /.card -->

0 commit comments

Comments
 (0)