1. Alexander Schremmer
  2. domination

Commits

Alexander Schremmer  committed 10291b5

Fix SelectHandCards in case of count_lower == 0 and no suitable card.

  • Participants
  • Parent commits e570e6f
  • Branches default

Comments (0)

Files changed (1)

File domination/templates/game.html

View file
         You need to select at least {{ req.count_lower }} cards.
       {% endif %}
       {% endif %}
-      {% if req.count_upper != 1 %}
+      {% if req.count_upper != 1 or req.count_lower == 0 %}
         <form action="" method="post">
           <input type="hidden" name="req_id" value="{{ req_id }}">
       {% endif %}
           {% endif %}
         {% endcall %}
       {% endfor %}
-      {% if req.count_upper != 1 %}
-          <input type="submit" value="Select">
+      {% if req.count_upper != 1 or req.count_lower == 0%}
+        {% if req.count_lower == 0 %}
+        <input type="submit" name="canceled" value="Cancel">
+        {% endif %}
+        {% if req.count_upper != 1 %}
+        <input type="submit" value="Select">
+        {% endif %}
         </form>
       {% endif %}
     {% elif req_type == "SelectCard" %}