From 4dc0df3e14c83929bf768cafc6b8002169a08a18 Mon Sep 17 00:00:00 2001 From: 4D44H <4d44h@protonmail.com> Date: Fri, 23 Jun 2017 22:36:24 +0200 Subject: [PATCH 01/92] Add temporary SWP login --- app/Http/Controllers/LoginController.php | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/app/Http/Controllers/LoginController.php b/app/Http/Controllers/LoginController.php index 7473dc198..e3e8164f0 100755 --- a/app/Http/Controllers/LoginController.php +++ b/app/Http/Controllers/LoginController.php @@ -165,6 +165,33 @@ public function doDevelopmentLogin() public function doProductionLogin() { +// Temporary login for softwareproject + if (Input::get('username') === "SWP") { + + if (Config::get('bcLDAP.swp-override') === base64_encode(mhash(MHASH_MD5, Input::get('password')))) { + + Session::put('userId', '8888'); + Session::put('userName', 'SWP'); + Session::put('userGroup', 'marketing'); + Session::put('userClub', 'bc-Club'); + Session::put('userStatus', 'member'); + Session::put('clubFilter', 'bc-Club'); + + Log::info('SWP LOGIN USED.'); + + return Redirect::back(); + + } else { + + Session::put('message', 'SWP Passwort falsch, versuche nochmal.'); + Session::put('msgType', 'danger'); + + Log::warning('SWP LOGIN FAIL: wrong password!'); + + return Redirect::back(); + } + } + // MASTERPASSWORD for LDAP-Server downtime, stored in hashed form in config/bcLDAP.php if (Input::get('username') === "LDAP-OVERRIDE") { From 09e75a6a6809d93fb0ad207628afd458bfaacfd4 Mon Sep 17 00:00:00 2001 From: 4D44H <4d44h@protonmail.com> Date: Wed, 12 Jul 2017 18:21:12 +0200 Subject: [PATCH 02/92] [Icons] Change user icons for FREI, extern and ex-candidate --- app/Http/Controllers/ScheduleEntryController.php | 6 +++--- resources/views/partials/scheduleEntryStatus.blade.php | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/Http/Controllers/ScheduleEntryController.php b/app/Http/Controllers/ScheduleEntryController.php index f924b1f12..664b2b5ad 100644 --- a/app/Http/Controllers/ScheduleEntryController.php +++ b/app/Http/Controllers/ScheduleEntryController.php @@ -507,16 +507,16 @@ private function updateStatus($entry) { $userStatus = ["status"=>"fa fa-star-o", "style"=>"color:gold;", "title"=>"ex-Mitglied"]; break; case 'guest': - $userStatus = ["status"=>"fa fa-circle", "style"=>"color:lightgrey;", "title"=>"ex-Kandidat"]; + $userStatus = ["status"=>"fa fa-times-circle-o", "style"=>"color:yellowgreen;", "title"=>"ex-Kandidat"]; break; case "": - $userStatus = ["status"=>"fa fa-circle", "style"=>"color:lightgrey;", "title"=>"Extern"]; + $userStatus = ["status"=>"fa fa-circle-o", "style"=>"color:yellowgreen;", "title"=>"Extern"]; break; } } else { - $userStatus = ["status"=>"fa fa-circle-o", "style"=>"color:lightgrey;", "title"=>"Dienst frei"]; + $userStatus = ["status"=>"fa fa-question", "style"=>"color:lightgrey;", "title"=>"Dienst frei"]; } return $userStatus; diff --git a/resources/views/partials/scheduleEntryStatus.blade.php b/resources/views/partials/scheduleEntryStatus.blade.php index abb19e78e..3037d4ce7 100644 --- a/resources/views/partials/scheduleEntryStatus.blade.php +++ b/resources/views/partials/scheduleEntryStatus.blade.php @@ -9,7 +9,7 @@ @if( is_null($entry->getPerson) ) - @elseif ( $entry->getPerson->prsn_status === 'guest' ) - @elseif ( empty($entry->getPerson->prsn_status) ) - From df19f44def56caec75f344e992d6f462d2e90bb9 Mon Sep 17 00:00:00 2001 From: Fabian Markert Date: Sun, 27 Aug 2017 22:35:32 +0200 Subject: [PATCH 03/92] fix css bugs in week view --- resources/assets/css/vedst.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/assets/css/vedst.css b/resources/assets/css/vedst.css index cff50eb33..b5ae48f49 100644 --- a/resources/assets/css/vedst.css +++ b/resources/assets/css/vedst.css @@ -212,22 +212,22 @@ input[type=number], background-color: #ddad69 !important; } -.calendar-public-event-bc-Club { +.calendar-public-event-bc-club { background-color: #e54545 !important; } -.calendar-public-event-bc-Café { +.calendar-public-event-bc-cafe { background-color: #268ac3 !important; } .calendar-public-event-bd-Club { background-color: #38c32e !important; } -.calendar-internal-event-bc-Club { +.calendar-internal-event-bc-club { background-color: #e98383 !important; } -.calendar-internal-event-bc-Café { +.calendar-internal-event-bc-cafe { background-color: #52aadc !important; } From 945fbb0d5056f9acf9b66fef6a3369fe4b110810 Mon Sep 17 00:00:00 2001 From: Fabian Markert Date: Sun, 27 Aug 2017 22:43:20 +0200 Subject: [PATCH 04/92] Revert "fix css bugs in week view" This reverts commit 00837fa3a2e7efa0e0e5d494fefe95042e6b7b11. --- resources/assets/css/vedst.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/assets/css/vedst.css b/resources/assets/css/vedst.css index b5ae48f49..cff50eb33 100644 --- a/resources/assets/css/vedst.css +++ b/resources/assets/css/vedst.css @@ -212,22 +212,22 @@ input[type=number], background-color: #ddad69 !important; } -.calendar-public-event-bc-club { +.calendar-public-event-bc-Club { background-color: #e54545 !important; } -.calendar-public-event-bc-cafe { +.calendar-public-event-bc-Café { background-color: #268ac3 !important; } .calendar-public-event-bd-Club { background-color: #38c32e !important; } -.calendar-internal-event-bc-club { +.calendar-internal-event-bc-Club { background-color: #e98383 !important; } -.calendar-internal-event-bc-cafe { +.calendar-internal-event-bc-Café { background-color: #52aadc !important; } From 07f5aeb5f725a6a840686d843252d655d98666e4 Mon Sep 17 00:00:00 2001 From: Fabian Markert Date: Sun, 27 Aug 2017 22:53:05 +0200 Subject: [PATCH 05/92] rename css classes in week view --- resources/views/partials/weekCellFull.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/partials/weekCellFull.blade.php b/resources/views/partials/weekCellFull.blade.php index 929a28f29..78300f71a 100644 --- a/resources/views/partials/weekCellFull.blade.php +++ b/resources/views/partials/weekCellFull.blade.php @@ -14,9 +14,9 @@ @elseif ($clubEvent->evnt_type == 7 OR $clubEvent->evnt_type == 8)
@elseif ($clubEvent->section->id == 1) -
+
@elseif ($clubEvent->section->id == 2) -
+
@else {{-- DEFAULT --}}
@@ -29,9 +29,9 @@ @elseif ($clubEvent->evnt_type == 7 OR $clubEvent->evnt_type == 8)
@elseif ($clubEvent->section->id == 1) -
+
@elseif ($clubEvent->section->id == 2) -
+
@else {{-- DEFAULT --}}
From e030dc7dc5f0566a2656038a24e0f169cd87dcb0 Mon Sep 17 00:00:00 2001 From: Fabian Markert Date: Sun, 27 Aug 2017 23:03:59 +0200 Subject: [PATCH 06/92] correct z-index for back-to-top --- resources/assets/css/vedst.css | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/assets/css/vedst.css b/resources/assets/css/vedst.css index cff50eb33..be5f446e0 100644 --- a/resources/assets/css/vedst.css +++ b/resources/assets/css/vedst.css @@ -488,6 +488,7 @@ input[type=number], bottom: 20px; right: 20px; display:none; + z-index: 1; } /* my event */ From 0323dde255447a8084fe9ba542133e03a589c2e9 Mon Sep 17 00:00:00 2001 From: 4D44H <4d44h@protonmail.com> Date: Sun, 27 Aug 2017 23:23:48 +0200 Subject: [PATCH 07/92] Add whitespace below stats year/month selector --- resources/views/statisticsView.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/statisticsView.blade.php b/resources/views/statisticsView.blade.php index bacceb07e..908e4ac2d 100644 --- a/resources/views/statisticsView.blade.php +++ b/resources/views/statisticsView.blade.php @@ -63,9 +63,9 @@ @endif
-
- - +
+
+
From 6cd047cb2b22f6c4db67027c7ba3cb12d351d243 Mon Sep 17 00:00:00 2001 From: Fabian Markert Date: Sun, 27 Aug 2017 23:23:30 +0200 Subject: [PATCH 08/92] fix colors also for public events --- resources/views/partials/weekCellProtected.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/partials/weekCellProtected.blade.php b/resources/views/partials/weekCellProtected.blade.php index 85f67d89b..0f39b8133 100644 --- a/resources/views/partials/weekCellProtected.blade.php +++ b/resources/views/partials/weekCellProtected.blade.php @@ -13,9 +13,9 @@ @elseif ($clubEvent->evnt_type == 7 OR $clubEvent->evnt_type == 8)
@elseif ($clubEvent->section->id == 1) -
+
@elseif ($clubEvent->section->id == 2) -
+
@else {{-- DEFAULT --}}
@@ -28,9 +28,9 @@ @elseif ($clubEvent->evnt_type == 7 OR $clubEvent->evnt_type == 8)
@elseif ($clubEvent->section->id == 1) -
+
@elseif ($clubEvent->section->id == 2) -
+
@else {{-- DEFAULT --}}
From 99cfd80a680556d8af698773d26e4045044d5202 Mon Sep 17 00:00:00 2001 From: Fabian Markert Date: Thu, 25 Jan 2018 22:05:52 +0100 Subject: [PATCH 09/92] Update UpdateLara.php avoid errors when updating lara --- app/Console/Commands/UpdateLara.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Console/Commands/UpdateLara.php b/app/Console/Commands/UpdateLara.php index 396f4f323..f94f00aba 100755 --- a/app/Console/Commands/UpdateLara.php +++ b/app/Console/Commands/UpdateLara.php @@ -52,6 +52,7 @@ public function handle() 'git reset --hard', // reset repo to avoid conflicts 'git pull --rebase', // Download latest changes from GitHub 'rm package-lock.json || true', // remove package-lock, makes sure that you will get the stuff from package.json + 'rm composer.lock || true', // remove composer.lock, makes sure that you will get the stuff from composer.json 'sh git-create-revisioninfo-hook.sh', // Update version info in the footer 'composer install', // Install and update dependencies 'php artisan view:clear', // Clear and update cache From 65bfa89f88389cefc03a714fd8c3f2b55286e369 Mon Sep 17 00:00:00 2001 From: fabian Date: Thu, 25 Jan 2018 22:47:29 +0100 Subject: [PATCH 10/92] avoid errors when updating lara (cherry picked from commit 0493ceb) --- app/Console/Commands/UpdateLara.php | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/app/Console/Commands/UpdateLara.php b/app/Console/Commands/UpdateLara.php index f65168168..71b3ce4e4 100755 --- a/app/Console/Commands/UpdateLara.php +++ b/app/Console/Commands/UpdateLara.php @@ -13,14 +13,14 @@ class UpdateLara extends Command * @var string */ protected $signature = 'lara:update {--server-mode}'; - + /** * The console command description. * * @var string */ protected $description = 'Enter maintenance mode, pull latests changes from assigned branch, clear cache and views, apply migrations, go live again.'; - + /** * Create a new command instance. * @@ -30,7 +30,7 @@ public function __construct() { parent::__construct(); } - + /** * Execute the console command. * @@ -42,7 +42,7 @@ public function handle() $this->info(''); // new line Log::info('Starting Lara update...'); $this->info('Starting Lara update...'); - + $serverMode = $this->option('server-mode'); if ($serverMode) { $avoidSourseConflictCommand = 'git reset --hard'; @@ -54,10 +54,10 @@ public function handle() } else { $reApplyChangesCommand = '# nothing to do'; } - + // start counting time before processing every person $counterStart = microtime(true); - + // List of instructions to execute $instructions = [ 'php artisan down', @@ -66,6 +66,8 @@ public function handle() // reset repo to avoid conflicts 'git pull --rebase', // Download latest changes from GitHub + 'rm composer.lock || true', + // remove composer.lock, makes sure that you will get the stuff from composer.json 'rm package-lock.json || true', // remove package-lock, makes sure that you will get the stuff from package.json 'sh git-create-revisioninfo-hook.sh', @@ -84,17 +86,17 @@ public function handle() 'php artisan up' // Exit maintenance mode ]; - + // initialize progress bar $bar = $this->output->createProgressBar(count($instructions)); - + // perform the update foreach ($instructions as $step) { - + // log what you are doing $this->info(''); // new line $this->info('Executing "'.$step.'"...'); - + // perform the instruction passthru($step, $result); $this->info('result: '.$result); @@ -105,16 +107,16 @@ public function handle() $bar->advance(); $this->info(''); // new line } - + // finish progress bar and end counter $bar->finish(); $counterEnd = microtime(true); - + // Inform the users $this->info(''); // new line $this->info(''); // new line Log::info('Finished Lara update after '.($counterEnd - $counterStart).' seconds.'); $this->info('Finished Lara update after '.($counterEnd - $counterStart).' seconds.'); - + } } From 38bed8aebda6bf2d2a1d14dc6fd6e0e6fefecb5c Mon Sep 17 00:00:00 2001 From: fabian Date: Sat, 27 Jan 2018 16:31:04 +0100 Subject: [PATCH 11/92] in case bd club issn't already createt, create it --- ...017_12_02_230639_default_colors_for_sections.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/database/migrations/2017_12_02_230639_default_colors_for_sections.php b/database/migrations/2017_12_02_230639_default_colors_for_sections.php index f1542cdb6..c5288f3f7 100644 --- a/database/migrations/2017_12_02_230639_default_colors_for_sections.php +++ b/database/migrations/2017_12_02_230639_default_colors_for_sections.php @@ -12,6 +12,17 @@ class DefaultColorsForSections extends Migration */ public function up() { + $section = Section::where('title', '=', 'bd-Club')->first(); + if (is_null($section)) { + $section = new Section(); + $section->title = self::BD_SECTION_NAME; + $section->section_uid = hash("sha512", uniqid()); + $section->save(); + $club = new Club(); + $club->clb_title = $section->title; + $club->save(); + } + /** @var sections \Illuminate\Database\Eloquent\Collection[Section] */ $sections = Section::all(); foreach ($sections as $section) { @@ -27,7 +38,7 @@ public function up() $section->update(); } } - + /** * Reverse the migrations. * From 494ce24edbd4130bb3e259607dd0aa98ccc9ce5a Mon Sep 17 00:00:00 2001 From: fabian Date: Sun, 28 Jan 2018 16:10:43 +0100 Subject: [PATCH 12/92] remove syntax error --- .../2017_12_02_230639_default_colors_for_sections.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2017_12_02_230639_default_colors_for_sections.php b/database/migrations/2017_12_02_230639_default_colors_for_sections.php index c5288f3f7..b4393a9c2 100644 --- a/database/migrations/2017_12_02_230639_default_colors_for_sections.php +++ b/database/migrations/2017_12_02_230639_default_colors_for_sections.php @@ -15,7 +15,7 @@ public function up() $section = Section::where('title', '=', 'bd-Club')->first(); if (is_null($section)) { $section = new Section(); - $section->title = self::BD_SECTION_NAME; + $section->title = 'bd-Club'; $section->section_uid = hash("sha512", uniqid()); $section->save(); $club = new Club(); From d05170b5da769736670fd984c041d23c62b13fa6 Mon Sep 17 00:00:00 2001 From: fabian Date: Sun, 28 Jan 2018 16:13:01 +0100 Subject: [PATCH 13/92] fix import --- .../migrations/2017_12_02_230639_default_colors_for_sections.php | 1 + 1 file changed, 1 insertion(+) diff --git a/database/migrations/2017_12_02_230639_default_colors_for_sections.php b/database/migrations/2017_12_02_230639_default_colors_for_sections.php index b4393a9c2..ddc39de2e 100644 --- a/database/migrations/2017_12_02_230639_default_colors_for_sections.php +++ b/database/migrations/2017_12_02_230639_default_colors_for_sections.php @@ -1,6 +1,7 @@ Date: Mon, 29 Jan 2018 21:59:23 +0100 Subject: [PATCH 14/92] search case sensitive for clubs --- app/Club.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Club.php b/app/Club.php index de7948597..e1f8a0897 100644 --- a/app/Club.php +++ b/app/Club.php @@ -43,7 +43,11 @@ public function accountableForStatistics() public static function activeClubs() { - return Club::whereIn('clb_title', Section::all()->pluck('title')); + $sectionTitles = Section::all()->pluck('title')->toArray(); + $clubs = Club::whereIn('clb_title', $sectionTitles)->get()->filter(function (Club $club) use ($sectionTitles) { + return in_array($club->clb_title, $sectionTitles); + }); + return Club::whereIn('id',$clubs->map(function (Club $club){ return $club->id; })->toArray()); } } From 8bc7aceb752214b893b1a62d31cf272f410d8555 Mon Sep 17 00:00:00 2001 From: fabian Date: Mon, 29 Jan 2018 22:08:30 +0100 Subject: [PATCH 15/92] make translation more clear --- resources/lang/de/mainLang.php | 174 ++++++++++++++++----------------- resources/lang/en/mainLang.php | 4 +- 2 files changed, 89 insertions(+), 89 deletions(-) diff --git a/resources/lang/de/mainLang.php b/resources/lang/de/mainLang.php index d5a1a2a7f..f179c9eed 100755 --- a/resources/lang/de/mainLang.php +++ b/resources/lang/de/mainLang.php @@ -30,7 +30,7 @@ 'notWorkingMail' => 'Etwas funktioniert nicht? Schreibe :Name eine Mail.', 'moreInfosProjectsite' => 'Mehr Infos? Besuche die Projektseite auf GitHub.', 'backToTop' => 'Zurück zum Seitenanfang', - + //----------------------------------------------------------------------------------------------------- // resources/views @@ -49,40 +49,40 @@ 'marketingFlyersPlacard'=> 'Marketing / Flyer / Plakate', //used in legend.blade.php 'preSale' => 'Vorverkauf', 'others' => 'Sonstiges', - 'faceDone' => 'Facebook Event erstellt', + 'faceDone' => 'Facebook erledigt', 'eventUrl' => 'Event - URL', 'priceTickets' => 'Vorverkaufspreis', 'price' => 'Eintrittspreis', 'studentExtern' => 'Student / Vollzahler', - + //---------------------------------------------- - + 'begin' => 'Beginn', 'end' => 'Ende', 'eventDefaults' => 'Standardwerte für Events:', - + 'DV-Time' => 'DV-Zeit', 'club' => 'Verein', 'internalEventP' => 'Interne Veranstaltung', // Placeholder string 'internEventP' => 'Internes Event', // Placeholder string for example used in monthCell.blade.php - + 'willShowFor' => 'wird angezeigt für', - + 'changeEvent' => 'Veranstaltung ändern', 'deleteEvent' => 'Veranstaltung löschen', 'confirmDeleteEvent' => 'Diese Veranstaltung wirklich entfernen? Diese Aktion kann nicht rückgängig gemacht werden!', - + 'additionalInfo' => 'Weitere Details', 'moreDetails' => 'Interne Information', - + //Button 'showMore' => 'mehr anzeigen', 'showLess' => 'weniger anzeigen', - + 'hideTimes' => 'Zeiten ausblenden', - + 'addComment' => 'Kommentar hier hinzufügen', //not used Line ClubEventView ~270 Placeholder message and similar - + //List of Changes 'listChanges' => 'Liste der Änderungen', @@ -94,7 +94,7 @@ 'whenWasIt' => 'Wann war das?', //------------------------------------------------------------------------------------------------------- - + // resources/views/createClubEventView.blade.php 'createNewVEvent' => 'Neue Veranstaltung erstellen', 'createNewEvent' => 'Neues Event erstellen', @@ -103,7 +103,7 @@ 'title' => 'Titel', 'subTitle' => 'Subtitel', 'error' => 'Fehler', - + 'showExtern' => 'Für Externe sichtbar machen?', 'survey' => 'Umfrage', @@ -115,7 +115,7 @@ 'section' => 'Sektion', 'showFor' => 'Zeige für', - + 'passwordEntry' => 'Passwort zum Eintragen', 'passwordRepeat' => 'Passwort wiederholen', 'passwordDeleteMessage' => 'Um das Passwort zu löschen trage in beide Felder "delete" ein (ohne Anführungszeichen).', @@ -124,14 +124,14 @@ 'public' => 'öffentlich', 'details' => 'Interne Information', 'showOnlyIntern' => 'nur intern sichtbar', - + 'backWithoutChange' => 'Ohne Änderung zurück', - + //--------------------------------------------------------------------------------------------------------- - + // resources/views/editClubEventView.blade.php 'changeEventJob' => 'Veranstaltung/Aufgabe ändern', - + //Lines for editing only with permission 'noNotThisWay' => 'Ne, das geht so nicht...', 'onlyThe' => 'Nur die', @@ -141,53 +141,53 @@ 'marketingManager' => 'Marketingverantwortlichen', 'canChangeEventJob' => 'dürfen diese Veranstaltung/Aufgabe ändern.', 'commaThe' => ', die ', //line number ~332 - + //----------------------------------------------------------------------------------------------------------- - + // resources/views/createSurveyView.blade.php 'createNewSurvey' => 'Neue Umfrage erstellen', - + //----------------------------------------------------------------------------------------------------------- - + // resources/views/editSurveyView.blade.php 'editSurvey' => 'Umfrage editieren', 'confirmDeleteSurvey' => 'Möchtest du die Umfrage ":title" wirklich löschen?', - + //----------------------------------------------------------------------------------------------------------- - + // resources/views/surveyView.blade.php 'description' => 'Beschreibung', 'surveyDeadlineTo' => 'Die Umfrage läuft noch bis', 'um' => 'um', //better translation needed - + //result messages; can be changed with pluralization 'noPersonAnswered' => 'Es hat noch keine Person abgestimmt.', 'onePersonAnswered' => 'Es hat bereits eine Person abgestimmt.', 'fewPersonAnswered1' => 'Es haben bereits', 'fewPersonAnswered2' => 'Personen abgestimmt.', - + //tableau (head) 'name' => 'Name', 'myClub' => 'Club', 'addMe' => 'Mich eintragen!', - + //Answers 'yes' => 'Ja', 'no' => 'Nein', 'noInformation' => 'keine Angabe', - + 'noClub' => 'Extern', - + 'confirmDeleteAnswer' => 'Möchtest Du diese Antwort wirklich löschen?', - + //evaluation; can be changed with pluralization 'evaluation' => 'Auswertung', 'personDidNotAnswer' => 'Person wollte keine Angaben machen.', 'personsDidNotAnswer' => 'Personen wollten keine Angaben machen.', 'personAnswered' => 'Person stimmte für', 'personsAnswered' => 'Personen stimmten für', - + //List of Changes 'who' => 'Wer', 'summary' => 'Zusammenfassung', @@ -195,9 +195,9 @@ 'oldValue' => 'Alter Wert', 'newValue' => 'Neuer Wert', 'when' => 'Wann', - + //----------------------------------------------------------------------------------------------------------- - + // resources/views/monthView.blade.php //short weekdays + CW 'Cw' => 'KW', @@ -221,58 +221,58 @@ // resources/views/monthView.blade.php 'showWeek' => 'Detaillierte Ansicht dieser Woche anzeigen', - + //----------------------------------------------------------------------------------------------------------- - + // resources/views/createSurveyView.blade.php 'noEventsThisWeek' => 'Keine Veranstaltungen diese Woche', 'noSurveysThisWeek' => 'Keine Umfragen diese Woche', - + //----------------------------------------------------------------------------------------------------------- - + // resources/views/listView.blade.php 'for' => 'Für', 'noEventsPlanned' => 'sind keine Veranstaltungen geplant', 'noEventsOn' => 'Keine Veranstaltungen am', 'EventsFor' => 'Veranstaltungen für', - + //----------------------------------------------------------------------------------------------------------- - + // resources/views/log.blade.php // not translated - international view - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials // /resources/views/partials/clubEventByIdSmall.blade.php 'noResults' => 'Keine Treffer', - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/editSchedule.blade.php 'adjustRoster' => 'Dienstplan anpassen', 'serviceTypeEnter' => 'Diensttyp hier eingeben', 'weight' => 'Gewicht (für Statistik)', 'statisticalEvaluation' => 'Statistik', - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/filter.blade.php 'allSections' => 'Alle Sektionen', 'comments' => 'Kommentare', - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/legend.blade.php //handled in the event type part in the /resources/views/clubEventView.blade.php part - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/monthCell.blade.php 'internalSurvey' => 'Interne Umfrage', - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/navigation.blade.php 'month' => 'Monat', 'week' => 'Woche', @@ -281,13 +281,13 @@ 'manageShiftType' => 'Diensttypen verwalten', 'manageSections' => 'Sektionen verwalten', // TODO use Job for Service - german: Dienst maybe change to Shift - Schicht - + 'manageTemplate' => 'Vorlagen verwalten', - + //create button text 'createNewEvent' => 'Neues Event erstellen', 'createNewSurvey' => 'Neue Umfrage erstellen', - + //Member types 'candidate' => 'Kandidat', 'veteran' => 'Veteran', @@ -295,12 +295,12 @@ 'ex-candidate' => 'ex-Kandidat', 'active' => 'Aktiv', 'external' => 'Extern', - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/scheduleEntryName.blade.php 'IDoIt' => 'Ich mache es!', //Ich mach's! - + // /resources/views/partials/scheduleEntryStatus.blade.php 'jobFree' => 'Dienst frei', @@ -315,46 +315,46 @@ // /resources/views/partials/clubStatistics.blade.php 'infoFor' => 'Mitgliederstatistik', - + // /resources/views/statisticsView.blade.php 'monthStatistic' => 'Monatsstatistik', 'yearStatistic' => 'Jahresstatistik', // /resources/views/partials/personalStatistics.blade.php //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/surveyAnswerStatus.blade.php //no new strings - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/surveyForm.blade.php 'showOnlyForLoggedInMember' => 'nur für eingeloggte Nutzer sichtbar', 'showResultsOnlyForCreator' => 'Ergebnisse sind nur für den Umfragenersteller sichtbar', 'showResultsAfterFillOut' => 'Ergebnisse sind erst nach dem Ausfüllen sichtbar', - + 'passwordSetOptional' => 'Das Setzen eines Passworts ist optional', - + //Answer and Question options 'answerOption' => 'Antwortmöglichkeit', 'question' => 'Frage', - + //Questionoptions 'freeText' => 'Freitext', 'checkbox' => 'Checkbox', 'dropdown' => 'Dropdown', - + 'required' => 'erforderlich', 'addAnswerOption' => 'Antwortmöglichkeit hinzufügen', 'addQuestion' => 'Frage hinzufügen', - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/weekCellFull.blade.php 'hide' => 'Ausblenden', - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/weekCellHidden.blade.php 'moreDetailsAfterLogInMessage' => 'Weitere Details sind für Mitglieder nach dem Einloggen zugänglich.', // 'moreDetailsAfterLogInMessage2' => 'nach dem Einloggen zugänglich.', @@ -362,17 +362,17 @@ // ToDo find a solution //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/weekCellProtected.blade.php //no new strings - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/weekCellSurvey.blade.php //no new strings - + //----------------------------------------------------------------------------------------------------------- - + // /public/js ToDo add these strings // Maybe To do translate Javascript, tricky, " " can throw error messages // /public/js/vedst-script.js @@ -380,12 +380,12 @@ 'errorMessageEnterPasswordForShiftPlan' => 'Bitte noch das Passwort für diesen Dienstplan eingeben:', 'shiftTime' => 'Dienstzeiten', //'hideTimes' already exists - + 'weekStart' => 'Montag - Sonntag', 'hideTakenShifts' => 'Nur FREIe Dienste', - + //----------------------------------------------------------------------------------------------------------- - + //Controller ToDo add these strings //ShiftController //action description @@ -403,29 +403,29 @@ 'messageSuccessfulDeleted' => 'Erfolgreich gelöscht!', //----------------------------------------------------------------------------------------------------------- - + //placeholder strings (e.g. used in buttons or text fields) - + /* | instead of { trans('message.key' }} use Lang::get('message.key') in the view */ - + //ClubEvent 'addCommentHere' => 'Kommentar hier hinzufügen', 'enterPasswordHere' => 'Passwort hier eingeben', 'placeholderTitleWineEvening' => 'z.B. Weinabend', //'placeholderTitleWineEvening' - + 'placeholderSubTitleWineEvening'=> 'z.B. Das Leben ist zu kurz, um schlechten Wein zu trinken', //'placeholderSubTitleWineEvening' - + 'placeholderPublicInfo' => 'z.B. Karten nur im Vorverkauf', 'placeholderPrivateDetails' => 'z.B. DJ-Tisch wird gebraucht', - + //Survey 'addAnswerHere' => 'Antwort hier hinzufügen', 'createSurvey' => 'Umfrage erstellen', //Button text - + //Partials //Navigation 'clubNumber' => 'Clubnummer', @@ -439,7 +439,7 @@ 'placeholderTitleSurvey' => 'z.B. Teilnahme an der Clubfahrt', 'placeholderDescription' => 'Beschreibung:', 'placeholderActiveUntil' => 'Aktiv bis:', - + // Misc. 'guest' => 'Gast', 'accessDenied' => 'Moment mal... Nur eingeloggte Mitglieder mit ausreichender Berechtigung dürfen hier rein! Logge dich ein, oder komm zur nächsten Versammlung und werde Mitglied.', @@ -491,7 +491,7 @@ ////////// // ICal // ////////// - + 'icalfeeds' => 'Kalenderfeed im iCal-Format', 'publishEvent' => 'Event veröffentlichen', 'unpublishEvent' => 'Event aus dem Kalenderfeed entfernen', diff --git a/resources/lang/en/mainLang.php b/resources/lang/en/mainLang.php index c4a02b1f8..34719e979 100755 --- a/resources/lang/en/mainLang.php +++ b/resources/lang/en/mainLang.php @@ -48,7 +48,7 @@ 'marketingFlyersPlacard' => 'Marketing / Flyer / Posters', //used in legend.blade.php 'preSale' => 'Tickets presale', 'others' => 'Others', - 'faceDone' => 'Facebook event created', + 'faceDone' => 'Facebook event done', 'eventUrl' => 'Event link', 'priceTickets' => 'Presales price', 'price' => 'Entrance fee', @@ -317,7 +317,7 @@ 'infoFor' => 'Member statistics', // /resources/views/partials/personalStatistics.blade.php - + // /resources/views/statisticsView.blade.php 'monthStatistic' => 'monthly Statistics', 'yearStatistic' => 'yearly Statistics', From f02a6c32430576073b7361f27e1c54250cb00b84 Mon Sep 17 00:00:00 2001 From: fabian Date: Mon, 29 Jan 2018 22:19:47 +0100 Subject: [PATCH 16/92] don't show additional fields if not set --- ...15_231147_additional_club_event_fields.php | 14 +-- resources/views/clubEventView.blade.php | 110 +++++++++--------- 2 files changed, 65 insertions(+), 59 deletions(-) diff --git a/database/migrations/2017_10_15_231147_additional_club_event_fields.php b/database/migrations/2017_10_15_231147_additional_club_event_fields.php index db2ebd09e..0ddc43380 100644 --- a/database/migrations/2017_10_15_231147_additional_club_event_fields.php +++ b/database/migrations/2017_10_15_231147_additional_club_event_fields.php @@ -14,12 +14,12 @@ class AdditionalClubEventFields extends Migration public function up() { Schema::table('club_events', function (Blueprint $table) { - $table->boolean("facebook_done")->default(false); - $table->mediumText("event_url")->default(""); - $table->float("price_tickets_normal"); - $table->float("price_tickets_external"); - $table->float("price_normal"); - $table->float("price_external"); + $table->boolean("facebook_done")->nullable(); + $table->mediumText("event_url")->nullable(); + $table->float("price_tickets_normal")->nullable(); + $table->float("price_tickets_external")->nullable(); + $table->float("price_normal")->nullable(); + $table->float("price_external")->nullable(); }); } @@ -33,7 +33,7 @@ public function down() Schema::table('club_events', function (Blueprint $table) { $table->dropColumn('facebook_done'); $table->dropColumn('event_url'); - + $table->dropColumn('price_tickets_normal'); $table->dropColumn('price_tickets_external'); $table->dropColumn('price_normal'); diff --git a/resources/views/clubEventView.blade.php b/resources/views/clubEventView.blade.php index 4de67dc3e..5f1ec6c02 100644 --- a/resources/views/clubEventView.blade.php +++ b/resources/views/clubEventView.blade.php @@ -11,14 +11,14 @@
@elseif ($clubEvent->evnt_type == 1)
- @elseif ($clubEvent->evnt_type == 2 + @elseif ($clubEvent->evnt_type == 2 OR $clubEvent->evnt_type == 3)
- @elseif ($clubEvent->evnt_type == 4 - OR $clubEvent->evnt_type == 5 + @elseif ($clubEvent->evnt_type == 4 + OR $clubEvent->evnt_type == 5 OR $clubEvent->evnt_type == 6)
- @elseif ($clubEvent->evnt_type == 7 + @elseif ($clubEvent->evnt_type == 7 OR $clubEvent->evnt_type == 8)
@elseif ($clubEvent->evnt_type == 9) @@ -95,22 +95,24 @@
- + {{-- Internat event metadata --}} @if(Session::has('userId')) - - - - + @if(isset($clubEvent->facebook_done)) + + + + + @endif @if($clubEvent->event_url!=null && $clubEvent->event_url!="") @endif - - - - - - - - - + @if(isset($clubEvent->price_tickets_normal)) + + + + + @endif + @if(isset($clubEvent->price_normal)) + + + + + @endif + {{-- Disabling iCal until fully functional. @@ -181,9 +187,9 @@ OR Session::get('userId') === $created_by) +
@@ -302,7 +308,7 @@ class="btn btn-default"
{!! Form::open( array( 'route' => ['shift.update', $shift->id], 'id' => $shift->id, - 'method' => 'PUT', + 'method' => 'PUT', 'class' => 'shift') ) !!} {{-- SPAMBOT HONEYPOT - this field will be hidden, so if it's filled, then it's a bot or a user tampering with page source --}} @@ -357,7 +363,7 @@ class="btn btn-default" @else {{-- SHIFT STATUS, USERNAME, DROPDOWN USERNAME and LDAP ID --}} -
+
@include("partials.shiftName")
@@ -380,8 +386,8 @@ class="btn btn-default" array('placeholder'=>Lang::get('mainLang.addCommentHere'), 'id'=>'comment' . $shift->id, 'name'=>'comment' . $shift->id, - 'class'=>'col-md-11 col-sm-11 col-xs-10 no-padding no-margin')) - !!} + 'class'=>'col-md-11 col-sm-11 col-xs-10 no-padding no-margin')) + !!}
From e1f95c5d7f8c6be5ac46293998e88c004be625a6 Mon Sep 17 00:00:00 2001 From: fabian Date: Mon, 29 Jan 2018 22:22:59 +0100 Subject: [PATCH 17/92] make filter editable --- resources/views/editClubEventView.blade.php | 82 ++++++++++----------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/resources/views/editClubEventView.blade.php b/resources/views/editClubEventView.blade.php index e0edbb7c1..58e1ae207 100644 --- a/resources/views/editClubEventView.blade.php +++ b/resources/views/editClubEventView.blade.php @@ -11,7 +11,7 @@ OR Session::get('userGroup') == 'clubleitung' OR Session::get('userGroup') == 'admin' OR Session::get('userId') == $created_by)) - + {!! Form::open(['method' => 'PUT', 'route' => ['event.update', $event->id]]) !!}
@@ -24,8 +24,8 @@
- -
+ +
{!! Form::checkbox('saveAsTemplate', '1', $event->getSchedule->schdl_is_template, array('class'=>'col-md-1 col-sm-1 col-xs-1', 'hidden')) !!} @if ($event->getSchedule->schdl_is_template) @@ -38,31 +38,31 @@ {!! "(Dieses Event ist nicht als Vorlage gespeichert.)" !!} @endif - +

