vt1kS : html
Umieszczono: 2014-06-24 00:21:55
Format: Czysty text, HTML, HTML źródło, Plik svg, Plik svg źródło, RTF, LaTeX
W każdym formacie kodowanie wyjściowe to UTF-8

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@(page: String, matches: ArrayList[ArrayList[String]], isLoggedIn: Boolean, userInfo: UserInfo)

@import bootstrap3._
@import helper._

@Main(page, isLoggedIn, userInfo) {
   <div class="container">
   <div class="well">
   @helper.form(action = routes.Application.postBook(), 'id -> "myForm") {
   <input class="btn btn-lg btn-danger btn-block" type="submit" value="Book">
     <table class="table table-striped table-bordered">
     <thead>
          <th>Date</th>
          <th>Time</th>
          <th>Team 1</th>
          <th>Team 2</th>
          <th>Your choice</th>
     </thead>
     <tbody>
    @for( p <- matches) {
    <tr>
    @for( r <- p ) {
    @if(!r.contains("?")) {
    <td>@r</td>
    }
    }
    <td>
    
    <select class="form-control" name="@p.get(6)">
        <option>None</option>
        <option>Team 1 wins</option>
        <option>Team 2 wins</option>
        <option>Draw</option>
    </select>
    }</td>
    </tr>
    </tbody>
    </table>
     } 
    </div>
   </div>
}