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-07-12 08:02:41 +00:00
|
|
|
<%= f.file_field :layout %>
|
|
|
|
<% else%>
|
|
|
|
<%= File.basename (Design.all.last.layout.url) %>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.label "stylesheet", t('admin.stylesheet') %>
|
2011-07-14 00:48:42 +00:00
|
|
|
<%= fields_for "design[stylesheets][]", @design, :index => nil do |f| %>
|
|
|
|
<%= f.file_field :file %>
|
|
|
|
<% end %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.label "javascript", t('admin.') %>
|
2011-07-14 00:48:42 +00:00
|
|
|
<%= fields_for "design[javascripts][]", @design, :index => nil do |f| %>
|
|
|
|
<%= f.file_field :file %>
|
|
|
|
<% end %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.label "image", t('admin.') %>
|
2011-07-14 00:48:42 +00:00
|
|
|
<%= fields_for "design[images][]", @design, :index => nil do |f| %>
|
|
|
|
<%= f.file_field :file %>
|
|
|
|
<% end %>
|
2011-07-12 08:02:41 +00:00
|
|
|
</p>
|