2011-09-08 10:12:04 +00:00
|
|
|
<% content_for :page_specific_css do %>
|
|
|
|
<%= stylesheet_link_tag "design_temp" %>
|
|
|
|
<% end %>
|
|
|
|
|
2011-07-12 08:02:41 +00:00
|
|
|
<p>
|
2011-09-08 10:12:04 +00:00
|
|
|
<%= f.label :title, t('admin.title') %>
|
|
|
|
<%= f.text_field :title, :class => 'text' %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2011-09-08 10:12:04 +00:00
|
|
|
<%= f.label :author, t('admin.author') %>
|
|
|
|
<%= f.text_field :author, :class => 'text' %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2011-09-08 10:12:04 +00:00
|
|
|
<%= f.label :intro, t('admin.intro') %>
|
|
|
|
<%= f.text_field :intro, :class => 'text' %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2011-09-08 10:12:04 +00:00
|
|
|
<%= f.label "layout", t('admin.layout') %>
|
|
|
|
<% if @design.layout.blank? %>
|
2011-08-08 09:51:37 +00:00
|
|
|
<%= fields_for 'design[layout]' do |f| %>
|
2011-09-08 10:12:04 +00:00
|
|
|
<%= f.file_field :file %>
|
2011-08-08 09:51:37 +00:00
|
|
|
<%= f.hidden_field :to_save, :value => true %>
|
|
|
|
<% end %>
|
2011-09-08 10:12:04 +00:00
|
|
|
<% else %>
|
|
|
|
<%= File.basename (@design.layout.file.url) %>
|
|
|
|
<% end %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2011-09-08 10:12:04 +00:00
|
|
|
<%= f.label "default_css", t('admin.default_css') %>
|
|
|
|
<% if @design.default_css.blank? %>
|
|
|
|
<%= f.file_field :default_css %>
|
|
|
|
<% else %>
|
|
|
|
<%= File.basename (@design.default_css.url) %>
|
|
|
|
<% end %>
|
2011-08-08 01:30:44 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2011-09-09 05:44:43 +00:00
|
|
|
<%= render :partial => 'design_file', :locals => { :object => @design, :field_name => "themes", :f => f, :classes => "r_destroy, r_edit" } %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2011-09-09 05:44:43 +00:00
|
|
|
<%= render :partial => 'design_file', :locals => { :object => @design, :field_name => "javascripts", :f => f, :classes => "r_destroy, r_edit" } %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2011-09-08 10:12:04 +00:00
|
|
|
<%= render :partial => 'design_file', :locals => { :object => @design, :field_name => "images", :f => f, :classes => "r_destroy, r_snapshot" } %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|