Skip to content

Topic scaffold #16

@dcollie2

Description

@dcollie2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions