Open fnitu opened 4 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)
I still have in progress the action to change tabs on submit.
To be checked if all the constraints from the server are also enforced on front-end and if the user receives validation messages.
Please change course name to input.
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.
Please change course name to input.
done - create a custom input field for name
A new page containing the necessary course details:
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