adding files not commited from previous commit

This commit is contained in:
Matthew Fu committed 2011-07-12 16:02:41 +08:00
1 parent f387139ae1
commit f73f09ffcf
726 files changed
+129696

No files matched your search

Binary file not shown.
+41
View File
@@ -0,0 +1,41 @@
<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>
@@ -0,0 +1,3 @@
<div class="style_uploader">
<% fields_for_
%>
+9
View File
@@ -0,0 +1,9 @@
<h1><%= t('admin.editing_design') %></h1>
<%= form_for @design, :url => admin_design_path(@design) do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :locals => { :f => f } %>
<p>
<%= f.submit t('update') %> <%= link_back %>
</p>
<% end %>
+30
View File
@@ -0,0 +1,30 @@
<% content_for :secondary do %>
<ul class="list">
<li><%= link_to t(:new_design, :scope => :admin), new_admin_design_path, :class => 'button positive' %></li>
</ul>
<% end -%>
<%= flash_messages %>
<h1><%= t('admin.list_designs') %></h1>
<table>
<tr>
<th><%= t('admin.title') %></th>
<th><%= t('admin.author') %></th>
<th><%= t('admin.intro') %></th>
<th><%= t('admin.action') %></th>
</tr>
<% @designs.each do |design| %>
<tr>
<td><%= design.title %></td>
<td><%= design.author %></td>
<td><%= design.intro %></td>
<td>
<%= link_to t(:edit), edit_admin_design_path(design) %> |
<%= link_to t(:delete), admin_design_path(design), :confirm => t('sure?'), :method => :delete %>
</td>
</tr>
<% end %>
</table>
+10
View File
@@ -0,0 +1,10 @@
<h1><%= t('admin.new_design') %></h1>
<%= form_for :design, :url => admin_designs_path do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :locals => { :f => f } %>
<p>
<%= f.submit t('create') %> <%= link_back %>
</p>
<% end %>