add wiki parent page action
This commit is contained in:
parent
14fa1cc534
commit
347000d139
|
@ -57,6 +57,13 @@ class Admin::PageContentsController < OrbitAdminController
|
|||
render :json => {"success" => true}.to_json
|
||||
end
|
||||
|
||||
def wiki_parent
|
||||
parent_page_id = params[:id]
|
||||
@wiki_parent_page = Page.where(:id => parent_page_id).first
|
||||
@table_fields = ["page_content.id", :name,:version,:update_at,:last_modified, :category]
|
||||
@categories = @module_app.categories.enabled.authorized(current_user).collect{|c| [c.title, c.id]}
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def update_params
|
||||
|
|
Loading…
Reference in New Issue