* when: GET /:user/:project/milestone/:id/editform
*/
@With(AnonymousCheckAction.class)
@IsAllowed(value = Operation.UPDATE, resourceType = ResourceType.MILESTONE)
public static Result editMilestoneForm(String userName, String projectName, Long milestoneId) {
Project project = Project.findByOwnerAndProjectName(userName, projectName);
Milestone milestone = Milestone.findById(milestoneId);
Form<Milestone> editForm = new Form<>(Milestone.class).fill(milestone);
return ok(edit.render("title.editMilestone", editForm, milestoneId, project));
}