You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
463 B
24 lines
463 B
@(tasks:List[Task], taskForm:Form[String])
|
|
|
|
@import helper._
|
|
|
|
@main("Todo List") {
|
|
|
|
<h1>@tasks.size task(s)</h1>
|
|
<ul>
|
|
@tasks.map { task =>
|
|
<li>
|
|
@task.label
|
|
@form(routes.Application.deleteTask(task.id)) {
|
|
<input type="submit" value="Delete">
|
|
}
|
|
</li>
|
|
}
|
|
</ul>
|
|
<h2>Add a new task</h2>
|
|
@form(routes.Application.newTask) {
|
|
@inputText(taskForm("label"))
|
|
<input type="submit" value="Create">
|
|
}
|
|
|
|
}
|