reworking of file structure
[mlpccg-meta.git] / meta / templates / index.html
index 8b87867..20e0830 100644 (file)
@@ -1,5 +1,6 @@
 {% extends "base.html" %}
 {% load meta_extras %}
+{% load url from future %}
 
 {% block jumbotron %}
 <div class="jumbotron">
@@ -12,7 +13,7 @@
         {% csrf_token %}
         <div class="form-group">
           <label class="sr-only" for="ponyheadURL">ponyhead decklist url</label>
-          <input type="url" name="url" class="form-control input-lg" id="ponyheadURL" placeholder="Deck URL"/>
+          <input type="url" name="url" class="form-control input-lg" id="ponyheadURL" placeholder="PonyHead URL"/>
           <button type="submit" class="btn btn-lg btn-default btn-primary">Tell me!</button>
         </div>
       </form>
@@ -40,7 +41,7 @@
         <td>
           <ul class="list-inline">
             {% for d in decks %}
-            <li><a href="{{ d.ponyhead_link }}">{{ d.name }}</a></li>
+            <li><a href="{{ d.ponyhead_link }}">{{ d|deckicon }}</a></li>
             {% endfor %}
           </ul>
         </td>
 {% endblock %}
 
 {% block jumbotron_end %}
+<!--
 <div class="jumbotron">
   <div class="container">
-    <h1>Is your deck not on the list?</h1>
+    <h1>Not on the list?</h1>
     <p> Paste your <a href="http://ponyhead.com/deckbuilder">ponyhead.com</a> URL here and help make this site better!</p>
     <p>
       <form action="{% url 'meta.views.rate' %}" method="post" class="form-inline" role="form">
         {% csrf_token %}
         <div class="form-group">
           <label class="sr-only" for="ponyheadURL">ponyhead decklist url</label>
-          <input type="url" name="url" class="form-control input-lg" id="ponyheadURL" placeholder="Deck URL"/>
+          <input type="url" name="url" class="form-control input-lg" id="ponyheadURL" placeholder="PonyHead URL"/>
+          <label class="sr-only" for="decklistName">decklist name</label>
+          <input type="text" name="text" class="form-control input-lg" id="decklistName" placeholder="Deck name (optional)"/>
           <button type="submit" class="btn btn-lg btn-default btn-primary">Add me!</button>
         </div>
       </form>
     </p>
   </div>
 </div>
+-->
 {% endblock %}