Sha256: 73fc778e4e4088af0bad2ac82177aa234eae37aaaded1a37c2f3a23fcc595100
Contents?: true
Size: 1.75 KB
Versions: 1
Compression:
Stored size: 1.75 KB
Contents
= simple_form_for @article, :url => article_form_url do |f| - main_content "Article List" do %fieldset{ :class=>"inputs"} = f.association :category, :as => :hidden %ol %li = f.input :title %li = f.input :standfirst, :input_html => { :rows => 4 } = render "ems/globals/lead_image", :form => f, :imageName => @article.image.url %li #button-bar.input-buttons = f.label :content = f.input_field :content, :data => {:wmd => "article_content"} = render "ems/globals/asset", :form => f %fieldset{ :class=>"button"} %ol %li = f.submit - side_content do %fieldset{ :class=>"inputs"} %ol %li = f.input :status, :as => :select, :collection => allowed_status, :include_blank => false %li = f.input :publish_from, :as => :string, :input_html => { :class => 'datepicker', :value => @article.try(:publish_from).try(:strftime,'%d/%m/%Y'), :data => { :alt_date => "alt-date-" }} %li = f.association :channels, :collection => Ems::Channel.joins(:categories).where(:ems_categories_channels => {:category_id => @article.category.id}) %li / this works but needs tidying in CSS, JS and markup = f.label :tags %input{ :type=>:text, :data => { :tagcomplete => "/ems/tags.json", :tagcomplete_pills => "#tag-list" }} %ul#tag-list.pill-list - @article.tags.each do |tag| %li.pill{:id=>"tag-list-#{tag.id}"} = tag.title %span.close × .hidden_fields = f.association :tags %li = f.label "Article Priority" = f.input :hot = f.input :featured
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ems-0.1.1 | app/views/ems/articles/_form.html.haml |