Import current_orders plugin from foodcoop-adam
This commit is contained in:
parent
ae4979a3f0
commit
5907ff11bb
43 changed files with 1031 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
/ remove 'erb:contains("link_to"):contains("action_receive")'
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
/ insert_before '#articles_table'
|
||||
- unless @orders.nil? or @orders.empty? or @order_articles.nil? or @order_articles.empty?
|
||||
- content_for :actionbar do
|
||||
= link_to url_for(controller: 'current_orders/orders', action: 'my', id: @orders.map(&:id).join('+'), format: 'pdf'), class: 'btn' do
|
||||
= glyph :download
|
||||
PDF
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
/ insert_before 'h2:contains(".orders_finished"), h2:contains(".orders_settled")'
|
||||
.btn-group.pull-right#orders_finished_toolbar
|
||||
= link_to '#', data: {toggle: 'dropdown'}, class: 'btn dropdown-toggle' do
|
||||
= t 'orders.show.download.title'
|
||||
%span.caret
|
||||
%ul.dropdown-menu
|
||||
%li= link_to t('orders.show.download.group_pdf'), current_orders_orders_path(document: :groups, format: :pdf)
|
||||
%li= link_to t('orders.show.download.article_pdf'), current_orders_orders_path(document: :articles, format: :pdf)
|
||||
Loading…
Add table
Add a link
Reference in a new issue