Replace free text with with select dropdown for property names when not super admin

This commit is contained in:
Rob Harrington
2015-04-02 08:56:36 +11:00
parent 8ed6653dc4
commit 5b235f356e

View File

@@ -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