Sha256: 675630da025018888dd8bd7ac49fdfd438edef141e04bdbb76f0b2d17efab4e2

Contents?: true

Size: 617 Bytes

Versions: 6

Compression:

Stored size: 617 Bytes

Contents

= form_for article, url: url, method: method do |f|
  = f.text_field :title, placeholder: 'article title', class: 'form-control big'
  = f.select(:image_id, PagesCms::Image.all.collect {|p| [p.name, p.id] }, {include_blank: 'Choose a picture'}, class: 'form-control inline-form')
  = f.text_field :tags, placeholder: 'tags comma separated', class: 'form-control'
  = f.text_area :content, placeholder: 'the content', class: 'form-control', rows: 20
  = f.label :draft
  = f.check_box :draft, value: false
  = f.label :archived
  = f.check_box :archived, value: false
  = f.submit 'Submit', class: 'btn btn-primary'


Version data entries

6 entries across 5 versions & 1 rubygems

Version Path
pages_cms-0.1.1 app/views/pages_cms/admin/articles/_form.html.haml
pages_cms-0.1.1 test/dummy/app/views/pages_cms/admin/articles/_form.html.haml
pages_cms-0.1.0 app/views/pages_cms/admin/articles/_form.html.haml
pages_cms-0.0.3 app/views/pages_cms/admin/articles/_form.html.haml
pages_cms-0.0.2 app/views/pages_cms/admin/articles/_form.html.haml
pages_cms-0.0.1 app/views/pages_cms/admin/articles/_form.html.haml