Change layout to member backend page.

This commit is contained in:
BoHung Chiu 2021-03-08 10:09:44 +08:00
parent 8dd6ba7468
commit 4671956309
2 changed files with 13 additions and 13 deletions

View File

@ -1,4 +1,4 @@
class Admin::PersonalPluginFieldsController < OrbitAdminController
class Admin::PersonalPluginFieldsController < OrbitMemberController
require 'fileutils'
include Admin::PersonalPluginFieldsHelper
before_action :set_personal_plugin_field, only: [:show, :edit , :update, :destroy, :fields_setting, :update_fields_setting,:generate_plugin]

View File

@ -2,21 +2,21 @@ require "yaml"
module PersonalPluginGenerator
class Engine < ::Rails::Engine
initializer "personal_plugin_generator" do
OrbitApp.registration "PersonalPluginGenerator", :type => "ModuleApp" do
OrbitApp.registration "PersonalPluginGenerator", :type => "OrbitMemberModule" do
base_url File.expand_path File.dirname(__FILE__)
categorizable
authorizable
side_bar do
head_label_i18n 'personal_plugin_generator.personal_plugin_generator', icon_class: "icons-graduation"
available_for "users"
active_for_controllers (['admin/personal_plugin_fields'])
head_link_path "admin_personal_plugin_fields_path"
context_link 'personal_plugin_generator.personal_plugin_generator',
:link_path=>"admin_personal_plugin_fields_path" ,
:priority=>1,
:active_for_action=>{'admin/personal_plugin_fields'=>'index'},
:available_for => 'users'
end
side_bar do
head_label_i18n 'personal_plugin_generator.personal_plugin_generator', icon_class: "icons-graduation"
available_for "users"
active_for_controllers (['admin/personal_plugin_fields'])
head_link_path "admin_personal_plugin_fields_path"
context_link 'personal_plugin_generator.personal_plugin_generator',
:link_path=>"admin_personal_plugin_fields_path" ,
:priority=>1,
:active_for_action=>{'admin/personal_plugin_fields'=>'index'},
:available_for => 'users'
end
end
end
end