Add the possibility for students to change the location and question of their request (#222)
requested to merge mmatusovic/queue:222-students-should-be-able-to-edit-comment-and-perhaps-even-question into development
This merge request contains a feature that students can update their room, the comment (their location in the room) and the question.
Update block
There already exists a possibility to update the room, next to this I added two textfields where student can see their current comment / question and update them if they choose to. Also the title of the block is changed. I decided to get rid of the word room, since logically it is a subset of location and with all three words the title seemed too long.
Update message changed
Since now, the student is allowed to change more than just their room location, the update message should also change to reflect this.
Other code changes
- Most of other code changes is renaming of methods and parameters. As already explained all names such as
updateRoom
andupdateRoomInfo
are changed toupdateRequestInfo
to correctly name the method. - To pass around the values of comment and question new parameters were added to controller on server.
- Showing and hiding of the two textfields is adjusted so that they are visible.
Closes #222 (closed)
Edited by Marko Matušovič