2013-02-07 16:30:47 +01:00
|
|
|
- title t('.title')
|
2009-01-08 16:33:27 +01:00
|
|
|
|
2012-11-12 13:13:01 +01:00
|
|
|
- content_for :actionbar do
|
2013-02-07 16:30:47 +01:00
|
|
|
= link_to t('.action_new'), new_supplier_path, class: 'btn btn-primary'
|
2015-07-20 22:33:28 +02:00
|
|
|
- if FoodsoftConfig[:shared_lists]
|
|
|
|
= link_to t('.action_import'), shared_suppliers_suppliers_path, class: 'btn'
|
2012-10-17 20:45:52 +02:00
|
|
|
%table.table.table-striped
|
|
|
|
%thead
|
|
|
|
%tr
|
2013-10-09 23:12:26 +02:00
|
|
|
%th= heading_helper Supplier, :name
|
|
|
|
%th= heading_helper Supplier, :phone
|
|
|
|
%th= heading_helper Supplier, :customer_number, short: true
|
2012-10-17 20:45:52 +02:00
|
|
|
%th
|
|
|
|
%th
|
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
- for supplier in @suppliers
|
2009-01-18 17:42:51 +01:00
|
|
|
%tr
|
2012-10-17 20:45:52 +02:00
|
|
|
%td= link_to h(supplier.name) , supplier
|
|
|
|
%td= supplier.phone
|
|
|
|
%td= supplier.customer_number
|
2013-03-21 22:08:09 +01:00
|
|
|
%td= link_to t('.articles', count: supplier.articles.undeleted.count), supplier_articles_path(supplier)
|
|
|
|
%td= link_to t('.stock', count: supplier.stock_articles.undeleted.count), stock_articles_path
|
2013-02-07 16:30:47 +01:00
|
|
|
%td= link_to t('.deliveries', count: supplier.deliveries.count), supplier_deliveries_path(supplier)
|
2012-10-17 20:45:52 +02:00
|
|
|
%td
|
2013-02-07 16:30:47 +01:00
|
|
|
= link_to t('ui.edit'), edit_supplier_path(supplier), class: 'btn btn-mini'
|
|
|
|
= link_to t('ui.delete'), supplier_path(supplier), method: :delete,
|
2014-02-20 15:04:53 +01:00
|
|
|
:data => {confirm: t('.confirm_del', name: supplier.name)}, class: 'btn btn-mini btn-danger'
|