Merge branch 'hotfix/rank_fault_info'

This commit is contained in:
ostertun
2022-04-25 11:31:24 +02:00
2 changed files with 22 additions and 16 deletions

View File

@@ -8,9 +8,9 @@
$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']);
@@ -23,6 +23,12 @@
$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>';

View File

@@ -1,5 +1,5 @@
<?php <?php
define('PWA_VERSION', '1.11.6'); define('PWA_VERSION', '1.11.6h1');
?> ?>