You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
797 B

  1. {% extends "base.html" %}
  2. {% block content %}
  3. <h2>New Game</h2>
  4. <form class="new-game-form" action="#" method="post">
  5. {% csrf_token %}
  6. {{ formset.non_form_errors }}
  7. <table class="new-game-form">
  8. {{ form.as_table }}
  9. </table>
  10. {{ formset.management_form }}
  11. <table class="players-form">
  12. {% for form in formset %}
  13. <tr class="player-{{ form.player_id }}">
  14. <th>Player #{{ form.player_id }}</th>
  15. <td>{{ form.as_p }}</td>
  16. </tr>
  17. {% endfor %}
  18. </table>
  19. <div class="button-container">
  20. <input type="submit" class="button button-create" value="Create Game"></input>
  21. </div>
  22. <div class="button-container">
  23. <a href="{% url 'index' %}" class="button button-main-menu">Back</a>
  24. </div>
  25. </form>
  26. {% endblock %}