engine/app/views/locomotive/custom_fields/_edit_field.html.haml

20 lines
1.0 KiB
Plaintext

.fancybox-wrapper
#edit-custom-field
%h2!= t('.title')
= form_tag '#', :class => 'formtastic' do
= fields_for CustomFields::Field.new, :builder => Formtastic::SemanticFormHelper.builder do |g|
= g.inputs :name => :attributes do
= g.input :_alias
= g.input :hint
= g.input :text_formatting, :as => 'select', :collection => options_for_text_formatting, :include_blank => false, :wrapper_html => { :style => 'display: none' }
= g.input :target, :as => 'select', :collection => options_for_association_target, :include_blank => false, :wrapper_html => { :style => 'display: none' }
= g.input :reverse_lookup, :as => 'select', :collection => [], :include_blank => true, :wrapper_html => { :style => 'display: none' }
.popup-actions
%p
%button.button.light{ :type => 'submit' }
%span= t('locomotive.shared.form_actions.update')
%script{ :type => 'text/javascript', :name => 'reverse_lookups' }
!= collection_to_js(options_for_reverse_lookups(content_type))