updating part2, far from finished
This commit is contained in:
@@ -13,6 +13,6 @@
|
||||
br
|
||||
|
||||
.form-actions
|
||||
= f.button :submit, class: 'btn-primary'
|
||||
= f.button :submit, class: 'btn-primary save-product-button'
|
||||
'
|
||||
= link_to t("helpers.links.cancel"), suppliers_products_path, class: 'btn'
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
th.actions data-t="helpers.actions.title" =t 'helpers.actions.title'
|
||||
tbody
|
||||
- @products.each do |product|
|
||||
tr
|
||||
tr class="product-row-#{product.id}"
|
||||
td.link= link_to product.name, [:suppliers, product]
|
||||
td= product.code
|
||||
td.currency=currency product.price
|
||||
td.link= product.category_links namespace: :suppliers
|
||||
td.timestamp data-time=product.created_at.utc.iso8601
|
||||
td.actions
|
||||
= link_to t('helpers.links.edit'), [:edit, :suppliers, product], class: 'btn btn-mini'
|
||||
= link_to t('helpers.links.edit'), [:edit, :suppliers, product], class: 'btn btn-mini edit-resource-button'
|
||||
'
|
||||
= link_to t("helpers.links.destroy"), [:suppliers, product], method: :delete, data: {confirm: are_you_sure? }, class: 'btn btn-mini btn-danger'
|
||||
- else
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
.controls
|
||||
= f.collection_select :section_id, current_supplier.sections, :id, :title, include_blank: "[#{t('supplier.tables.has_no_section')}]"
|
||||
.form-actions
|
||||
= f.submit nil, class: 'btn btn-primary'
|
||||
= f.submit nil, class: 'btn btn-primary save-table-button'
|
||||
'
|
||||
= link_to t("helpers.links.cancel"), suppliers_tables_path, class: 'btn'
|
||||
|
||||
Reference in New Issue
Block a user