Sha256: eec48e135b2f79f281ac405f60a50c7aa3fa7846ff62f8bf905fc1f32efcf528

Contents?: true

Size: 579 Bytes

Versions: 4

Compression:

Stored size: 579 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'
  = render 'pages_cms/admin/pages/editor', f: f
  = 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

4 entries across 4 versions & 1 rubygems

Version Path
pages_cms-0.2.3 app/views/pages_cms/admin/articles/_form.html.haml
pages_cms-0.2.2 app/views/pages_cms/admin/articles/_form.html.haml
pages_cms-0.2.1 app/views/pages_cms/admin/articles/_form.html.haml
pages_cms-0.2.0 app/views/pages_cms/admin/articles/_form.html.haml