foodsoft/app/views/orders/new.html.haml
Patrick Gansterer e57fd500fc Add possibility to copy an order
If a supplier has a long list of articles, which are all available, but
the order should contain only a subset of them, selecting them for every
order can take a long time. Starting with a copy of an existing order
can safe a lot of time.
2015-02-18 22:09:37 +01:00

10 lines
218 B
Text

- title t('.title')
= render 'form'
- if @order.article_ids.empty?
- content_for :javascript do
:javascript
// select all articles by default
$(function() {
$('#checkall').click();
});