<%= stylesheet_link_tag "design_temp" %> <%= javascript_include_tag "design_temp" %>

<%= f.label :title, t('admin.title') %> <%= f.text_field :title, :class => 'text' %>

<%= f.label :author, t('admin.author') %> <%= f.text_field :author, :class => 'text' %>

<%= f.label :intro, t('admin.intro') %> <%= f.text_field :intro, :class => 'text' %>

<%= f.label "layout", t('admin.layout') %> <% if @design.layout.blank? %> <%= f.file_field :layout %> <% else%> <%= File.basename (Design.all.last.layout.url) %> <% end %>

<%= f.label "structure_css", t('admin.structure_css') %> <% if @design.structure_css.blank? %> <%= f.file_field :structure_css %> <% else%> <%= File.basename (Design.all.last.structure_css.url) %> <% end %>

<%= render :partial => 'design_file' ,:locals => { :fieldname=>"themes",:object=>@design ,:f=>f,:rtype=>'stylesheets',:item_destroy=>true,:item_editable=>true } %>

<%= render :partial => 'design_file' ,:locals => { :fieldname=>"javascript",:object=>@design ,:f=>f,:rtype=>'javascripts' ,:item_destroy=>true,:item_editable=>true} %>

<%= render :partial => 'design_file' ,:locals => { :fieldname=>"image",:object=>@design ,:f=>f,:rtype=>'images' ,:item_destroy=>true,:item_snapshot=>true} %>