mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Replace free text with with select dropdown for property names when not super admin
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
%span.handle
|
||||
= f.hidden_field :id
|
||||
%td.property_name
|
||||
= f.text_field :property_name, :class => 'autocomplete'
|
||||
- if spree_current_user.admin?
|
||||
= f.text_field :property_name, :class => 'autocomplete'
|
||||
- else
|
||||
= f.select :property_name, @properties, { :include_blank => true }, { class: 'select2 fullwidth' }
|
||||
%td.value
|
||||
= f.text_field :value, :class => 'autocomplete'
|
||||
%td.actions
|
||||
|
||||
Reference in New Issue
Block a user