% content_for :page_specific_css do %> <%= stylesheet_link_tag "design" %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "design" %> <% end %>
<%= 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? %> <%= fields_for 'design[layout]' do |f| %> <%= f.file_field :file %> <%#= f.hidden_field :to_save, :value => true %> <% end %> <% else %> <%= File.basename (@design.layout.file.url) %> <% end %>
<%= f.label "default_css", t('admin.default_css') %> <% if @design.default_css.blank? %> <%= fields_for 'design[default_css]' do |f| %> <%= f.file_field :file %> <%#= f.hidden_field :to_save, :value => true %> <% end %> <% else %> <%= File.basename (@design.default_css.file.url) rescue "" %> <% end %>
<%= f.label :themes, t('admin.themes') %>
<%#= render :partial => 'design_file', :locals => { :object => @design, :field_name => "javascripts", :f => f, :classes => "r_destroy, r_edit" } %>
<%#= render :partial => 'design_file', :locals => { :object => @design, :field_name => "images", :f => f, :classes => "r_destroy, r_snapshot" } %>