public static Result teamRateIndex() { User user = User.findByEmail(request().username()); return ok( reportIndex.render( TeamRateReportSearchUI.getInstance().build(), MenuBarFixture.build(request().username()), user)); }
public static Result teamRateSearch() { User user = User.findByEmail(request().username()); DynamicForm form = DynamicForm.form().bindFromRequest(); form.data().put("userEmail", user.email); return ok(Json.toJson(TeamRateReportSearchUI.getInstance().build().doSearch(form))); }