Scala-Play-Slick-Demo/app/views/cars.scala.html

21 lines
336 B
HTML
Raw Normal View History

2020-05-16 10:10:23 +00:00
@import com.example.user.Car
@(cars: Seq[Car])
@main("Cars Page") {
<h2>Cars</h2>
<table>
<tr>
<th>Id</th>
<th>Model</th>
</tr>
@for(car <- cars){
<tr>
<td>@car.id</td>
<td>@car.model</td>
</tr>
}
</table>
}