- +
- {!! Form::text('title', - $event->evnt_title, - array('class'=>'col-md-9 col-sm-9 col-xs-8', + {!! Form::text('title', + $event->evnt_title, + array('class'=>'col-md-9 col-sm-9 col-xs-8', 'placeholder'=>Lang::get('mainLang.placeholderTitleWineEvening'), 'style'=>'cursor: auto', 'required') ) !!}
-
+
- {!! Form::text('subtitle', - $event->evnt_subtitle, - array('class'=>'col-md-9 col-sm-9 col-xs-8', + {!! Form::text('subtitle', + $event->evnt_subtitle, + array('class'=>'col-md-9 col-sm-9 col-xs-8', 'placeholder'=>Lang::get('mainLang.placeholderSubTitleWineEvening'), 'style'=>'cursor: auto') ) !!}
- + @if(Session::get('userGroup') == 'marketing' OR Session::get('userGroup') == 'clubleitung' OR Session::get('userGroup') == 'admin')
@@ -72,7 +72,7 @@ {!! Form::text('eventUrl', $event->event_url, array('class'=>'col-md-8 col-sm-8 col-xs-6','style'=>'cursor: auto')) !!}
-
+
{!! Form::radio('evnt_type', "0", $event->evnt_type == 0 ? array("checked") : "") !!} @@ -112,10 +112,10 @@ {{ trans('mainLang.showExtern') }}

- {{-- + {{-- Disabling iCal until fully functional -> hiding the div. - + --}}
@else -
+
@if ($event->evnt_type == 0) {!! Form::radio('evnt_type', "0", $event->evnt_type == 0 ? array("checked") : "") !!} - @else + @else     @endif {{ trans('mainLang.normalProgramm') }}
@if ($event->evnt_type == 2) {!! Form::radio('evnt_type', "2", $event->evnt_type == 2 ? array("checked") : "") !!} - @else + @else     @endif {{ trans('mainLang.special') }}
@if ($event->evnt_type == 3) {!! Form::radio('evnt_type', "3", $event->evnt_type == 3 ? array("checked") : "") !!} - @else + @else     @endif {{ trans('mainLang.LiveBandDJ') }}
@if ($event->evnt_type == 5) {!! Form::radio('evnt_type', "5", $event->evnt_type == 5 ? array("checked") : "") !!} - @else + @else     @endif {{ trans('mainLang.utilization') }} @@ -163,21 +163,21 @@
@if ($event->evnt_type == 6) {!! Form::radio('evnt_type', "6", $event->evnt_type == 6 ? array("checked") : "") !!} - @else + @else     @endif {{ trans('mainLang.flooding') }}
@if ($event->evnt_type == 7) {!! Form::radio('evnt_type', "7", $event->evnt_type == 7 ? array("checked") : "") !!} - @else + @else     @endif {{ trans('mainLang.flyersPlacard') }}
@if ($event->evnt_type == 8) {!! Form::radio('evnt_type', "8", $event->evnt_type == 8 ? array("checked") : "") !!} - @else + @else     @endif {{ trans('mainLang.preSale') }} @@ -205,7 +205,7 @@ @endif
-
+
@endif
@@ -217,12 +217,12 @@ +
@@ -231,7 +231,7 @@
@foreach(Lara\Section::all() as $section) - {{ Form::checkbox("filter[" . $section->title ."]", "1", in_array( $section->title, $event->showToSectionNames())) }} + {{ Form::checkbox("filter[" . $section->title ."]", $section->id, in_array( $section->title, $event->showToSectionNames())) }} {{ $section->title }}   @endforeach @@ -266,17 +266,17 @@
-
+
{!! Form::input('time', 'preparationTime', $event->getSchedule->schdl_time_preparation_start) !!}
- -
+ +
- {!! Form::input('date', 'beginDate', $event->evnt_date_start) !!} + {!! Form::input('date', 'beginDate', $event->evnt_date_start) !!}
{{ trans('mainLang.um') }} {!! Form::input('time', 'beginTime', $event->evnt_time_start) !!}
@@ -284,7 +284,7 @@
- {!! Form::input('date', 'endDate', $event->evnt_date_end) !!} + {!! Form::input('date', 'endDate', $event->evnt_date_end) !!}
{{ trans('mainLang.um') }} {!! Form::input('time', 'endTime', $event->evnt_time_end) !!}
@@ -315,7 +315,7 @@  
-
+
@@ -326,14 +326,14 @@

{{ trans('mainLang.moreInfos') }}:

({{ trans('mainLang.public') }})
-
-
+
+
- {!! Form::textarea('publicInfo', $event->evnt_public_info, array('class'=>'form-control', + {!! Form::textarea('publicInfo', $event->evnt_public_info, array('class'=>'form-control', 'rows'=>'8', 'placeholder'=>Lang::get('mainLang.placeholderPublicInfo')) ) !!}
-
+

@@ -345,8 +345,8 @@
- {!! Form::textarea('privateDetails', $event->evnt_private_details, array('class'=>'form-control', - 'rows'=>'5', + {!! Form::textarea('privateDetails', $event->evnt_private_details, array('class'=>'form-control', + 'rows'=>'5', 'placeholder'=>Lang::get('mainLang.placeholderPrivateDetails')) ) !!}
From 12048aaa844be2bf695a8e29ed469bc5152b32f1 Mon Sep 17 00:00:00 2001 From: fabian Date: Mon, 29 Jan 2018 22:33:02 +0100 Subject: [PATCH 18/92] show additional fields only when they are set --- app/Http/Controllers/ClubEventController.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/ClubEventController.php b/app/Http/Controllers/ClubEventController.php index 5caeba3fd..b6d1c14b8 100644 --- a/app/Http/Controllers/ClubEventController.php +++ b/app/Http/Controllers/ClubEventController.php @@ -460,10 +460,10 @@ private function editClubEvent($id) $event->evnt_type = Input::get('evnt_type'); $event->facebook_done = Input::get('facebookDone',"0") == "1"; $event->event_url = Input::get('eventUrl',""); - $event->price_tickets_normal = Input::get('priceTicketsNormal'); - $event->price_tickets_external = Input::get('priceTicketsExternal'); - $event->price_normal = Input::get('priceNormal'); - $event->price_external = Input::get('priceExternal'); + $event->price_tickets_normal = $this->getOrNullNumber('priceTicketsNormal'); + $event->price_tickets_external = $this->getOrNullNumber('priceTicketsExternal'); + $event->price_normal = $this->getOrNullNumber('priceNormal'); + $event->price_external = $this->getOrNullNumber('priceExternal'); // Check if event URL is properly formatted: if the protocol is missing, we have to add it. if( $event->event_url !== "" @@ -561,6 +561,15 @@ private function editClubEvent($id) } return $event; } + + private function getOrNullNumber($query){ + $num = Input::get($query); + if(intval($num)>0){ + return $num; + } else { + return null; + } + } } From f1d5e0faf32ba37026b59b6cbe964ecd4b1634f6 Mon Sep 17 00:00:00 2001 From: fabian Date: Mon, 29 Jan 2018 23:14:11 +0100 Subject: [PATCH 19/92] make type comparable again --- resources/views/clubEventView.blade.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/resources/views/clubEventView.blade.php b/resources/views/clubEventView.blade.php index 5f1ec6c02..de69aba15 100644 --- a/resources/views/clubEventView.blade.php +++ b/resources/views/clubEventView.blade.php @@ -33,25 +33,25 @@ {{ trans('mainLang.type') }}:
From df46f4f202387fdfa1d453701c1da5a46e38eba3 Mon Sep 17 00:00:00 2001 From: fabian Date: Mon, 29 Jan 2018 23:54:24 +0100 Subject: [PATCH 20/92] make facebook_done comparable --- resources/views/clubEventView.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/clubEventView.blade.php b/resources/views/clubEventView.blade.php index de69aba15..cfb10da53 100644 --- a/resources/views/clubEventView.blade.php +++ b/resources/views/clubEventView.blade.php @@ -105,7 +105,7 @@ {{ trans('mainLang.faceDone') }}? @foreach($templates as $template) @foreach($template->shifts as $shift) - @if($shift->shifttype_id !== $current_shiftType->id) + @if($shift->shifttype_id != $current_shiftType->id) @continue @endif @php From 46ad0e267cbbd35bc3eeb8ab29f007802f6c358d Mon Sep 17 00:00:00 2001 From: fabian Date: Fri, 16 Mar 2018 00:42:10 +0100 Subject: [PATCH 26/92] fix layout bugs --- resources/views/editTemplateView.blade.php | 14 +- .../shifttypes/manageShiftTypesView.blade.php | 124 +++++++++--------- resources/views/templateManagement.blade.php | 14 +- 3 files changed, 78 insertions(+), 74 deletions(-) diff --git a/resources/views/editTemplateView.blade.php b/resources/views/editTemplateView.blade.php index eda53e3d5..31c7a3b8f 100644 --- a/resources/views/editTemplateView.blade.php +++ b/resources/views/editTemplateView.blade.php @@ -11,18 +11,18 @@ {!! Form::open(['method' => 'POST', 'route' => ['template.update', $template->id], 'class'=> 'form-inline']) !!} @endif
-
+

{{ trans('mainLang.changeEventJob') }}:


-
+

-
-
+
+
{!! Form::text('title', $template->title, @@ -31,7 +31,7 @@ 'style'=>'cursor: auto', 'required') ) !!}
-
+
{!! Form::text('subtitle', @@ -166,8 +166,8 @@
-
-
+      +

{{ trans('mainLang.moreInfos') }}:

diff --git a/resources/views/shifttypes/manageShiftTypesView.blade.php b/resources/views/shifttypes/manageShiftTypesView.blade.php index 5fbeff826..c3ec9f3b7 100644 --- a/resources/views/shifttypes/manageShiftTypesView.blade.php +++ b/resources/views/shifttypes/manageShiftTypesView.blade.php @@ -22,74 +22,76 @@ {{ Form::text('filter','',['class'=>'form-control border', 'placeholder'=>trans('mainLang.search')]) }} {{Form::close()}} -
- {{ trans('mainLang.faceDone') }}? - - @if($clubEvent->facebook_done === 1) - - @else - - @endif -
+ {{ trans('mainLang.faceDone') }}? + + @if($clubEvent->facebook_done === 1) + + @else + + @endif +
@@ -123,33 +125,37 @@
- {{ trans('mainLang.priceTickets') }}: - - {{ $clubEvent->price_tickets_normal !== null ? $clubEvent->price_tickets_normal : '--' }} € - / - {{ $clubEvent->price_tickets_external !== null ? $clubEvent->price_tickets_external : '--' }} € -    -
- ({{ trans('mainLang.studentExtern') }}) -
- {{ trans('mainLang.price') }}: - - {{ $clubEvent->price_normal !== null ? $clubEvent->price_normal : '--' }} € - / - {{ $clubEvent->price_external !== null ? $clubEvent->price_external : '--' }} € -    -
- ({{ trans('mainLang.studentExtern') }}) -
+ {{ trans('mainLang.priceTickets') }}: + + {{ $clubEvent->price_tickets_normal !== null ? $clubEvent->price_tickets_normal : '--' }} € + / + {{ $clubEvent->price_tickets_external !== null ? $clubEvent->price_tickets_external : '--' }} € +    +
+ ({{ trans('mainLang.studentExtern') }}) +
+ {{ trans('mainLang.price') }}: + + {{ $clubEvent->price_normal !== null ? $clubEvent->price_normal : '--' }} € + / + {{ $clubEvent->price_external !== null ? $clubEvent->price_external : '--' }} € +    +
+ ({{ trans('mainLang.studentExtern') }}) +
- @if( $clubEvent->evnt_type === 0) + @if( $clubEvent->evnt_type == 0) {{ trans('mainLang.normalProgramm') }} - @elseif( $clubEvent->evnt_type === 1) + @elseif( $clubEvent->evnt_type == 1) {{ trans('mainLang.information') }} - @elseif( $clubEvent->evnt_type === 2) + @elseif( $clubEvent->evnt_type == 2) {{ trans('mainLang.special') }} - @elseif( $clubEvent->evnt_type === 3) + @elseif( $clubEvent->evnt_type == 3) {{ trans('mainLang.LiveBandDJ') }} - @elseif( $clubEvent->evnt_type === 4) + @elseif( $clubEvent->evnt_type == 4) {{ trans('mainLang.internalEvent') }} - @elseif( $clubEvent->evnt_type === 5) + @elseif( $clubEvent->evnt_type == 5) {{ trans('mainLang.utilization') }} - @elseif( $clubEvent->evnt_type === 6) + @elseif( $clubEvent->evnt_type == 6) {{ trans('mainLang.flooding') }} - @elseif( $clubEvent->evnt_type === 7) + @elseif( $clubEvent->evnt_type == 7) {{ trans('mainLang.flyersPlacard') }} - @elseif( $clubEvent->evnt_type === 8) + @elseif( $clubEvent->evnt_type == 8) {{ trans('mainLang.preSale') }} - @elseif( $clubEvent->evnt_type === 9) + @elseif( $clubEvent->evnt_type == 9) {{ trans('mainLang.others') }} @endif - @if($clubEvent->facebook_done === 1) + @if($clubEvent->facebook_done == 1) @else From e9d759d51aa06f6306c52452fccaa9c77c15e8a5 Mon Sep 17 00:00:00 2001 From: Fabian Markert Date: Wed, 31 Jan 2018 10:05:46 +0100 Subject: [PATCH 21/92] Update ClubEventController.php fix prices with 0 - 1 value --- app/Http/Controllers/ClubEventController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ClubEventController.php b/app/Http/Controllers/ClubEventController.php index b6d1c14b8..35714668e 100644 --- a/app/Http/Controllers/ClubEventController.php +++ b/app/Http/Controllers/ClubEventController.php @@ -564,7 +564,7 @@ private function editClubEvent($id) private function getOrNullNumber($query){ $num = Input::get($query); - if(intval($num)>0){ + if(doubleval($num)>0){ return $num; } else { return null; From 49cb33781ab3244bc7d863f5ab7da947e13af5f2 Mon Sep 17 00:00:00 2001 From: 4D44H <4d44hex@gmail.com> Date: Tue, 30 Jan 2018 19:48:52 +0100 Subject: [PATCH 22/92] Add BD preview login --- app/Http/Controllers/LoginController.php | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/app/Http/Controllers/LoginController.php b/app/Http/Controllers/LoginController.php index 9a59a4164..9d22e2efe 100755 --- a/app/Http/Controllers/LoginController.php +++ b/app/Http/Controllers/LoginController.php @@ -220,6 +220,35 @@ public function doProductionLogin() } } + +// Preview login for BD-Club, stored in hashed form in config/bcLDAP.php + if (Input::get('username') === "bd-berta") { + + if (Config::get('bcLDAP.bd-berta') === base64_encode(mhash(MHASH_MD5, Input::get('password')))) { + + Session::put('userId', '8888'); + Session::put('userName', 'BD Berta Preview'); + Session::put('userGroup', 'clubleitung'); + Session::put('userClub', 'bd-Club'); + Session::put('userStatus', 'member'); + Session::put('clubFilter', 'bd-Club'); + + Log::info('BD Preview login used.'); + + return Redirect::back(); + + } else { + + Session::put('message', Config::get('messages_de.ldap-override-fail')); + Session::put('msgType', 'danger'); + + Log::warning('BD BERTA PREVIEW LOGIN FAIL: wrong password!'); + + return Redirect::back(); + } + } + + // BLACKLIST - following IDs will not be able to login // 1708 = public account for using bc-wiki if (Input::get('username') === "1708") { From e4af1779e38a3144af7f6bdcc2ac02cbef901ef7 Mon Sep 17 00:00:00 2001 From: fabian Date: Fri, 2 Feb 2018 01:02:21 +0100 Subject: [PATCH 23/92] add day view to main site --- resources/lang/de/mainLang.php | 1 + resources/lang/en/mainLang.php | 1 + resources/lang/pirate/mainLang.php | 173 +++++++++--------- .../partials/clubEventByIdSmall.blade.php | 6 +- resources/views/partials/navigation.blade.php | 101 +++++----- 5 files changed, 142 insertions(+), 140 deletions(-) diff --git a/resources/lang/de/mainLang.php b/resources/lang/de/mainLang.php index f179c9eed..d7f876b5f 100755 --- a/resources/lang/de/mainLang.php +++ b/resources/lang/de/mainLang.php @@ -274,6 +274,7 @@ //----------------------------------------------------------------------------------------------------------- // /resources/views/partials/navigation.blade.php + 'today' => 'Tag', 'month' => 'Monat', 'week' => 'Woche', //not translated the term 'logs' diff --git a/resources/lang/en/mainLang.php b/resources/lang/en/mainLang.php index 34719e979..960c6e195 100755 --- a/resources/lang/en/mainLang.php +++ b/resources/lang/en/mainLang.php @@ -271,6 +271,7 @@ //----------------------------------------------------------------------------------------------------------- // /resources/views/partials/navigation.blade.php + 'today' => 'Day', 'month' => 'Month', 'week' => 'Week', diff --git a/resources/lang/pirate/mainLang.php b/resources/lang/pirate/mainLang.php index e932d153a..3f7066d8a 100755 --- a/resources/lang/pirate/mainLang.php +++ b/resources/lang/pirate/mainLang.php @@ -30,7 +30,7 @@ 'notWorkingMail' => 'Eine Planke ist lose? Versende :Name eine Taube!', 'moreInfosProjectsite' => 'Land in Sicht? Kletter\' in den Mast!', 'backToTop' => 'Ins Krähennest klettern!', - + //----------------------------------------------------------------------------------------------------- // resources/views @@ -54,35 +54,35 @@ 'priceTickets' => 'Vorausbuchung', 'price' => 'Beförderungsentgelt', 'studentExtern' => 'Seeleute / Landratten', - + //---------------------------------------------- - + 'begin' => 'Beginn', 'end' => 'Ende', 'eventDefaults' => 'Was der Kapitän gesagt hat:', - + 'DV-Time' => 'An Bord sein', 'club' => 'Schiff', 'internalEventP' => 'Feirn im engsten Kreise', // Placeholder string 'internEventP' => 'Feirn im engsten Kreise', // Placeholder string for example used in monthCell.blade.php - + 'willShowFor' => 'Ahoi an', - + 'changeEvent' => 'Veranstaltung ändern', 'deleteEvent' => 'Veranstaltung löschen', 'confirmDeleteEvent' => 'Diese Veranstaltung wirklich entfernen? Diese Aktion kann nicht rückgängig gemacht werden!', - + 'additionalInfo' => 'Flaschenpost', 'moreDetails' => 'Ansagen vom Kapitän', - + //Button 'showMore' => 'Mehr!', 'showLess' => 'Verschwinde!', - + 'hideTimes' => 'Gläser wegpacken', - + 'addComment' => 'Blödsinn ausrufen', //not used Line ClubEventView ~270 Placeholder message and similar - + //List of Changes 'listChanges' => 'Schiffsregister', @@ -94,7 +94,7 @@ 'whenWasIt' => 'Wann war das?', //------------------------------------------------------------------------------------------------------- - + // resources/views/createClubEventView.blade.php 'createNewVEvent' => 'Neue Veranstaltung erstellen', 'createNewEvent' => 'Neues Event erstellen', @@ -103,7 +103,7 @@ 'title' => 'Titel', 'subTitle' => 'Subtitel', 'error' => 'Fehler', - + 'showExtern' => 'Für Externe sichtbar machen?', 'survey' => 'Umfrage', @@ -115,7 +115,7 @@ 'section' => 'Abteil', 'showFor' => 'Zeige für', - + 'passwordEntry' => 'Passwort zum Eintragen', 'passwordRepeat' => 'Passwort wiederholen', 'passwordDeleteMessage' => 'Um das Passwort zu löschen trage in beide Felder "delete" ein (ohne Anführungszeichen).', @@ -124,14 +124,14 @@ 'public' => 'öffentlich', 'details' => 'Interne Information', 'showOnlyIntern' => 'nur intern sichtbar', - + 'backWithoutChange' => 'Ohne Änderung zurück', - + //--------------------------------------------------------------------------------------------------------- - + // resources/views/editClubEventView.blade.php 'changeEventJob' => 'Veranstaltung/Aufgabe ändern', - + //Lines for editing only with permission 'noNotThisWay' => 'Ne, das geht so nicht...', 'onlyThe' => 'Nur die', @@ -141,53 +141,53 @@ 'marketingManager' => 'Smutje', 'canChangeEventJob' => 'dürfen diese Veranstaltung/Aufgabe ändern.', 'commaThe' => ', die ', //line number ~332 - + //----------------------------------------------------------------------------------------------------------- - + // resources/views/createSurveyView.blade.php 'createNewSurvey' => 'Neue Umfrage erstellen', - + //----------------------------------------------------------------------------------------------------------- - + // resources/views/editSurveyView.blade.php 'editSurvey' => 'Umfrage editieren', 'confirmDeleteSurvey' => 'Möchtest du die Umfrage ":title" wirklich löschen?', - + //----------------------------------------------------------------------------------------------------------- - + // resources/views/surveyView.blade.php 'description' => 'Beschreibung', 'surveyDeadlineTo' => 'Die Umfrage läuft noch bis', 'um' => 'um', //better translation needed - + //result messages; can be changed with pluralization 'noPersonAnswered' => 'Es hat noch keine Person abgestimmt.', 'onePersonAnswered' => 'Es hat bereits eine Person abgestimmt.', 'fewPersonAnswered1' => 'Es haben bereits', 'fewPersonAnswered2' => 'Personen abgestimmt.', - + //tableau (head) 'name' => 'Name', 'myClub' => 'Schiff', 'addMe' => 'Anhoyern!', - + //Answers 'yes' => 'Aaay!', 'no' => 'Neey!', 'noInformation' => 'mmmh...', - + 'noClub' => 'Extern', - + 'confirmDeleteAnswer' => 'Möchtest Du diese Antwort wirklich löschen?', - + //evaluation; can be changed with pluralization 'evaluation' => 'Auswertung', 'personDidNotAnswer' => 'Person wollte keine Angaben machen.', 'personsDidNotAnswer' => 'Personen wollten keine Angaben machen.', 'personAnswered' => 'Person stimmte für', 'personsAnswered' => 'Personen stimmten für', - + //List of Changes 'who' => 'Wer', 'summary' => 'Zusammenfassung', @@ -195,9 +195,9 @@ 'oldValue' => 'Alter Wert', 'newValue' => 'Neuer Wert', 'when' => 'Wann', - + //----------------------------------------------------------------------------------------------------------- - + // resources/views/monthView.blade.php //short weekdays + CW 'Cw' => 'KW', @@ -221,59 +221,60 @@ // resources/views/monthView.blade.php 'showWeek' => 'Detaillierte Ansicht dieser Woche anzeigen', - + //----------------------------------------------------------------------------------------------------------- - + // resources/views/createSurveyView.blade.php 'noEventsThisWeek' => 'Keine Veranstaltungen diese Woche', 'noSurveysThisWeek' => 'Keine Umfragen diese Woche', - + //----------------------------------------------------------------------------------------------------------- - + // resources/views/listView.blade.php 'for' => 'Für', 'noEventsPlanned' => 'sind keine Veranstaltungen geplant', 'noEventsOn' => 'Keine Veranstaltungen am', 'EventsFor' => 'Veranstaltungen für', - + //----------------------------------------------------------------------------------------------------------- - + // resources/views/log.blade.php // not translated - international view - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials // /resources/views/partials/clubEventByIdSmall.blade.php 'noResults' => 'Keine Treffer', - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/editSchedule.blade.php 'adjustRoster' => 'Dienstplan anpassen', 'serviceTypeEnter' => 'Diensttyp hier eingeben', 'weight' => 'Gewicht (für Statistik)', 'statisticalEvaluation' => 'Kombüse', - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/filter.blade.php 'allSections' => 'Alle Schiffe', 'comments' => 'Ausrufe', - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/legend.blade.php //handled in the event type part in the /resources/views/clubEventView.blade.php part - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/monthCell.blade.php 'internalSurvey' => 'Interne Umfrage', - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/navigation.blade.php + 'today' => 'Tag', 'month' => 'Jahreszwölftel', 'week' => 'Trinkzeit', //not translated the term 'logs' @@ -281,13 +282,13 @@ 'manageShiftType' => 'Diensttypen verwalten', 'manageSections' => 'Mannschaften verwalten', // TODO use Job for Service - german: Dienst maybe change to Shift - Schicht - + 'manageTemplate' => 'Vorlagen verwalten', - + //create button text 'createNewEvent' => 'Neue Fahrt ansagen', 'createNewSurvey' => 'Die Mannschaft fragen', - + //Member types 'candidate' => 'Frischling', 'veteran' => 'Seebär', @@ -295,12 +296,12 @@ 'ex-candidate' => 'Deserteur', 'active' => 'Matrose', 'external' => 'Landratte', - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/scheduleEntryName.blade.php 'IDoIt' => 'Anhoyern!', //Ich mach's! - + // /resources/views/partials/scheduleEntryStatus.blade.php 'jobFree' => 'Dienst frei', @@ -318,43 +319,43 @@ // /resources/views/partials/personalStatistics.blade.php //----------------------------------------------------------------------------------------------------------- - + // /resources/views/statisticsView.blade.php 'monthStatistic' => 'Monatsabrechnung', 'yearStatistic' => 'Jahresabrechnung', - + // /resources/views/partials/surveyAnswerStatus.blade.php //no new strings - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/surveyForm.blade.php 'showOnlyForLoggedInMember' => 'nur für Crewmitglieder sichtbar', 'showResultsOnlyForCreator' => 'Ergebnisse sind nur für den Umfragenersteller sichtbar', 'showResultsAfterFillOut' => 'Ergebnisse sind erst nach dem Ausfüllen sichtbar', - + 'passwordSetOptional' => 'Das Setzen eines Passworts ist optional', - + //Answer and Question options 'answerOption' => 'Antwortmöglichkeit', 'question' => 'Frage', - + //Questionoptions 'freeText' => 'Freitext', 'checkbox' => 'Checkbox', 'dropdown' => 'Dropdown', - + 'required' => 'erforderlich', 'addAnswerOption' => 'Antwortmöglichkeit hinzufügen', 'addQuestion' => 'Frage hinzufügen', - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/weekCellFull.blade.php 'hide' => 'Ausblenden', - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/weekCellHidden.blade.php 'moreDetailsAfterLogInMessage' => 'Darüber reden wir erst wenn du an Bord gehst!', // 'moreDetailsAfterLogInMessage2' => 'nach dem Einloggen zugänglich.', @@ -362,17 +363,17 @@ // ToDo find a solution //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/weekCellProtected.blade.php //no new strings - + //----------------------------------------------------------------------------------------------------------- - + // /resources/views/partials/weekCellSurvey.blade.php //no new strings - + //----------------------------------------------------------------------------------------------------------- - + // /public/js ToDo add these strings // Maybe To do translate Javascript, tricky, " " can throw error messages // /public/js/vedst-script.js @@ -380,12 +381,12 @@ 'errorMessageEnterPasswordForShiftPlan' => 'Bitte noch das Passwort für diesen Dienstplan eingeben:', 'shiftTime' => 'Deckzeit', //'hideTimes' already exists - + 'weekStart' => 'Manendach - Sonnendach', 'hideTakenShifts' => 'Nur FREIe Dienste', - + //----------------------------------------------------------------------------------------------------------- - + //Controller ToDo add these strings //ShiftController //action description @@ -403,29 +404,29 @@ 'messageSuccessfulDeleted' => 'Erfolgreich gelöscht!', //----------------------------------------------------------------------------------------------------------- - + //placeholder strings (e.g. used in buttons or text fields) - + /* | instead of { trans('message.key' }} use Lang::get('message.key') in the view */ - + //ClubEvent 'addCommentHere' => 'Blödsinn ausrufen', 'enterPasswordHere' => 'Passwort hier eingeben', 'placeholderTitleWineEvening' => 'z.B. Weinabend', //'placeholderTitleWineEvening' - + 'placeholderSubTitleWineEvening'=> 'z.B. Das Leben ist zu kurz, um schlechten Grogg zu trinken', //'placeholderSubTitleWineEvening' - + 'placeholderPublicInfo' => 'z.B. Karten nur im Vorverkauf', 'placeholderPrivateDetails' => 'z.B. DJ-Tisch wird gebraucht', - + //Survey 'addAnswerHere' => 'Antwort hier hinzufügen', 'createSurvey' => 'Umfrage erstellen', //Button text - + //Partials //Navigation 'clubNumber' => 'Matrose', @@ -439,7 +440,7 @@ 'placeholderTitleSurvey' => 'z.B. Teilnahme an der Clubfahrt', 'placeholderDescription' => 'Beschreibung:', 'placeholderActiveUntil' => 'Aktiv bis:', - + // Misc. 'guest' => 'Passagier', 'accessDenied' => 'Moment mal... Nur eingeloggte Crewmitglieder mit ausreichendem Rang dürfen hier rein! Logge dich ein, oder komm zur nächsten Versammlung und heuer an.', @@ -490,7 +491,7 @@ ////////// // ICal // ////////// - + 'icalfeeds' => 'Kalenderfeed im iCal-Format', 'publishEvent' => 'Event veröffentlichen', 'unpublishEvent' => 'War alles nur Seemansgarn', diff --git a/resources/views/partials/clubEventByIdSmall.blade.php b/resources/views/partials/clubEventByIdSmall.blade.php index ae282df3e..361e25aec 100644 --- a/resources/views/partials/clubEventByIdSmall.blade.php +++ b/resources/views/partials/clubEventByIdSmall.blade.php @@ -1,6 +1,4 @@ -@if(count($clubEvent)==0) -

{{ trans('mainLang.noResults') }}

-@else +
{{-- show only a placeholder for private events --}} @@ -20,4 +18,4 @@ {{ trans('mainLang.club') }}: {{ $clubEvent->section->title }}
-@endif + diff --git a/resources/views/partials/navigation.blade.php b/resources/views/partials/navigation.blade.php index 1de74c196..a0a5c8b76 100755 --- a/resources/views/partials/navigation.blade.php +++ b/resources/views/partials/navigation.blade.php @@ -20,12 +20,13 @@ class="navbar-toggle collapsed" BERTA @else LARA - @endif + @endif + From e12162d7822d6b256da0159130f2ecfbd18289ee Mon Sep 17 00:00:00 2001 From: fabian Date: Thu, 15 Mar 2018 01:14:03 +0100 Subject: [PATCH 24/92] correct bug with shifttype and paginate --- app/Http/Controllers/ShiftTypeController.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/ShiftTypeController.php b/app/Http/Controllers/ShiftTypeController.php index 66ab8d98b..98dc2cf8f 100644 --- a/app/Http/Controllers/ShiftTypeController.php +++ b/app/Http/Controllers/ShiftTypeController.php @@ -78,10 +78,8 @@ public function show($id) $shifts = Shift::where('shifttype_id', '=', $id) ->with('schedule.event.section') ->paginate(25); - $templatesQuery = Template::whereHas('shifts', function ($query) use ($shifts) { - $query->whereIn('id',$shifts->map(function($shift){ - return $shift->id; - })->toArray()); + $templatesQuery = Template::whereHas('shifts', function ($query) use ($id) { + $query->where('shifttype_id','=',$id); })->with('section') ->orderBy('title'); From 7209dab0fd0721b7913ebbc983895ee957cc5acf Mon Sep 17 00:00:00 2001 From: fabian Date: Thu, 15 Mar 2018 01:35:58 +0100 Subject: [PATCH 25/92] fix check --- resources/views/shifttypes/shiftTypeView.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/shifttypes/shiftTypeView.blade.php b/resources/views/shifttypes/shiftTypeView.blade.php index 38547c4d5..dcd38ccd4 100644 --- a/resources/views/shifttypes/shiftTypeView.blade.php +++ b/resources/views/shifttypes/shiftTypeView.blade.php @@ -186,7 +186,7 @@ class="btn btn-small btn-danger"
- - - - - - - +
+
- # - - {{ trans('mainLang.shift') }} - - {{ trans('mainLang.start') }}-{{ trans('mainLang.end') }} - - {{ trans('mainLang.weight') }} - - {{ trans("mainLang.actions") }} -
+ + + + + + + - - - + + + -
- @foreach($shiftTypes as $shiftType) -
- - - - - + + + + + - - @endforeach - - -
+ # + + {{ trans('mainLang.shift') }} + + {{ trans('mainLang.start') }}-{{ trans('mainLang.end') }} + + {{ trans('mainLang.weight') }} + + {{ trans("mainLang.actions") }} + {{ trans("mainLang.replaceAll") }}
- {!! $shiftType->id !!} - - - {!! $shiftType->title !!} - - - {!! date("H:i", strtotime($shiftType->start)) !!} - - - {!! date("H:i", strtotime($shiftType->end)) !!} - - {!! $shiftType->statistical_weight !!} - - - {{ trans('mainLang.editDetails') }} - -    - - {{ trans('mainLang.deleteThisShiftType') }} - +
+ @foreach($shiftTypes as $shiftType) +
+ {!! $shiftType->id !!} + + + {!! $shiftType->title !!} + + + {!! date("H:i", strtotime($shiftType->start)) !!} + - + {!! date("H:i", strtotime($shiftType->end)) !!} + + {!! $shiftType->statistical_weight !!} + + + {{ trans('mainLang.editDetails') }} + +    + + {{ trans('mainLang.deleteThisShiftType') }} + @include('shifttypes.shiftTypeSelect',['shift'=>$shiftType,'shiftTypes' => $shiftTypes,'route'=>'completeOverrideShiftType','shiftTypeId'=>$shiftType->id, 'selectorClass'=>'shiftTypeReplaceSelector']) -
+ + + @endforeach +
+ + +
diff --git a/resources/views/templateManagement.blade.php b/resources/views/templateManagement.blade.php index 89ab08064..ead7e6284 100644 --- a/resources/views/templateManagement.blade.php +++ b/resources/views/templateManagement.blade.php @@ -12,8 +12,9 @@
- - +
+
+ - - + + -
# @@ -37,8 +38,8 @@  
+ + +
From 6c6ec6260a138f26929feacd9eaf9833f405e507 Mon Sep 17 00:00:00 2001 From: fabian Date: Fri, 16 Mar 2018 20:36:39 +0100 Subject: [PATCH 27/92] fix button size --- resources/views/partials/events/shift.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/partials/events/shift.blade.php b/resources/views/partials/events/shift.blade.php index a6dbb92d3..ec96055c7 100644 --- a/resources/views/partials/events/shift.blade.php +++ b/resources/views/partials/events/shift.blade.php @@ -41,6 +41,6 @@ class="input" @if(!is_null($shiftId) && $shiftId!='' && \Lara\Utilities::requirePermission(['admin','marketing','clubleitung'])) - + @endif
From da66f78ebd4f97351abce270f7c98e0029279dd7 Mon Sep 17 00:00:00 2001 From: fabian Date: Fri, 16 Mar 2018 21:43:55 +0100 Subject: [PATCH 28/92] fix layout --- resources/views/editTemplateView.blade.php | 63 ++++++++++------------ 1 file changed, 29 insertions(+), 34 deletions(-) diff --git a/resources/views/editTemplateView.blade.php b/resources/views/editTemplateView.blade.php index 31c7a3b8f..619ac1131 100644 --- a/resources/views/editTemplateView.blade.php +++ b/resources/views/editTemplateView.blade.php @@ -15,13 +15,8 @@

{{ trans('mainLang.changeEventJob') }}:

- -
-
-
- -
+
{!! Form::text('title', @@ -32,17 +27,16 @@ 'required') ) !!}
- + {!! Form::text('subtitle', $template->subtitle, array('class'=>'form-control', 'placeholder'=>trans('mainLang.placeholderSubTitleWineEvening'), 'style'=>'cursor: auto') ) !!}
-
+
-
+
@for($i = 0;$i<10;$i++)
-
-
+ +
-
-
-
+ +
@@ -80,9 +74,9 @@
-
- From eeb97c7ac06d7d89544bd4c8c6f606bff7654b6e Mon Sep 17 00:00:00 2001 From: Fabian Markert Date: Thu, 5 Apr 2018 21:34:52 +0200 Subject: [PATCH 32/92] fix wrong section selected in create club event --- .../clubevent/createClubEventView.blade.php | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/resources/views/clubevent/createClubEventView.blade.php b/resources/views/clubevent/createClubEventView.blade.php index 0bb8e0cdc..00974d226 100644 --- a/resources/views/clubevent/createClubEventView.blade.php +++ b/resources/views/clubevent/createClubEventView.blade.php @@ -24,9 +24,9 @@ class="control-label col-md-2 col-sm-2 col-xs-4">{{ trans('mainLang.template') } - @foreach($sections as $section) - - @foreach( $templates->filter(function ($template) use ($section) { return $template->section_id == $section->id; }) as $template ) + @foreach($sections as $tSection) + + @foreach( $templates->filter(function ($template) use ($tSection) { return $template->section_id == $tSection->id; }) as $template )