35 lines
1.1 KiB
HTML
35 lines
1.1 KiB
HTML
{{ define "content" }}
|
|
<div class="container py-5">
|
|
<h2>Add Ticket for {{ .Syndicate.Name }}</h2>
|
|
|
|
<form method="POST">
|
|
{{ .CSRFField }}
|
|
|
|
<div class="mb-3">
|
|
<label for="game_type" class="form-label">Game Type</label>
|
|
<select class="form-select" id="game_type" name="game_type" required>
|
|
<option value="Thunderball">Thunderball</option>
|
|
<option value="Lotto">Lotto</option>
|
|
<!-- Add more as needed -->
|
|
</select>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="draw_date" class="form-label">Draw Date</label>
|
|
<input type="date" class="form-control" id="draw_date" name="draw_date" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="purchase_method" class="form-label">Purchase Method</label>
|
|
<input type="text" class="form-control" id="purchase_method" name="purchase_method">
|
|
</div>
|
|
|
|
<!-- Ball Inputs -->
|
|
{{ template "ballInputs" . }}
|
|
|
|
<button type="submit" class="btn btn-success">Submit Ticket</button>
|
|
<a href="/syndicate/view?id={{ .Syndicate.ID }}" class="btn btn-secondary ms-2">Cancel</a>
|
|
</form>
|
|
</div>
|
|
{{ end }}
|