show supplier user-interface update
This commit is contained in:
parent
0014435663
commit
0fa9bebac9
11 changed files with 94 additions and 60 deletions
25
app/views/suppliers/shared_suppliers.html.haml
Normal file
25
app/views/suppliers/shared_suppliers.html.haml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
- title t('.title')
|
||||
= t('.body').html_safe
|
||||
|
||||
%table.table.table-striped
|
||||
%thead
|
||||
%tr
|
||||
%th= heading_helper Supplier, :name
|
||||
%th= heading_helper Supplier, :address
|
||||
%th= heading_helper Supplier, :note
|
||||
%th= heading_helper Supplier, :delivery_days
|
||||
%th= heading_helper 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.suppliers.any?
|
||||
%i.icon-ok
|
||||
= associated_supplier_names(shared_supplier)
|
||||
= link_to t('.subscribe_again'), new_supplier_path(:shared_supplier_id => shared_supplier), class: 'btn'
|
||||
- else
|
||||
= link_to t('.subscribe'), new_supplier_path(:shared_supplier_id => shared_supplier), class: 'btn'
|
||||
Loading…
Add table
Add a link
Reference in a new issue