Orbit/app/views/admin/designs/_form.html.erb

38 lines
922 B
Plaintext
Raw Normal View History

2011-07-19 10:31:53 +00:00
<%= stylesheet_link_tag "design_temp" %>
<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.layout.blank? %>
<%= f.file_field :layout %>
<% else%>
<%= File.basename (Design.all.last.layout.url) %>
<% end %>
</p>
<p>
2011-07-20 06:04:16 +00:00
<%= render :partial => 'design_file' ,:locals => { :fieldname=>"stylesheet",:object=>@design ,:f=>f,:rtype=>'stylesheets' } %>
</p>
<p>
2011-07-20 06:04:16 +00:00
<%= render :partial => 'design_file' ,:locals => { :fieldname=>"javascript",:object=>@design ,:f=>f,:rtype=>'javascripts' } %>
</p>
<p>
2011-07-20 06:04:16 +00:00
<%= render :partial => 'design_file' ,:locals => { :fieldname=>"image",:object=>@design ,:f=>f,:rtype=>'' } %>
</p>