Skip to content

Add the possibility for students to change the location and question of their request (#222)

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.

before: empty-before now: empty-after

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.

before: updatetext-before

now: updatetext-after

Other code changes

  • Most of other code changes is renaming of methods and parameters. As already explained all names such as updateRoom and updateRoomInfo are changed to updateRequestInfo 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č

Merge request reports