Pet Rescue is an application making it easy to link adopters/fosters with pets. We work with grassroots pet rescue organizations to understand how we can make the most impact.
MIT License
61
stars
105
forks
source link
Org FAQ: Enable Staff to CRUD FAQs via the UI. #659
This PR https://github.com/rubyforgood/pet-rescue/pull/657/files added the table and model for FAQs, which allows an Org to CRUD their own frequently asked questions/answers. Now we need to be able to handle this in the UI. Much of this implementation is very similar to how we handle the organization's Default Pet Tasks, so refer to that.
Note, we have an order column on FAQ, but we do not need to handle that in this PR.
Acceptance criteria:
Add Controller with REST actions, and routes, scoped under Organization, authorize the actions using the policy.
Add PolicyClass and a new Staff level permission manage_FAQs
Add link in Dashboard side nav to 'FAQ'
Add views to allow CRUD of an FAQ
Show FAQs in an index table, where I can edit or delete an FAQ
This PR https://github.com/rubyforgood/pet-rescue/pull/657/files added the table and model for FAQs, which allows an Org to CRUD their own frequently asked questions/answers. Now we need to be able to handle this in the UI. Much of this implementation is very similar to how we handle the organization's Default Pet Tasks, so refer to that.
Note, we have an
order
column on FAQ, but we do not need to handle that in this PR.Acceptance criteria:
manage_FAQs