Skip to content

Commit 0e0a36d

Browse files
author
laurence
committed
limit of 12 points if points club upper than 12
1 parent 8cb5ae2 commit 0e0a36d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/booking.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ <h2>{{competition['name']}}</h2>
1010
<form action="/purchasePlaces" method="post">
1111
<input type="hidden" name="club" value="{{club['name']}}">
1212
<input type="hidden" name="competition" value="{{competition['name']}}">
13-
<label for="places">How many places?</label><input type="number" min="0" max="{{club['points']}}" name="places" id=""/>
13+
<label for="places">How many places?</label>
14+
<input type="number" min="0" max="{{ 12 if club['points'] > 12 else club['points'] }}" name="places" id=""/>
1415
<button type="submit">Book</button>
1516
</form>
1617
</body>

0 commit comments

Comments
 (0)