Update confirm syntax
This commit is contained in:
parent
7e2c1d58f6
commit
7c7d780719
2 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
%p
|
%p
|
||||||
Aktionen:
|
Aktionen:
|
||||||
= link_to 'Alle löschen', destroy_all_supplier_articles_url(@supplier), :method => :delete, :confirm => "Willst Du wirklich alle löschen?"
|
= link_to 'Alle löschen', destroy_all_supplier_articles_url(@supplier), :method => :delete, data: { confirm: 'Willst Du wirklich alle löschen?' }
|
||||||
|
|
|
|
||||||
= link_to "Artikel hochladen", upload_supplier_articles_url(@supplier)
|
= link_to "Artikel hochladen", upload_supplier_articles_url(@supplier)
|
||||||
|
|
|
|
||||||
|
@ -53,5 +53,5 @@
|
||||||
%td=h article.unit_quantity
|
%td=h article.unit_quantity
|
||||||
%th= link_to 'Anzeigen', supplier_article_url(@supplier, article)
|
%th= link_to 'Anzeigen', supplier_article_url(@supplier, article)
|
||||||
%th= link_to 'Bearbeiten', edit_supplier_article_url(article.supplier, article)
|
%th= link_to 'Bearbeiten', edit_supplier_article_url(article.supplier, article)
|
||||||
%th= link_to 'Löschen', supplier_article_url(@supplier, article), :confirm => 'Bist du sicher?', :method => :delete
|
%th= link_to 'Löschen', supplier_article_url(@supplier, article), data: { confirm: 'Bist du sicher?' }, :method => :delete
|
||||||
%p= will_paginate @articles
|
%p= will_paginate @articles
|
|
@ -38,6 +38,6 @@
|
||||||
|
|
||||||
= link_to 'Bearbeiten', edit_supplier_path(@supplier)
|
= link_to 'Bearbeiten', edit_supplier_path(@supplier)
|
||||||
|
|
|
|
||||||
= link_to 'Löschen', supplier_path(@supplier), :confirm => 'Bist du sicher?', :method => :delete
|
= link_to 'Löschen', supplier_path(@supplier), data: { confirm: 'Bist du sicher?' }, :method => :delete
|
||||||
|
|
|
|
||||||
= link_to 'Zurück', suppliers_path
|
= link_to 'Zurück', suppliers_path
|
||||||
|
|
Loading…
Reference in a new issue