= 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'