%div.article-image = image_tag @article.image, class: 'img-responsive', id: 'image', style: 'max-height:250px;width:100%;' = form_for @article, url: url, method: meth, remote: true do |f| = f.text_field :title, placeholder: 'title', style: 'font-size:4em;height:auto' %div.row %div.col.m3.s12 = f.text_field :image, id: 'url', placeholder: 'image url', onchange: '$("#image").attr("src", this.value)' %div.col.m3.s12 = select_tag 'urls', options_for_select(PagesCms::Upload.images.collect { |upload| [upload.name, upload.upload.url] }), include_blank: 'select image', class: 'browser-default', onchange: '$("#image").attr("src", this.value);$("#url").val( this.value )' %div.col.m6.s12 = f.text_field :tagging, value: @article.tags.join(','), placeholder: 'tags (comma separated)' = f.text_area :content, placeholder: 'new article'