lib/reader_admin_ui.rb in radiant-reader-extension-3.0.33 vs lib/reader_admin_ui.rb in radiant-reader-extension-3.0.35

- old
+ new

@@ -27,11 +27,11 @@ def load_default_reader_regions OpenStruct.new.tap do |reader| reader.edit = Radiant::AdminUI::RegionSet.new do |edit| edit.main.concat %w{edit_header edit_form} - edit.form.concat %w{edit_name edit_email edit_nickname edit_password reader_groups edit_address edit_phone edit_description edit_notes} + edit.form.concat %w{edit_name edit_email edit_nickname edit_password edit_dob reader_groups edit_address edit_phone edit_description edit_notes} edit.form_bottom.concat %w{edit_timestamp edit_buttons} end reader.index = Radiant::AdminUI::RegionSet.new do |index| index.thead.concat %w{title_header email_header groups_header description_header modify_header} index.tbody.concat %w{title_cell email_cell groups_cell description_cell modify_cell} @@ -102,26 +102,26 @@ def load_default_account_regions OpenStruct.new.tap do |account| account.dashboard = Radiant::AdminUI::RegionSet.new do |dashboard| dashboard.main.concat %w{dashboard/welcome dashboard/groups} - dashboard.sidebar.concat %w{dashboard/profile dashboard/messages dashboard/directory} + dashboard.sidebar.concat %w{dashboard/profile dashboard/messages} end account.index = Radiant::AdminUI::RegionSet.new do |index| index.main.concat %w{readers/directory} end account.show = Radiant::AdminUI::RegionSet.new do |show| show.main.concat %w{readers/memberships readers/description} show.sidebar.concat %w{readers/profile} end account.edit = Radiant::AdminUI::RegionSet.new do |edit| edit.main.concat %w{preamble form gravatar} - edit.form.concat %w{edit_name edit_email edit_username edit_password} + edit.form.concat %w{edit_name edit_email edit_password} edit.form_bottom.concat %w{edit_buttons} end account.edit_profile = Radiant::AdminUI::RegionSet.new do |edit_profile| edit_profile.main.concat %w{preamble profile_form gravatar} - edit_profile.profile_form.concat %w{edit_honorific edit_name edit_email edit_phone edit_mobile edit_address edit_shareability} + edit_profile.profile_form.concat %w{edit_honorific edit_name edit_dob edit_phone edit_mobile edit_address edit_shareability} edit_profile.form_bottom.concat %w{edit_buttons} end account.new = account.edit end end