fnitu / edu-hospice

Application developed for SIIT Challenge Accepted – CODVIDHACK 2020
https://edu-hospice.herokuapp.com
2 stars 2 forks source link

Admin course create #18

Open fnitu opened 4 years ago

fnitu commented 4 years ago

A new page containing the necessary course details:

  1. name
  2. short description
  3. description
  4. author(s): text
  5. image: text: URL (upload to be later added)
  6. price: number
  7. currency (EUR/RON) - dropdown (enum)
  8. role (medical personnel/multi-disciplinary personnel) - dropdown (enum)
  9. course type (always on/with live sessions) - dropdown (enum)
  10. course start date - calendar (date)
  11. course end date - calendar (date)
  12. status: unpublished/published/closed- dropdown (enum)
  13. hours: number (in hours)
  14. access days: number (in days)
  15. credits: number

Prerequisite: A "Create course" button(on a toolbar) in the course list page: https://edu-hospice.herokuapp.com/#/admin/course-list

The toolbar is created in #58

Related issue: https://github.com/danutchindris/edu-hospice-api/issues/125

fnitu commented 3 years ago

Price/hours/credits fields should be numbers. The short description and description field should be shown on multiple lines, have a defined maximum width, and only after to show the scrollbar.

The actual/maximum number of characters should also be displayed as a counter, for textarea and text fields.

Short description - 500 characters, description: 2000 characters. Name: 150 characters. Authors: 500 characters (should be textarea instead of input) Hours: 1000 value maximum, 0 minimum Price: minimum 0 Access days: minimum 0 (no decimals) Credits: minimum 0 (no decimals)

A tab component should be added with Course Details and Course Content. When a new course is created, the active tab should be changed to Course Content (empty tab - see #61)

ancutadaniel commented 3 years ago

I still have in progress the action to change tabs on submit.

fnitu commented 3 years ago

To be checked if all the constraints from the server are also enforced on front-end and if the user receives validation messages.

fnitu commented 3 years ago

Please change course name to input.

fnitu commented 3 years ago

To be checked if the invalid field message can contain the min/max constraints, and also to check if the validation for decimals can also be implemented. The invalid message can be the concatenation between the required message + all the constraints on the field.

ancutadaniel commented 3 years ago

Please change course name to input.

done - create a custom input field for name