This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
learnexa_content_update [2019/02/01 05:45] 182.72.26.6 [Database Changes] |
learnexa_content_update [2019/02/06 09:50] (current) 182.72.26.6 [Database Changes] |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| 1) Admin/Instructor should be able to update the contents created by them. | 1) Admin/Instructor should be able to update the contents created by them. | ||
| + | |||
| 2) There should also be an option to auto publish the content based on time periods. | 2) There should also be an option to auto publish the content based on time periods. | ||
| + | |||
| 3) Users enrolled to these updated contents should be notified and provided an option to refresh the content. | 3) Users enrolled to these updated contents should be notified and provided an option to refresh the content. | ||
| Line 28: | Line 30: | ||
| content_versions belongs_to content | content_versions belongs_to content | ||
| + | |||
| + | content has_many content_versions | ||
| Also remove contentable_id, contentable_type columns from content table. | Also remove contentable_id, contentable_type columns from content table. | ||
| Line 41: | Line 45: | ||
| | updated_at| date_time|updated date | | | updated_at| date_time|updated date | | ||
| - | Add a new table to save content details to be viewed by enrolled users | + | 2) Add a new table to save content version details to be viewed by enrolled users |
| Table name - enrolled_contents | Table name - enrolled_contents | ||
| Line 53: | Line 57: | ||
| | enrollment_id | integer | enrollment id to which it belongs to | | | enrollment_id | integer | enrollment id to which it belongs to | | ||
| | content_id | integer | content id | | | content_id | integer | content id | | ||
| - | | content_version_id | integer | conten_version id | | + | | content_version_id | integer | conten_version id | |
| + | | created_at| date_time |created date | | ||
| + | | updated_at| date_time|updated date | | ||
| + | |||
| + | ==== UI Template ==== | ||
| + | |||
| + | Following are the UI templates for updating video contents, the same will be applicable for documents, scorm and tincan contents. Web page and Quiz type contents UI stays the same no changes required. | ||
| + | |||
| + | 1) On Clicking "Edit" link | ||
| + | |||
| + | {{screen1.png}} | ||
| + | |||
| + | 2) On clicking the slider icon, options to add new content versions will be shown | ||
| + | |||
| + | {{screen2.png}} | ||
| + | |||
| + | 3) Player lightbox UI, to notify user that the content has been updated | ||
| + | {{screen3.png}} | ||