@(loggedUser: Option[User], loginInfo: Option[LoginInfo], cards: Seq[Card], addCardInput: AddCardInput)(implicit request: RequestHeader, messages: Messages)
@category(card: Card) = {
<tr>
<td>
@b3.form(routes.DeckBuilder.deleteCard()) {
@helper.CSRF.formField
@b3.submit('class -> "btn btn-primary") { Submit }
}
</td>
</tr>
}
@views.html.templates.mainApp(Messages("app.title"), tab = "index", loggedUser = loggedUser, loginInfo = loginInfo)) {
<h2 class="text-primary">Your Cards</h2>
<p class="lead">
@loggedUser.map { user =>
<div class="modal-body">
<table class="table">
<tbody>
@cards.map(grouped => category(grouped))
</tbody>
</table>
</div>
}.getOrElse {
@Html(Messages("index.notLogged", routes.Auth.signIn, routes.Auth.startSignUp)) <br/>
@Html(Messages("index.resetPassword", routes.Auth.startResetPassword))
}
</p>
}
上面的代码产生错误
找不到参数 fc 的隐式值:views.html.b3.B3FieldConstructor
错误指向我正在构建提交按钮的行。我知道它需要隐式字段构造函数,并且在另一个文件中,我已成功完成此操作,但那是表单不在辅助方法中的地方。