Exemplo n.º 1
0
 public static Result teamRateIndex() {
   User user = User.findByEmail(request().username());
   return ok(
       reportIndex.render(
           TeamRateReportSearchUI.getInstance().build(),
           MenuBarFixture.build(request().username()),
           user));
 }
Exemplo n.º 2
0
 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)));
 }