Skip to content

Instantly share code, notes, and snippets.

@labra
Created March 28, 2014 09:38
Show Gist options
  • Save labra/9828951 to your computer and use it in GitHub Desktop.
Save labra/9828951 to your computer and use it in GitHub Desktop.
Countries view
@(countries: List[Country])
<html>
<h1>Vista de países</h1>
<table>
@for(country <- countries) {
<tr>
<td>@country.code</td>
<td>@country.name</td>
</tr>
}
</table>
<h1>New country</h1>
<form method="post" action="@routes.Application.addCountry">
<input name="code" type="text">
<input name="name" type="text">
<input type="submit">
</form>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment