circulate
circulate copied to clipboard
Allow e-mail help address in footer to be customized under multi-tenancy
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.
Hi @jim, can I work on this one?
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?
cc @jim
I think that basic plan sounds good. I would alter the naming a bit:
- You can call the controller
Settings::LibrariesController
for consistency (even though it's for a singular resource, Rails likes controller names to be pluralized). - 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.