Allow supervisors to write a note associated with their projects #8
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "3399-supervisor-project-note"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There is a need among supervisors to maintain some work notes for each project. Where they are in the process, what students need to do, and other such things.
This PR gives the supervisors the ability to write a note for each project on their overview page.
Card 3399
@ -0,0 +96,4 @@
@Override
protected void onSubmit() {
projectNoteService.setUserNote(
model.getObject(),
Rename model.getObject to projectModel.getObject ?
Would make it more readable and conform with the projectNoteService.setUserNote method.
@ -0,0 +62,4 @@
super(id, model);
ModalWindowPlus modal = new LargeModalWindow("edit_note_modal");
modal.setTitle(model.map(Project::getTitle).map(projectTitle -> "View/Edit note for " + projectTitle));
Use of String.format could work here?
Example
modal.setTitle(model.map(Project::getTitle).map(projectTitle -> String.format("View/Edit note for %s", projectTitle)));
What do you think?
Replaced with proper i18n
If note formatted and you look at it in full note mode then it removes the formatting. Would be prettier if it keeps it's formatting when looking at full note mode.
Excellent, thanks for changes. Have a great day.