Skip to content

Commit

Permalink
Moves the create buttons to the top of the request index, so that the…
Browse files Browse the repository at this point in the history
…y're easier to find when there's a bunch of requests
  • Loading branch information
armahillo authored and benreyn committed Oct 29, 2019
1 parent b6ec902 commit d9e43c1
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions app/views/partner_requests/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@
<p><%= notice %><a class="alert-link" href="#"></p>
</a></p>
</div>
<% end %>

<div class="actions">
<% if @partner.verified? %>
<%= link_to 'Create New Bulk Diaper Request', new_partner_request_path, class: 'btn btn-primary' %>
<% end %>
<% if @partner.verified? && Flipper[:family_requests].enabled?(@partner) %>
<%= link_to 'Create New Family Diaper Request', new_family_request_path, class: 'btn btn-primary' %>
<% end %>
</div>

<div class="tile">
<h3>Diaper Request History</h3>

Expand Down Expand Up @@ -51,19 +61,6 @@
<% end %>
</tbody>
</table>

<hr>

<div class="actions">
<% if @partner.verified? %>
<%= link_to 'Create New Bulk Diaper Request', new_partner_request_path, class: 'btn btn-primary' %>
<% end %>
<% if @partner.verified? && Flipper[:family_requests].enabled?(@partner) %>
<%= link_to 'Create New Family Diaper Request', new_family_request_path, class: 'btn btn-primary' %>
<% end %>
</div>


</div>
</div>
</div>

0 comments on commit d9e43c1

Please sign in to comment.