update item page
This commit is contained in:
parent
23a3a7eff6
commit
1bfae05242
|
@ -26,6 +26,9 @@ class Admin::ModuleAppsController < ApplicationController
|
|||
when 'web_resource'
|
||||
@categories = WebLinkCategory.all
|
||||
@tags = WebResourceTag.all
|
||||
when 'archive'
|
||||
@categories = ArchiveFileCategory.all
|
||||
@tags = ArchiveTag.all
|
||||
end
|
||||
respond_to do |format|
|
||||
format.js {}
|
||||
|
|
|
@ -43,6 +43,9 @@ class Admin::PagePartsController < ApplicationController
|
|||
when 'web_resource'
|
||||
@categories = WebLinkCategory.all
|
||||
@tags = WebResourceTag.all
|
||||
when 'archive'
|
||||
@categories = ArchiveFileCategory.all
|
||||
@tags = ArchiveTag.all
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -95,6 +98,9 @@ class Admin::PagePartsController < ApplicationController
|
|||
when 'web_resource'
|
||||
@categories = WebLinkCategory.all
|
||||
@tags = WebResourceTag.all
|
||||
when 'archive'
|
||||
@categories = ArchiveFileCategory.all
|
||||
@tags = ArchiveTag.all
|
||||
end
|
||||
respond_to do |format|
|
||||
format.js {}
|
||||
|
|
|
@ -54,6 +54,9 @@ class Admin::PagesController < ApplicationController
|
|||
when 'web_resource'
|
||||
@categories = WebLinkCategory.all
|
||||
@tags = WebResourceTag.all
|
||||
when 'archive'
|
||||
@categories = ArchiveFileCategory.all
|
||||
@tags = ArchiveTag.all
|
||||
end
|
||||
else
|
||||
@categories = nil
|
||||
|
|
Loading…
Reference in New Issue