gitflow-hotfix-stash: rank_fault_info
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$sp['title'] = 'Ranglisten - Regatten.net ' . $_CLASS['name'];
|
$sp['title'] = 'Ranglisten - Regatten.net ' . $_CLASS['name'];
|
||||||
$sp['backbutton'] = 'index';
|
$sp['backbutton'] = 'index';
|
||||||
$sp['activenav'] = 3;
|
$sp['activenav'] = 3;
|
||||||
|
|
||||||
// Title, Inputs
|
// Title, Inputs
|
||||||
$content = "<h1>Ranglisten</h1>";
|
$content = "<h1>Ranglisten</h1>";
|
||||||
|
|
||||||
$options = '<option value="year">Jahres-Rangliste</option>';
|
$options = '<option value="year">Jahres-Rangliste</option>';
|
||||||
$options .= '<option value="youth">Jugend-Rangliste</option>';
|
// $options .= '<option value="youth">Jugend-Rangliste</option>';
|
||||||
$options .= '<option value="idjm">' . $_CLASS['youth-german-name'] . '-Rangliste</option>';
|
// $options .= '<option value="idjm">' . $_CLASS['youth-german-name'] . '-Rangliste</option>';
|
||||||
$options .= '<option value="user">Benutzerdefiniert</option>';
|
// $options .= '<option value="user">Benutzerdefiniert</option>';
|
||||||
$content .= $tpl->load('select', ['html-id' => 'select-type', 'placeholder' => 'Rangliste', 'options' => $options, 'css-class' => 'mt-3 mb-0']);
|
$content .= $tpl->load('select', ['html-id' => 'select-type', 'placeholder' => 'Rangliste', 'options' => $options, 'css-class' => 'mt-3 mb-0']);
|
||||||
$content .= $tpl->load('select', ['html-id' => 'select-year', 'placeholder' => 'Jahr', 'css-class' => 'mt-3 mb-0']);
|
$content .= $tpl->load('select', ['html-id' => 'select-year', 'placeholder' => 'Jahr', 'css-class' => 'mt-3 mb-0']);
|
||||||
$content .= $tpl->load('input', ['html-id' => 'input-from', 'placeholder' => 'Von', 'type' => 'date', 'css-class' => 'mt-3']);
|
$content .= $tpl->load('input', ['html-id' => 'input-from', 'placeholder' => 'Von', 'type' => 'date', 'css-class' => 'mt-3']);
|
||||||
@@ -20,27 +20,33 @@
|
|||||||
$chbox = $tpl->load('checkbox', ['html-id' => 'input-jugstrict', 'placeholder' => 'Streng']);
|
$chbox = $tpl->load('checkbox', ['html-id' => 'input-jugstrict', 'placeholder' => 'Streng']);
|
||||||
$content .= '<div class="mb-3" style="display:inline-block; width:50%;">' . $chbox . '</div>';
|
$content .= '<div class="mb-3" style="display:inline-block; width:50%;">' . $chbox . '</div>';
|
||||||
$content .= $tpl->load('button', ['Anzeigen', '#', 'html-id' => 'button-show']);
|
$content .= $tpl->load('button', ['Anzeigen', '#', 'html-id' => 'button-show']);
|
||||||
|
|
||||||
$sp['output'] .= $tpl->load('card', [$content]);
|
$sp['output'] .= $tpl->load('card', [$content]);
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
$content = '<h2>Störung</h2>';
|
||||||
|
$content .= '<p>Momentan können wir Dir hier leider nur die Jahresrangliste anzeigen.<br>';
|
||||||
|
$content .= 'Um die anderen Ranglisten zu sehen, besuche bitte <a href="https://regatten.net/' . BOATCLASS . '/rank">unsere Webseite</a>.</p>';
|
||||||
|
$sp['output'] .= $tpl->load('card', [$content]);
|
||||||
|
|
||||||
// No Results
|
// No Results
|
||||||
$content = '<h2 class="color-white">ACHTUNG</h2>';
|
$content = '<h2 class="color-white">ACHTUNG</h2>';
|
||||||
$content .= '<p class="color-white">Zu folgenden Regatten wurden noch keine Ergebnisse hinterlegt:</p>';
|
$content .= '<p class="color-white">Zu folgenden Regatten wurden noch keine Ergebnisse hinterlegt:</p>';
|
||||||
$content .= '<ul id="ul-noresults"></ul>';
|
$content .= '<ul id="ul-noresults"></ul>';
|
||||||
|
|
||||||
$sp['output'] .= $tpl->load('card', [$content, 'html-id' => 'card-noresults', 'css-class' => 'bg-red2-dark']);
|
$sp['output'] .= $tpl->load('card', [$content, 'html-id' => 'card-noresults', 'css-class' => 'bg-red2-dark']);
|
||||||
|
|
||||||
// Ranking
|
// Ranking
|
||||||
$content = $tpl->load('input', ['html-id' => 'input-search', 'placeholder' => 'Suche', 'type' => 'text']);
|
$content = $tpl->load('input', ['html-id' => 'input-search', 'placeholder' => 'Suche', 'type' => 'text']);
|
||||||
$content .= '<div id="div-rank" class="ranking-list mb-0"></div>';
|
$content .= '<div id="div-rank" class="ranking-list mb-0"></div>';
|
||||||
|
|
||||||
$sp['output'] .= $tpl->load('card', [$content, 'html-id' => 'card-rank']);
|
$sp['output'] .= $tpl->load('card', [$content, 'html-id' => 'card-rank']);
|
||||||
|
|
||||||
// Menu
|
// Menu
|
||||||
$items = '<p id="menu-item-text" class="mb-2 mt-1" style="line-height: 1.5em;"></p>';
|
$items = '<p id="menu-item-text" class="mb-2 mt-1" style="line-height: 1.5em;"></p>';
|
||||||
$items .= '<div id="div-details" class="ranking-detail-list mb-3" style="line-height: 2em;"></div>';
|
$items .= '<div id="div-details" class="ranking-detail-list mb-3" style="line-height: 2em;"></div>';
|
||||||
$sp['menus'] .= $tpl->load('menu/bottom', [$items, 'html-id' => 'menu-rank', 'title' => 'Ranglisten-Details', 'height' => 500]);
|
$sp['menus'] .= $tpl->load('menu/bottom', [$items, 'html-id' => 'menu-rank', 'title' => 'Ranglisten-Details', 'height' => 500]);
|
||||||
|
|
||||||
$sp['scripts'] .= $scripts->load('rank');
|
$sp['scripts'] .= $scripts->load('rank');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
define('PWA_VERSION', '1.11.6');
|
define('PWA_VERSION', '1.11.6h1');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user