Sha256: e5fc358db7feee719437c2cc23b2dea6c51ece6b241c42355d9d359ba5b8a66e
Contents?: true
Size: 1.7 KB
Versions: 1
Compression:
Stored size: 1.7 KB
Contents
= render :partial => "mokio/common/main_pic", locals: {f:f} = f.input :lang_id, collection: Mokio::Lang.all.collect{|lang| [bt(lang.name), lang.id]}, include_blank: bt('all'), disabled: !obj.display_editable_field?('lang_id') = f.input :active, :wrapper => :active_checkbox, disabled: !obj.display_editable_field?('active') = f.input :home_page, :wrapper => :active_checkbox, disabled: !obj.display_editable_field?('home_page') = f.input :title, disabled: !obj.display_editable_field?('title') = f.input :subtitle, disabled: !obj.display_editable_field?('subtitle'), :as => :string = f.input :intro, :wrapper => :ckeditor, :as => :ckeditor, :input_html => { :ckeditor => {:toolbar => 'Mini', :height => 150} }, disabled: !obj.display_editable_field?('intro') = f.input :content, :wrapper => :ckeditor, :as => :ckeditor, :input_html => { :ckeditor => {:toolbar => 'Medium', :height => 300} }, disabled: !obj.display_editable_field?('content') = f.input :display_from, :wrapper => :date, :as => :string, :input_html => { :class => "mask-date display_from", :value => (localize(f.object.display_from) if f.object.display_from) }, disabled: !obj.display_editable_field?('display_from') = f.input :display_to, :wrapper => :date, :as => :string, :input_html => { :class => "mask-date display_to", :value => (localize(f.object.display_to) if f.object.display_to) }, disabled: !obj.display_editable_field?('display_to') .row-fluid label.form-label.span2 = t('menus.content_assoc') .span10 =collection_select(:pic_gallery, :menu_ids,menu_select_grouped(Mokio::Menu.all.includes(:content_links).arrange(:order => :seq)),:id,:name, {disabled: lambda{|s| s.fake.present? },selected:obj.menus.map {|j| j.id} },:multiple => true)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mokio-0.0.13 | app/views/mokio/pic_galleries/_form_inputs.html.slim |