= javascript_include_tag 'pages_cms/wysihtml5x-toolbar'
= javascript_include_tag 'pages_cms/advanced_and_extended'
-#= javascript_include_tag 'pages_cms/select2.min'
-#= stylesheet_link_tag 'pages_cms/select2.min'
= form_for article, url: url, method: method do |f|
= f.text_field :title, placeholder: 'article title', class: 'form-control med'
= 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, value: f.object.tags.join(','), placeholder: 'tags, comma separated', class: 'form-control inline-form'
= 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'