Skip to content

Instantly share code, notes, and snippets.

@trepidacious
Created November 2, 2012 16:09
Show Gist options
  • Select an option

  • Save trepidacious/4002351 to your computer and use it in GitHub Desktop.

Select an option

Save trepidacious/4002351 to your computer and use it in GitHub Desktop.
User form
class InsertUserView(t: User) extends InsertCometView[User](t){
def makeView(t: User) = AjaxListOfViews(ListVal(allViews))
private val allViews = List[AjaxView](
AjaxTextView( "Email", Path{t.email}),
AjaxTextView( "First Name", Path{t.firstName}),
AjaxTextView( "Last Name", Path{t.lastName}),
AjaxPassView( Path(t.passHash)),
AjaxStringView( "Validated", Cal{t.validated()})
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment