Ray's back_end modification before sub_roles
This commit is contained in:
1 parent
f774084e9a
commit
fc591ee308
39 files changed
+1542
-539
No files matched your search
@@ -1,31 +1,37 @@
|
||||
<% content_for :secondary do %>
|
||||
<ul class="list">
|
||||
<li><%= link_to t('admin.new_design'), new_admin_design_path, :class => 'seclink1' %></li>
|
||||
<li><%= link_to t('admin.upload_design'), upload_package_admin_designs_path, :class => 'seclink2' %></li>
|
||||
</ul>
|
||||
<div class="designs_setup">
|
||||
<h1><%= t('admin.setup_designs') %></h1>
|
||||
<ul class="list">
|
||||
<li><%= link_to content_tag(:span, t('admin.new_design')), new_admin_design_path, :class => 'seclink1' %></li>
|
||||
<li><%= link_to content_tag(:span, t('admin.upload_design')), upload_package_admin_designs_path, :class => 'seclink2' %></li>
|
||||
</ul>
|
||||
</div>
|
||||
<% end -%>
|
||||
|
||||
<%= flash_messages %>
|
||||
|
||||
<div class="main2">
|
||||
<h1><%= t('admin.list_designs') %></h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= t('admin.title') %></th>
|
||||
<th><%= t('admin.author') %></th>
|
||||
<th><%= t('admin.intro') %></th>
|
||||
<th><%= t('admin.action') %></th>
|
||||
<td><%= t('admin.title') %></td>
|
||||
<td><%= t('admin.author') %></td>
|
||||
<td><%= t('admin.intro') %></td>
|
||||
<td><%= t('admin.action') %></td>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
<% @designs.each do |design| %>
|
||||
<tr>
|
||||
<tr class="have">
|
||||
<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 class="action">
|
||||
<%= link_to t(:edit), edit_admin_design_path(design), :class => 'edit' %>
|
||||
<%= link_to t(:delete), admin_design_path(design), :confirm => t('sure?'), :method => :delete, :class => 'delete' %>
|
||||
</td>
|
||||
</tr>
|
||||
<tr></tr>
|
||||
<% end %>
|
||||
</table>
|
||||
</div>
|
||||
@@ -1,10 +1,13 @@
|
||||
<h1><%= t('admin.new_design') %></h1>
|
||||
<div class="main2">
|
||||
<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 %>
|
||||
<%= form_for :design, :url => admin_designs_path do |f| %>
|
||||
<%= f.error_messages %>
|
||||
<%= render :partial => "form", :locals => { :f => f } %>
|
||||
|
||||
<div class="button_bar">
|
||||
<%= link_back %>
|
||||
<%= f.submit t('create') %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
@@ -1,9 +1,11 @@
|
||||
<div class="main2">
|
||||
<%= form_tag '',:multipart => true,:action=>"post" do |f| %>
|
||||
|
||||
<%= form_tag '',:multipart => true,:action=>"post" do |f| %>
|
||||
<p>
|
||||
<%= file_field :design,:package_file %>
|
||||
</p>
|
||||
<%= submit_tag %>
|
||||
|
||||
<p>
|
||||
<%= file_field :design,:package_file %>
|
||||
</p>
|
||||
<%= submit_tag %>
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
</div>
|
||||
Reference in new issue
Block a user