Skip to content

CGP13: Course Resources

Mohamed Labib edited this page Jan 21, 2016 · 14 revisions

Resources entity:

  • type [Presentations, Activities or Exams] text*
  • name text*
  • path array*
  • course Course*
  • status int*

Course entity:

  • resources one to many

View:

  • Courses list
  • link for resources with course id passed
  • Static Admin menu
  • resources for all courses
  • Resources CRUD
  • List resources
    • filtered by course id or not
    • delete only accessible by admin
    • name is a downloadable link
    • original file path is not visible to user
    • download action need to access resource instead of course to get file path
    • Inactive rows are red
  • Create:
    • Add more/ remove js functionality need to be supported
    • Status is not seen by ATP, not approved is set
  • Edit:
    • Status is kept as is if by ATP
    • only current record is edited [no add more/ remove here]
  • Delete:
    • Delete file physical and delete entity
  • Course Calendar More:
  • Resources available for logged in users with granted access to course calendar
  • Not enrolled students can neither view nor download resources
  • Resources are accessed via course resources relation

ACL:

  • resources list per course is accessible by ATP
  • resources list is not accessible by ATP
  • ATP can access resources CRUD other actions

Old Data:

  • Remove entity/ controller/ form/ views old changes

Nice to have

  • weight field to order resources by
  • courses selector in resources list
  • file deleted should be moved to trash dir, which will be freed every set of days '30 for instance'