From a3ad799f0a24e86d5b388ab9c56c089583c7dd17 Mon Sep 17 00:00:00 2001 From: KIMB-technologies Date: Thu, 2 Jan 2020 19:58:50 +0100 Subject: [PATCH] fix #30 --- core/Poll.php | 5 ++++- core/PollAdmin.php | 5 ++++- core/Utilities.php | 11 ++++++++++- core/templates/admin_de.html | 10 +++------- core/templates/admin_en.html | 10 +++------- core/templates/main_de.html | 1 + core/templates/main_en.html | 1 + core/templates/poll_de.html | 4 ++-- core/templates/poll_en.html | 4 ++-- data/translation_de.json | 3 ++- data/translation_en.json | 3 ++- load/main.css | 20 ++++++++++++++++++++ load/main.js | 12 ++++++++++++ 13 files changed, 66 insertions(+), 23 deletions(-) create mode 100644 load/main.css diff --git a/core/Poll.php b/core/Poll.php index 9a0acad..a6e6f7b 100644 --- a/core/Poll.php +++ b/core/Poll.php @@ -192,7 +192,10 @@ public function showPollForm( $template ){ foreach( $this->pollsub->getValue( [$id] ) as $user){ $names[] = Utilities::optimizeOutputString( $user['name'] ); } - $anzval = ''; + $anzval = Utilities::getCollapseHtml( + LanguageManager::getTranslation("Teilnehm"), + '' + ); } else{ $anzval = ''; diff --git a/core/PollAdmin.php b/core/PollAdmin.php index b7cde0b..7935bf5 100644 --- a/core/PollAdmin.php +++ b/core/PollAdmin.php @@ -132,7 +132,10 @@ private function showInfo(){ "ANZAHL" => ($i-1) . $maxanz, "HINWEISE" => Utilities::optimizeOutputString( $values["des"] ), "TERMINID" => "termin_" . $id, - "TEILNEHMER" => implode( '
  • ', $submiss ) + "TEILNEHMER" => Utilities::getCollapseHtml( + LanguageManager::getTranslation("Teilnehm"), + '' + ) ); $terminmeta["termin_" . $id] = array( $values["bez"], $values["anz"], $values["des"] ); diff --git a/core/Utilities.php b/core/Utilities.php index 4d605d9..72a3dda 100644 --- a/core/Utilities.php +++ b/core/Utilities.php @@ -16,7 +16,7 @@ class Utilities{ /** * The system's Version */ - const SYS_VERSION = 'v1.1.2'; + const SYS_VERSION = 'v1.1.3'; /** * Possible chars for: @@ -82,6 +82,15 @@ public static function randomCode( $len, $chars ){ public static function getRowHtml($first, $second, $clF = '', $clS = ''){ return ''; } + + public static function getCollapseHtml($name, $content){ + $id = uniqid(); + $html = '
    '; + $html .= '
    ▼ ' . $name . '
    '; + $html .= '
    '. $content .'
    '; + $html .= '
    '; + return $html; + } } ?> diff --git a/core/templates/admin_de.html b/core/templates/admin_de.html index db1d73f..6437172 100644 --- a/core/templates/admin_de.html +++ b/core/templates/admin_de.html @@ -60,9 +60,9 @@

    Termine

    Hinweise zu den Terminen -