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
|
|
@ -1,8 +1,9 @@
|
|||
# encoding: utf-8
|
||||
module OrdersHelper
|
||||
|
||||
def update_articles_link(order, text, view)
|
||||
link_to text, order_path(order, view: view), remote: true
|
||||
def update_articles_link(order, text, view, options={})
|
||||
options.merge!({remote: true, id: "view_#{view}_btn"})
|
||||
link_to text, order_path(order, view: view), options
|
||||
end
|
||||
|
||||
def order_pdf(order, document, text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue