-
Notifications
You must be signed in to change notification settings - Fork 57
[1082] remove the equipment item index page #1198
Conversation
link in navbar? |
|
Note that in removing the equipment items links I changed the 'equipment' link for checkout persons to link to the equipment models index and also adjusted the view permissions such that it gives them a little bit more useful information |
@@ -4,5 +4,4 @@ | |||
|
|||
<p> | |||
<%= link_to "Show", @equipment_item %> | | |||
<%= link_to "View All", equipment_items_path %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we replace this with a link to /equipment_model/:id/equipment_items
?
Looks good, the only change I'd make is replacing the "View all" link on the bottom of the resource views with a link to the nested equipment item index for the item's equipment model if we have it. Otherwise feel free to squash / merge. |
yes |
@@ -5,7 +5,7 @@ | |||
<%= f.input :serial %> | |||
<div class="form-group"> | |||
<div class="col-sm-offset-2 col-sm-10"> | |||
<%= f.button :submit, cancel: equipment_items_path %> | |||
<%= f.button :submit, cancel: @equipment_item %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if we're in the new
method?
SQUASH IT. |
👢 |
remove links to equipment item path make equipment model page more informative for staff re-add links; re-add index for sub pages restore spec remove cancel
24275d5
to
1cf3e9f
Compare
[1082] remove the equipment item index page
Resolves #1082