2011-07-19 10:31:53 +00:00
|
|
|
<%= stylesheet_link_tag "design_temp" %>
|
2011-07-22 07:54:38 +00:00
|
|
|
<%= javascript_include_tag "design_temp" %>
|
2011-07-12 08:02:41 +00:00
|
|
|
<p>
|
|
|
|
<%= f.label :title, t('admin.title') %>
|
|
|
|
<%= f.text_field :title, :class => 'text' %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.label :author, t('admin.author') %>
|
|
|
|
<%= f.text_field :author, :class => 'text' %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.label :intro, t('admin.intro') %>
|
|
|
|
<%= f.text_field :intro, :class => 'text' %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.label "layout", t('admin.layout') %>
|
2011-07-14 00:48:42 +00:00
|
|
|
<% if @design.layout.blank? %>
|
2011-08-08 09:23:20 +00:00
|
|
|
<%= f.file_field :layout %>
|
2011-07-12 08:02:41 +00:00
|
|
|
<% else%>
|
2011-08-08 09:23:20 +00:00
|
|
|
<%= File.basename (@design.layout.file.url) %>
|
2011-07-12 08:02:41 +00:00
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
<p>
|
2011-08-08 01:30:44 +00:00
|
|
|
<%= 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 %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<%= render :partial => 'design_file' ,:locals => { :fieldname=>"themes",:object=>@design ,:f=>f,:rtype=>'stylesheets',:item_destroy=>true,:item_editable=>true } %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2011-07-26 10:22:17 +00:00
|
|
|
<%= render :partial => 'design_file' ,:locals => { :fieldname=>"javascript",:object=>@design ,:f=>f,:rtype=>'javascripts' ,:item_destroy=>true,:item_editable=>true} %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2011-07-26 10:22:17 +00:00
|
|
|
<%= render :partial => 'design_file' ,:locals => { :fieldname=>"image",:object=>@design ,:f=>f,:rtype=>'images' ,:item_destroy=>true,:item_snapshot=>true} %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|