ucsb-cs56-w20 / open-lab-scheduler

Display open lab hours for CS courses
1 stars 3 forks source link

Add a field for type to TutorAssignment #45

Open qiandrew opened 4 years ago

qiandrew commented 4 years ago

Type should be: TA, LA, or 190J

brandonnadell commented 4 years ago

In src/main/java/edu/ucsb/cs56/ucsb-open-lab-scheduler/entities/TutorAssignment.java, add a String field called type. Add a parameter in the constructor so this field can be set when constructing a TutorAssignment. Add getter and setter methods. In the file for CRUD operations, add a dropdown to choose a TutorAssignment type. In the file for displaying all the tutors, add a column for TutorAssignment type.

themason2011 commented 4 years ago

Branch called "TEAM-t-5pm-d-mc-FieldType"

themason2011 commented 4 years ago

Add public final String[] TUTOR_TYPES = {"TA", "LA", "190J"} to view and add try/catch exception for assigning type in order to handle people trying to add wrong type into constructor.

themason2011 commented 4 years ago

Added Radio buttons in manage.html instead of dropdown, hardcoded.