<%= form_for([:admin, @essence_file], :remote => true, :method => "put") do |f| %> <%- if @content.essence_type == "Alchemy::EssenceFile" -%>
<%= f.label "title" %> <%= f.text_field "title", :class => 'thin_border' %>
<%= f.label "css_class" %> <%= f.select "css_class", [[t("Layout default"), ""], [t("above"), "no_float"], [t("left"), "left"], [t("right"), "right"]], :class => 'alchemy_selectbox' %>
<%= f.button t("save"), :class => 'button' %>
<%- elsif @content.essence_type == "Alchemy::EssenceFlash" -%>
<%= f.label "width" %> <%= f.text_field "width", :class => 'thin_border' %>
<%= f.label "height" %> <%= f.text_field "height", :class => 'thin_border' %>
<%= f.label "player_version" %> <%= f.text_field "player_version", :class => 'thin_border' %>
<%= f.button t("save"), :class => 'button' %>
<%- elsif @content.essence_type == "Alchemy::EssenceVideo" -%>
<%= f.label "width" %> <%= f.text_field "width", :class => 'thin_border' %>
<%= f.label "height" %> <%= f.text_field "height", :class => 'thin_border' %>
<%= f.label "allow_fullscreen" %> <%= f.check_box "allow_fullscreen" %>
<%= f.label "auto_play" %> <%= f.check_box "auto_play" %>
<%= f.label "show_navigation" %> <%= f.check_box "show_navigation" %>
<%= f.button t("save"), :class => 'button' %>
<%- elsif @content.essence_type == "Alchemy::EssenceAudio" -%>
<%= f.label "width" %> <%= f.text_field "width", :class => 'thin_border' %>
<%= f.label "height" %> <%= f.text_field "height", :class => 'thin_border' %>
<%= f.label "show_eq" %> <%= f.check_box "show_eq" %>
<%= f.label "show_navigation" %> <%= f.check_box "show_navigation" %>
<%= f.button t("save"), :class => 'button' %>
<%- end -%> <%- end -%>