-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
94 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 28 additions & 6 deletions
34
app/Modules/Vyfuk/DefaultModule/templates/Results/default.latte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,32 @@ | ||
{varType int $year} | ||
{varType App\Models\Downloader\ContestModel $contest} | ||
{varType array $results} | ||
{block title}Výsledky{/block} | ||
{block main} | ||
<div class="panel color-auto"> | ||
<h1 class="inner-container" style="color:red">TODO výsledky Výfuku</h1> | ||
{block title}Výsledky {$year}. ročníku{/block} | ||
{block content} | ||
<div class="dropdown year-and-series-select"> | ||
<button class="btn btn-primary dropdown-toggle year-select-button" type="button" id="dropdownMenuButton" | ||
data-bs-toggle="dropdown" aria-expanded="false">Vybrat ročník</button> | ||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> | ||
<div class="scrollable-menu"> | ||
<div class="series-container"> | ||
{foreach array_reverse($contest->years) as $contestYear} | ||
{varType App\Models\Downloader\ContestYearModel $contestYear} | ||
{if $contestYear->year > 0} {* Hide years for which data is not available *} | ||
<a class="series-box full-width btn" href="{plink 'this' 'year'=>$contestYear->year}"> | ||
{switch $language->value} | ||
{case 'cs'}{$contestYear->year}. ročník | ||
({$contestYear->begin->format('Y')}/{$contestYear->end->format('y')}) | ||
{default}Year {$contestYear->year} | ||
{/switch} | ||
</a> | ||
{/if} | ||
{/foreach} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{do print_r($results)} | ||
{/block} | ||
{if $year < 7} | ||
<p>Rozdělení do kategorií není dostupné pro starší ročníky.</p> {* TODO dříve (v xml) bylo, nutno opravit v DB *} | ||
{/if} | ||
<div id="contest-results" data-data="{json_encode($results)}"></div> | ||
{/block} |