%= semantic_form_for [:admin, @post] do |f| %>
<%= f.semantic_errors %>
<%= f.inputs :name => "Basic" do %>
<%= f.input :title %>
<%= f.semantic_fields_for :meta_content do |meta_content| %>
<%= meta_content.inputs :meta_title, :meta_keywords, :meta_description %>
<% end %>
<% end %>
<%= f.inputs :name => "Categories & Tags" do %>
<%= f.input :categories, :as => :check_boxes, :collection => ::Wafflemix::Category.all %>
<%= f.input :tag_list %>
<% end %>
<%= f.inputs :name => "Advanced" do %>
<%= f.input :link_url %>
<%= f.input :published_at, :as => :string %>
<%= f.input :draft %>
<% end %>
<%= f.actions do %>
<%= f.action :submit, :as => :button %>
<%= link_to 'Cancel', admin_posts_path, :class => 'btn' %>
<% end %>
<% end %>
<% content_for :custom_js do %>
<% end %>
Post Images
<% @post.assets.each do |asset| %>
- <%= image_tag asset.asset.thumb('80x80').url if asset.asset_uid %>
<% end %>
Available Images
Drag to Post Images to use an image.
<% ::Wafflemix::Asset.all.each do |asset| %>
<%= content_tag "li", class: "add_image", data: {resource: @post.class.to_s, resource_id: @post.id, asset_id: asset.id} do %>
<%= image_tag asset.asset.thumb('80x80').url if asset.asset_uid %>
<% end %>
<% end %>
<%= t('photos.title') %>
<%= form_for [:admin, ::Wafflemix::Asset.new], :html => { :multipart => true, :id => "fileupload", :method => 'post' } do |f| %>
<% end %>
<%= javascript_include_tag 'jquery-fileupload/locale' %>
<%= javascript_include_tag 'jquery-fileupload/jquery.fileupload' %>
<%= javascript_include_tag 'jquery-fileupload/jquery.fileupload-ui' %>
<%= javascript_include_tag 'jquery-fileupload/vendor/tmpl' %>