Form validation and form helper

后端 未结 3 424
旧巷少年郎
旧巷少年郎 2021-01-30 12:00

I still struggle with the form validation and form helpers in Play 2.0. I have this login screen that I use together with the Twitter Bootstrap. So my login form looks like this

3条回答
  •  北恋
    北恋 (楼主)
    2021-01-30 12:23

    I'm in the same battle to show the errors :) for now I'm using :

    @elements.errors.mkString(", ")
    

    That would be hidden if there is no error, take a look on this : http://twitter.github.com/bootstrap/components.html#labels-badges

    but still looking for a way to translate "Required" to portuguese.

提交回复
热议问题