game_over.html 992 B

123456789101112131415161718192021222324252627282930313233343536
  1. {% extends 'game/base.html' %} {% block content %}
  2. <div class="game-over">
  3. <h2>☠️ GAME OVER ☠️</h2>
  4. <p>You survived 30 days!</p>
  5. <div style="margin: 20px 0">
  6. <p>Cash: ${{ game.cash|floatformat:2 }}</p>
  7. <p>Inventory Value: ${{ inventory_value|floatformat:2 }}</p>
  8. <p style="color: #f00">Debt: -${{ game.debt|floatformat:2 }}</p>
  9. <hr style="border-color: #0f0; margin: 10px 0" />
  10. <p class="final-score">Final Score: ${{ final_score|floatformat:2 }}</p>
  11. </div>
  12. <form method="post">
  13. {% csrf_token %}
  14. <input
  15. type="text"
  16. name="name"
  17. placeholder="Enter your name"
  18. maxlength="100"
  19. style="padding: 10px; width: 200px; margin: 10px"
  20. />
  21. <button type="submit">SAVE SCORE</button>
  22. </form>
  23. <div style="margin-top: 20px">
  24. <a href="{% url 'new_game' %}">
  25. <button>PLAY AGAIN</button>
  26. </a>
  27. <a href="{% url 'high_scores' %}">
  28. <button>HIGH SCORES</button>
  29. </a>
  30. </div>
  31. </div>
  32. {% endblock %}