Advertisement
ameison

Iterate Lis[Object] in Scala Template

Nov 2nd, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.24 KB | None | 0 0
  1. @(registerForm : Form[forms.TeacherWelcomeForm], lstCountries: List[models.Countries]){
  2.  
  3. @select(field = registerForm("countryId"), lstCountries.map(s => s.id -> s.name), 'class -> "your_class", '_default -> Messages("msg123.register.msj1222"))
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement