Advertisement
Guest User

Iterate List[Object] in Scala Template

a guest
Nov 2nd, 2014
124
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"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement