mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Patching modals
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
- for producer in current_producers
|
||||
.reveal-modal{id: "producer_details_#{producer.id}"}
|
||||
.reveal-modal{id: "producer_details_#{producer.id}", "data-reveal" => ""}
|
||||
.row
|
||||
- if producer.logo.exists?
|
||||
.large-1.columns
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
- for group in current_distributor.groups
|
||||
- for sibling in group.enterprises.except(current_distributor)
|
||||
.reveal-modal{id: "sibling_details_#{sibling.id}"}
|
||||
.reveal-modal{id: "sibling_details_#{sibling.id}", "data-reveal" => ""}
|
||||
.row
|
||||
- if sibling.logo.exists?
|
||||
.large-1.columns
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
%ul
|
||||
- for sibling in group.enterprises.except(current_distributor)
|
||||
%li
|
||||
%a{"data-reveal-id" => "sibling_details_#{sibling.id}"}
|
||||
%a{"data-reveal-id" => "sibling_details_#{sibling.id}", "data-reveal" => ""}
|
||||
= sibling.name
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
%ul
|
||||
- for producer in current_producers
|
||||
%li
|
||||
%a{"data-reveal-id" => "producer_details_#{producer.id}"}
|
||||
%a{"data-reveal-id" => "producer_details_#{producer.id}", "data-reveal" => ""}
|
||||
= producer.name
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
%div
|
||||
%h5
|
||||
{{ product.name }}
|
||||
%a{"data-reveal-id" => "producer_details_{{product.supplier.id}}"}
|
||||
%a{"data-reveal-id" => "producer_details_{{product.supplier.id}}", "data-reveal" => ""}
|
||||
{{ product.supplier.name }}
|
||||
%td.notes {{ product.notes | truncate:80 }}
|
||||
%td
|
||||
|
||||
Reference in New Issue
Block a user