22adb4d5fd
The primary license of the project is changing to: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later with some specific files to be licensed under the one of two licenses: CC0-1.0 LGPL-3.0-or-later This commit is one of the many steps to relicense the entire codebase. Documentation granting permission for this relicensing (from all past contributors who hold copyrights) is on file with Software Freedom Conservancy, Inc.
51 lines
1.3 KiB
Text
51 lines
1.3 KiB
Text
<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
|
|
<table class='table--plaid'>
|
|
<thead>
|
|
<th>Ticket Level</th>
|
|
<th>Price</th>
|
|
<th>Quantity</th>
|
|
</thead>
|
|
<tr>
|
|
|
|
<!--= repeat ticket_levels.data -->
|
|
<td>
|
|
<strong class='u-block'><!--= put this.name --></strong>
|
|
<small><!--= put this.description --></small>
|
|
</td>
|
|
|
|
<td>
|
|
<!--= put this.formatted_amount -->
|
|
</td>
|
|
|
|
<td>
|
|
<input type='hidden'>
|
|
<!--= set_attr 'name' (cat 'tickets.' this.i '.ticket_level_id') -->
|
|
<!--= set_value this.id -->
|
|
|
|
<input type='hidden'>
|
|
<!--= set_attr 'name' (cat 'tickets.' this.i '.amount') -->
|
|
<!--= set_value this.amount -->
|
|
|
|
<input class='input--100'
|
|
type='number'
|
|
min='0'
|
|
parsley-min='0' parsley-max='99'
|
|
value='0'>
|
|
<!--= on 'change' (ticket_wiz.check_if_any_ticket_levels this.i this.name) -->
|
|
<!--= set_attr 'name' (cat 'tickets.' this.i '.quantity') -->
|
|
<!--= set_attr 'max' (any this.remaining >= 0 ? this.remaining : 0 99) -->
|
|
<!--= hide_if this.sold_out -->
|
|
<br>
|
|
|
|
<small class='u-fade'>
|
|
<!--= show_if this.remaining -->
|
|
<!--= put this.remaining --> remaining
|
|
</small>
|
|
|
|
<span>
|
|
<!--= show_if this.sold_out -->
|
|
Sold Out
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
</table>
|