<xf:title>{{ phrase('trophies') }}</xf:title>

<xf:pageaction>
	<xf:button href="{{ link('trophies/add') }}" icon="add">{{ phrase('add_trophy') }}</xf:button>
</xf:pageaction>

<xf:if is="$trophies is not empty">
	<div class="block">
		<div class="block-outer">
			<xf:macro template="filter_macros" name="quick_filter" arg-key="trophies" arg-class="block-outer-opposite" />
		</div>
		<div class="block-container">
			<div class="block-body">
				<xf:datalist>
					<xf:foreach loop="$trophies" value="$trophy">
						<xf:datarow
							label="{$trophy.title}"
							hint="{{ phrase('points:') }} {$trophy.trophy_points}"
							href="{{ link('trophies/edit', $trophy) }}"
							delete="{{ link('trophies/delete', $trophy) }}" />
					</xf:foreach>
				</xf:datalist>
			</div>
			<div class="block-footer">
				<span class="block-footer-counter">{{ display_totals($trophies) }}</span>
			</div>
		</div>
	</div>
<xf:else />
	<div class="blockMessage">{{ phrase('no_trophies_have_been_created_yet') }}</div>
</xf:if>

<xf:macro template="option_macros" name="option_form_block" arg-options="{$options}" />