2011-09-08 10:12:04 +00:00
|
|
|
<% content_for :page_specific_css do %>
|
2011-12-05 01:54:41 +00:00
|
|
|
<%= stylesheet_link_tag "design" %>
|
|
|
|
<% end %>
|
|
|
|
<% content_for :page_specific_javascript do %>
|
|
|
|
<%= javascript_include_tag "design" %>
|
2011-09-08 10:12:04 +00:00
|
|
|
<% end %>
|
|
|
|
|
2011-07-12 08:02:41 +00:00
|
|
|
<p>
|
2012-09-12 11:12:50 +00:00
|
|
|
<%= f.label :title, t(:title) %>
|
2011-09-08 10:12:04 +00:00
|
|
|
<%= f.text_field :title, :class => 'text' %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2012-09-12 11:12:50 +00:00
|
|
|
<%= f.label :author, t(:author) %>
|
2011-09-08 10:12:04 +00:00
|
|
|
<%= f.text_field :author, :class => 'text' %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2012-09-12 11:12:50 +00:00
|
|
|
<%= f.label :intro, t(:intro) %>
|
2011-09-08 10:12:04 +00:00
|
|
|
<%= f.text_field :intro, :class => 'text' %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2012-09-12 11:12:50 +00:00
|
|
|
<%= f.label "layout", t(:layout) %>
|
2011-09-08 10:12:04 +00:00
|
|
|
<% 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 %>
|
2012-01-26 04:05:25 +00:00
|
|
|
<%#= f.hidden_field :to_save, :value => true %>
|
2011-08-08 09:51:37 +00:00
|
|
|
<% 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>
|
2012-09-12 11:12:50 +00:00
|
|
|
<%= f.label "default_css", t(:default_css) %>
|
2011-09-08 10:12:04 +00:00
|
|
|
<% if @design.default_css.blank? %>
|
2011-09-13 03:57:20 +00:00
|
|
|
<%= fields_for 'design[default_css]' do |f| %>
|
|
|
|
<%= f.file_field :file %>
|
2012-01-26 04:05:25 +00:00
|
|
|
<%#= f.hidden_field :to_save, :value => true %>
|
2011-09-13 03:57:20 +00:00
|
|
|
<% end %>
|
2011-09-08 10:12:04 +00:00
|
|
|
<% else %>
|
2012-01-05 08:20:51 +00:00
|
|
|
<%= File.basename (@design.default_css.file.url) rescue "" %>
|
2011-09-08 10:12:04 +00:00
|
|
|
<% end %>
|
2011-08-08 01:30:44 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2012-09-12 11:12:50 +00:00
|
|
|
<%= f.label :themes, t(:themes) %>
|
2012-01-26 04:05:25 +00:00
|
|
|
<ul>
|
|
|
|
<% @design.themes.each do |theme| %>
|
|
|
|
<%= render :partial => 'design_file', :object => theme, :locals => { :field_name => "themes", :f => f, :classes => "r_destroy, r_edit" } %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<%= render :partial => 'new_design_file', :object => @design.themes.build, :locals => { :field_name => "themes", :f => f, :classes => "r_destroy" } %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2012-01-26 04:05:25 +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>
|
2012-01-26 04:05:25 +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>
|