circulate icon indicating copy to clipboard operation
circulate copied to clipboard

Allow e-mail help address in footer to be customized under multi-tenancy

Open rkim00 opened this issue 3 years ago • 4 comments

As an admin at the library level, I want to be able to edit the e-mail help address in the footer so that I can change that e-mail address if necessary.

Allow someone with admin permissions at the library level to be able to edit the e-mail address that appears in the footer in the public-facing side of the Circulate app. (For example, [email protected] in the footer on https://app.chicagotoollibrary.org/ ).

The UI to edit this could be added to the page "Customize Library-level Settings" created in #187 .

Elements of this

  • in admin, Customer Library-level Settings, create UI to display e-mail and edit it.
  • back-end changes to differentiate e-mail address by library and to display appropriately

Note that this e-mail may be used in other places as well, particularly the app-generated e-mails but this is written up as a separate story.

rkim00 avatar Sep 21 '21 18:09 rkim00

Hi @jim, can I work on this one?

LakshyaKhatri avatar Jan 05 '22 17:01 LakshyaKhatri

Hey! 👋🏽 I'm planning to put this under settings/library_controller with the following actions:

  • #index, /admin/settings/library: to list all library level settings (header image, and email for now)
  • #edit_help_email, /admin/settings/library/edit_help_email: render a form to update email address
  • #update_help_email, /admin/settings/library/update_help_email: update the email address

The index will take a @library_level_settings array and will render a table for each setting

Am I on the right track?

LakshyaKhatri avatar Jan 06 '22 17:01 LakshyaKhatri

cc @jim

LakshyaKhatri avatar Jan 07 '22 04:01 LakshyaKhatri

I think that basic plan sounds good. I would alter the naming a bit:

  1. You can call the controller Settings::LibrariesController for consistency (even though it's for a singular resource, Rails likes controller names to be pluralized).
  2. If we use basic edit/update actions to allow the admin change the email field on the library, we can then add other fields later as needed without needing to add more actions to the controller.

jim avatar Jan 10 '22 06:01 jim