42 lines
780 B
Plaintext
42 lines
780 B
Plaintext
|
<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') %>
|
||
|
<% if @design.nil? %>
|
||
|
<%= f.file_field :layout %>
|
||
|
<% else%>
|
||
|
<%= File.basename (Design.all.last.layout.url) %>
|
||
|
<% end %>
|
||
|
</p>
|
||
|
|
||
|
|
||
|
<p>
|
||
|
<%= f.label "stylesheet", t('admin.stylesheet') %>
|
||
|
<%= fields_for 'design[stylesheets]' do |f| %>
|
||
|
<%= f.file_field :file %>
|
||
|
<% end%>
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
<%= f.label "javascript", t('admin.') %>
|
||
|
<%= f.file_field :javaascripts %>
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
<%= f.label "image", t('admin.') %>
|
||
|
<%= f.file_field :images %>
|
||
|
</p>
|