cleanup orders and add search
Conflicts: app/assets/stylesheets/bootstrap_and_overrides.css.less app/views/orders/_articles.html.haml app/views/orders/show.html.haml
This commit is contained in:
parent
bab28d2770
commit
42d622d1b2
11 changed files with 130 additions and 70 deletions
7
app/views/orders/show.js.erb
Normal file
7
app/views/orders/show.js.erb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
$('#articles_table').html('<%= j render(@partial, order: @order) %>');
|
||||
|
||||
$('.view_buttons a').each(function() {
|
||||
$(this).toggleClass('active', $(this).attr('id') == 'view_<%= j params[:view] %>_btn');
|
||||
});
|
||||
|
||||
activate_search('<%= j params[:view] %>', '<%= j I18n.t("orders.show.search_placeholder.#{params[:view]}") %>');
|
||||
Loading…
Add table
Add a link
Reference in a new issue