Sha256: 865d95109a73e7e1832fac332870df8d548eac34d756f4270be20ab98a023f82
Contents?: true
Size: 1.37 KB
Versions: 2
Compression:
Stored size: 1.37 KB
Contents
- cache [:form, obj] do = render :partial => "mokio/common/main_pic", locals: {f:f} = f.input :lang_id, collection: Mokio::Lang.all.collect{|lang| [bt(lang.name), lang.menu_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 :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 => 400} }, 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') = f.association :menus
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mokio-0.0.6 | app/views/mokio/articles/_form.html.slim |
mokio-0.0.5 | app/views/mokio/articles/_form.html.slim |