Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topic scaffold #16

Open
11 tasks
dcollie2 opened this issue Jan 2, 2025 · 0 comments
Open
11 tasks

Topic scaffold #16

dcollie2 opened this issue Jan 2, 2025 · 0 comments

Comments

@dcollie2
Copy link
Collaborator

dcollie2 commented Jan 2, 2025

Summary

Create the Topic CRUD using scaffolds.

Why?

Topics are the content heart of the app. Along with their related file uploads (to be added in a separate issue), they represent the training materials that are uploaded by providers and delivered to users.

Dependency

Set up rights by role before doing this.

Details

Image

The rightmost column and the fields labeled "DEFUNCT" can be ignored. They are there for reference when talking to the stakeholders and for when we deal with later issues involving migrating old data.

  • Topic CRUD works
  • View HTML modified to work with our theme
  • Belongs to provider (required)
  • Belongs to language (required)
  • Description is required
  • State is an enumerable with two items: active and archived, defaulting to active
  • Non-admins can create new topics only for their provider
  • Non-admins can archive topics for their provider; they cannot destroy
  • Admins can archive or destroy topics (Full CRUD access, basically)
  • Index page shows all topics by year, title, created_at.
  • Index page only shows topics the user can access

Future Development Notes

We will do a lot more with the UI for this later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant