mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Add route helper to call to sort_link so that it can find the necessary routes
This commit is contained in:
@@ -13,8 +13,8 @@
|
||||
%col{ style: "width: 15%" }
|
||||
%thead
|
||||
%tr
|
||||
%th= sort_link @search,:email, t(".user"), {}, {title: "users_email_title"}
|
||||
%th= sort_link @search,:enterprise_limit, t(".enterprise_limit")
|
||||
%th= sort_link [:spree, @search], :email, t(".user"), {}, {title: "users_email_title"}
|
||||
%th= sort_link [:spree, @search], :enterprise_limit, t(".enterprise_limit")
|
||||
%th.actions
|
||||
%tbody
|
||||
- @users.each do |user|
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
%col{style: "width: 15%"}/
|
||||
%thead
|
||||
%tr
|
||||
%th= sort_link @search,:name, t("spree.name"), title: 'zones_order_by_name_title'
|
||||
%th= sort_link [:spree, @search], :name, t("spree.name"), title: 'zones_order_by_name_title'
|
||||
%th
|
||||
= sort_link @search,:description, t("spree.description"), {}, {title: 'zones_order_by_description_title'}
|
||||
= sort_link [:spree, @search], :description, t("spree.description"), {}, {title: 'zones_order_by_description_title'}
|
||||
%th= t("spree.default_tax")
|
||||
%th.actions
|
||||
%tbody
|
||||
|
||||
Reference in New Issue
Block a user