X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=app%2Fviews%2Fstore%2F_cart.html.erb;h=313d23e5cd072d276050de69dd43db8aa69ba85b;hb=05c481a0756c1fa0a9956b21a912de2c10914ef2;hp=43e9a162a543f653864065095d9697a81a3e5038;hpb=951fe14acc706a4c5ec043e20b3cbfee2b9754d6;p=depot.git diff --git a/app/views/store/_cart.html.erb b/app/views/store/_cart.html.erb index 43e9a16..313d23e 100644 --- a/app/views/store/_cart.html.erb +++ b/app/views/store/_cart.html.erb @@ -8,10 +8,14 @@ -<% form_remote_tag :url => {:action => 'checkout'} do %> - <%= submit_tag "Checkout" %> -<% end %> +<% unless @during_checkout %> +
+ <% form_remote_tag :url => {:action => 'checkout'} do %> + <%= submit_tag "Checkout" %> + <% end %> -<% form_remote_tag :url => {:action => 'empty_cart'} do %> - <%= submit_tag "Empty cart" %> + <% form_remote_tag :url => {:action => 'empty_cart'} do %> + <%= submit_tag "Empty cart" %> + <% end %> +
<% end %>