remove copyright
[mlpccg-meta.git] / meta / templates / rate.html
1 {% extends "base.html" %}
2 {% load humanize %}
3 {% load url from future %}
4
5 {% block content %}
6
7 <div class="row">
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">
12 <table class="table">
13 <tr>
14 <th>Deck</th>
15 <th>Placement</th>
16 <th>Tournament</th>
17 <th colspan="2">Date</th>
18 </tr>
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>
26 </tr>
27 {% endfor %}
28 <tr>
29 <td colspan="5">
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>
32 </td>
33 </tr>
34 {% csrf_token %}
35 <input type="hidden" name="url" value="{{ deck.ponyhead_link }}"/>
36 <tr class="info">
37 <td><input type="text" name="d_name" class="form-control" placeholder="Deck name"/></td>
38 <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>
48 </select>
49 </td>
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>
53 </tr>
54 </table>
55 </form>
56 </div>
57 </div>
58
59 {% endblock %}