Multiple annotations found at this line:
- could not find implicit value for parameter messages: play.api.i18n.Messages
- not enough arguments for method apply: (implicit handler: views.html.helper.FieldConstructor,
implicit messages: play.api.i18n.Messages)play.twirl.api.HtmlFormat.Appendable in class input.
Unspecified value parameter messages.
这是我的HTML代码:
@phoneField(field: Field, className: String = "phone") = {
@input(field, '_label -> "Phone numbers", '_class -> className) { (id, name, value, _) =>
<input type="text" name="@name" value="@value">
<a class="removePhone btn danger">Remove</a>
}
}