views: convert mod dashboard + admin user edit page to simple form.
Fixes bug with the user level select dropdown on the mod dashboard page missing the builder level.
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
module Admin::UsersHelper
|
||||
def user_level_select(object, field)
|
||||
options = [
|
||||
["Member", User::Levels::MEMBER],
|
||||
["Gold", User::Levels::GOLD],
|
||||
["Platinum", User::Levels::PLATINUM],
|
||||
["Builder", User::Levels::BUILDER],
|
||||
["Moderator", User::Levels::MODERATOR],
|
||||
["Admin", User::Levels::ADMIN]
|
||||
]
|
||||
select(object, field, options)
|
||||
end
|
||||
end
|
||||
@@ -1,16 +0,0 @@
|
||||
module Moderator
|
||||
module DashboardsHelper
|
||||
def user_level_select_tag(name, options = {})
|
||||
choices = [
|
||||
["", ""],
|
||||
["Member", 20],
|
||||
["Gold", 30],
|
||||
["Platinum", 31],
|
||||
["Moderator", 40],
|
||||
["Admin", 50]
|
||||
]
|
||||
|
||||
select_tag(name, options_for_select(choices, params[name].to_i), options)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user