diff options
Diffstat (limited to 'views/http/village.twig')
-rw-r--r-- | views/http/village.twig | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/views/http/village.twig b/views/http/village.twig index a498ea6..48bb16d 100644 --- a/views/http/village.twig +++ b/views/http/village.twig @@ -92,9 +92,11 @@ {% include 'components/timer.twig' with { 'time': event.event.time|date('c') } %} </td> <td> - <a class="btn" href="/village/{{ village.x }}/{{ village.y }}/building/UpgradeBuilding/build/cancel"> - Cancel - </a> + {% if event.event.villageId == village.id %} + <form action="/event/{{ event.event.id }}/cancel" method="post"> + <input type="submit" value="Cancel"> + </form> + {% endif %} </td> </tr> {% endfor %} @@ -121,9 +123,11 @@ {% include 'components/timer.twig' with { 'time': event.event.time|date('c') } %} </td> <td> - <a class="btn" href="/village/{{ village.x }}/{{ village.y }}/unit/train/cancel"> - Cancel - </a> + {% if event.event.villageId == village.id %} + <form action="/event/{{ event.event.id }}/cancel" method="post"> + <input type="submit" value="Cancel"> + </form> + {% endif %} </td> </tr> {% endfor %} |