1 {% extends
"base.html" %}
3 {% load url from future %}
8 <div class=
"col-xs-12">
9 <h2><a href=
"{{ deck.ponyhead_link }}">{{ deck.description }}
</a></h2>
10 <p>Decks similiar to yours and their placement in past tournaments:
</p>
11 <form class=
"form" action=
"{% url 'meta.views.rate' %}" method=
"post" role=
"form">
17 <th colspan=
"2">Date
</th>
19 {% for deck, record in similiar reversed %}
20 <tr class=
"{% if not record.verified %}warning{% endif %}">
21 <td><a href=
"{{ deck.ponyhead_link }}">{{ deck.name }}
</a></td>
22 <td>{{ record.placement|ordinal }}
</td>
23 <td><a href=
"{% url 'meta.views.tournaments_detail' record.tournament.id %}">{{ record.tournament.name }}
</a></td>
24 <td>{{ record.tournament.date }}
</td>
25 <td>{% if not record.verified %}user-submitted{% endif %}
</td>
30 <strong>Played this deck in a tournament? Add your result here!
</strong>
31 <p class=
"help-block">This contibutes towards a better overview over the meta-game.
</p>
35 <input type=
"hidden" name=
"url" value=
"{{ deck.ponyhead_link }}"/>
37 <td><input type=
"text" name=
"d_name" class=
"form-control" placeholder=
"Deck name"/></td>
39 <select name=
"t_placement" class=
"form-control">
40 <option value=
"1">1st
</option>
41 <option value=
"2">2nd
</option>
42 <option value=
"3">3rd
</option>
43 <option value=
"4">4th
</option>
44 <option value=
"5">5th
</option>
45 <option value=
"6">6th
</option>
46 <option value=
"7">7th
</option>
47 <option value=
"8">8th
</option>
50 <td><input type=
"text" name=
"t_name" class=
"form-control typeahead-tournaments" placeholder=
"Tournament name"/></td>
51 <td><input type=
"date" name=
"t_date" class=
"form-control"/></td>
52 <td><button type=
"submit" class=
"btn btn-primary">Submit
</button></td>