foodsoft/app/views/suppliers/shared_suppliers.haml
2013-02-08 00:11:58 +01:00

23 lines
766 B
Text

- title t('.title')
= t('.body').html_safe
%table.table.table-striped
%thead
%tr
%th= t 'simple_form.labels.supplier.name'
%th= t 'simple_form.labels.supplier.address'
%th= t 'simple_form.labels.supplier.note'
%th= t 'simple_form.labels.supplier.delivery_days'
%th= t 'simple_form.labels.supplier.is_subscribed'
%tbody
- for shared_supplier in @shared_suppliers
%tr
%td= shared_supplier.name
%td= shared_supplier.address
%td= shared_supplier.note
%td= shared_supplier.delivery_days
%td
- if shared_supplier.supplier
%i.icon-ok
- else
= link_to t('.subscribe'), new_supplier_path(:shared_supplier_id => shared_supplier), class: 'btn'