mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-05 02:41:33 +00:00
21 lines
948 B
Plaintext
21 lines
948 B
Plaintext
- hubs_color = @hubs.count > 0 ? "blue" : "red"
|
|
.sidebar_item.omega.four.columns#hubs
|
|
.four.columns.alpha.header{ class: "#{hubs_color}" }
|
|
%span.four.columns.alpha.centered Distributors
|
|
.four.columns.alpha.list{ class: "#{hubs_color}" }
|
|
- if @hubs.count > 0
|
|
-# = hidden_field_tag "enterprise[hub_ids][]", []
|
|
- @hubs.each do |hub|
|
|
%a.four.columns.alpha.list-item{ class: "#{cycle('odd','even')}", href: "#{main_app.edit_admin_enterprise_path(hub)}" }
|
|
%span.three.columns.alpha
|
|
= hub.name
|
|
%span.one.column.omega
|
|
= f.check_box :distributor_ids, { multiple: true }, hub.id, nil
|
|
- else
|
|
.four.columns.alpha.list-item
|
|
%span.three.columns.alpha None Available
|
|
%span.one.column.omega
|
|
%span.icon-remove-sign
|
|
%a.four.columns.alpha.button{ href: "#{main_app.admin_enterprises_path}", class: "#{hubs_color}" }
|
|
MANAGE
|
|
%span.icon-arrow-right |