Class: EasyAdmin::Profile::SettingsComponent
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- EasyAdmin::Profile::SettingsComponent
- Defined in:
- app/components/easy_admin/profile/settings_component.rb
Instance Method Summary collapse
-
#initialize(user:) ⇒ SettingsComponent
constructor
A new instance of SettingsComponent.
- #view_template ⇒ Object
Methods inherited from BaseComponent
#easy_admin_url_helpers, #helpers, #rails_url_helpers
Methods included from EasyAdmin::Permissions::Component
#current_user_can?, #current_user_has_role?, #if_can, #if_has_role, #permission_attrs, #permission_button, #permission_case, #permission_classes, #permission_field, #permission_link, #unless_can, #unless_has_role
Methods included from FieldsHelper
#field_component, #render_field
Methods included from DashboardsHelper
#delta_badge_classes, #metric_value_classes, #render_card, #sparkline_color, #sparkline_points, #trend_direction, #trend_icon, #trend_indicator_classes
Constructor Details
#initialize(user:) ⇒ SettingsComponent
Returns a new instance of SettingsComponent.
4 5 6 |
# File 'app/components/easy_admin/profile/settings_component.rb', line 4 def initialize(user:) @user = user end |
Instance Method Details
#view_template ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'app/components/easy_admin/profile/settings_component.rb', line 8 def view_template div(class: "min-h-screen bg-gray-50 py-6") do div(class: "max-w-6xl mx-auto px-6") do # Page header div(class: "mb-8") do h1(class: "text-2xl font-semibold text-gray-900") { "Settings" } p(class: "text-gray-600 mt-1") { "Manage your account settings and preferences" } end # Settings layout with vertical tabs div( class: "bg-white rounded-lg overflow-hidden", data: { controller: "vertical-tabs" } ) do div(class: "flex") do # Left sidebar - Tab navigation # Right content area render_content_area end end end end end |