2014-12-05 06:37:24 +00:00
|
|
|
class Desktop::BooksController < DesktopAdminController
|
2015-01-09 08:49:04 +00:00
|
|
|
include Admin::PersonalBooksHelper
|
2014-12-05 06:37:24 +00:00
|
|
|
|
|
|
|
def menu
|
|
|
|
user = OrbitHelper.current_user
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"title" => "List",
|
|
|
|
"layout" => "list"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"title" => "Add/Edit",
|
|
|
|
"layout" => "form",
|
|
|
|
"new_path" => "/#{I18n.locale.to_s}/admin/books/new?member_profile_id=#{user.member_profile_id.to_param}",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def list
|
|
|
|
get_paper_list
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|