add new theme
[mlpccg-meta.git] / meta / templates / rate.html
1 {% extends "base.html" %}
2 {% load humanize %}
3
4 {% block content %}
5
6 <div class="row">
7 <div class="col-xs-12">
8 <h2><a href="{{ deck.ponyhead_link }}">{{ deck.description }}</a></h2>
9 <p>Decks similiar to yours and their placement in past tournaments:</p>
10 <form class="form" action="{% url 'meta.views.rate' %}" method="post" role="form">
11 <table class="table">
12 <tr>
13 <th>Deck</th>
14 <th>Placement</th>
15 <th>Tournament</th>
16 <th colspan="2">Date</th>
17 </tr>
18 {% for deck, record in similiar reversed %}
19 <tr class="{% if not record.verified %}warning{% endif %}">
20 <td><a href="{{ deck.ponyhead_link }}">{{ deck.name }}</a></td>
21 <td>{{ record.placement|ordinal }}</td>
22 <td><a href="{% url 'meta.views.tournaments_detail' record.tournament.id %}">{{ record.tournament.name }}</a></td>
23 <td>{{ record.tournament.date }}</td>
24 <td>{% if not record.verified %}user-submitted{% endif %}</td>
25 </tr>
26 {% endfor %}
27 <tr>
28 <td colspan="5">
29 <strong>Played this deck in a tournament? Add your result here!</strong>
30 <p class="help-block">This contibutes towards a better overview over the meta-game.</p>
31 </td>
32 </tr>
33 {% csrf_token %}
34 <input type="hidden" name="url" value="{{ deck.ponyhead_link }}"/>
35 <tr class="info">
36 <td><input type="text" name="d_name" class="form-control" placeholder="Deck name"/></td>
37 <td>
38 <select name="t_placement" class="form-control">
39 <option value="1">1st</option>
40 <option value="2">2nd</option>
41 <option value="3">3rd</option>
42 <option value="4">4th</option>
43 <option value="5">5th</option>
44 <option value="6">6th</option>
45 <option value="7">7th</option>
46 <option value="8">8th</option>
47 </select>
48 </td>
49 <td><input type="text" name="t_name" class="form-control typeahead-tournaments" placeholder="Tournament name"/></td>
50 <td><input type="date" name="t_date" class="form-control"/></td>
51 <td><button type="submit" class="btn btn-primary">Submit</button></td>
52 </tr>
53 </table>
54 </form>
55 </div>
56 </div>
57
58 {% endblock %}