From ddb0432cdf93b590867b1c3118c37a5d518d97c3 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 8 Jan 2015 18:30:22 +0800 Subject: [PATCH] fix for category and also can edit category --- app/views/admin/admin_modules/_index.html.erb | 1 + app/views/admin/admin_modules/approve_modules.html.erb | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/admin/admin_modules/_index.html.erb b/app/views/admin/admin_modules/_index.html.erb index c90f82b..72b1feb 100644 --- a/app/views/admin/admin_modules/_index.html.erb +++ b/app/views/admin/admin_modules/_index.html.erb @@ -30,6 +30,7 @@ Uninstall Revoke Access Grant Access + Edit <% else %> diff --git a/app/views/admin/admin_modules/approve_modules.html.erb b/app/views/admin/admin_modules/approve_modules.html.erb index 4ec4cda..37319ea 100644 --- a/app/views/admin/admin_modules/approve_modules.html.erb +++ b/app/views/admin/admin_modules/approve_modules.html.erb @@ -1,18 +1,18 @@ <%= form_for @rm, url: admin_admin_module_path(@rm.id), :html=>{:class => "form-horizontal", :id => "approveSiteForm"} do |f| %>
- +
<%= f.collection_select(:module_type, ModuleType.all, :id, :name) %>
- +
- <%= f.collection_select(:module_type, @categories, :id, :title) %> + <%= f.collection_select(:category_id, @categories, :id, :title) %>
- +
<% @tags.each do |tag| %>