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') }}?
- @if($clubEvent->facebook_done === 1)
+ @if($clubEvent->facebook_done == 1)
{{ trans('mainLang.yes') }}
@else
{{ trans('mainLang.no') }}
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"
@else
- @endif
+ @endif
-
+
{{-- LARA ADMIN PANEL / admins only --}}
@if(\Lara\Utilities::requirePermission('admin'))
@@ -94,10 +95,10 @@ class="dropdown-toggle"
{{ trans('mainLang.manageSections') }}
-
-
+
+
- Lara update
+ Lara update
@@ -124,48 +125,48 @@ class="dropdown-toggle"
{{-- Mobile version --}}
-
+
{{ trans('mainLang.createNewEvent') }}
-
+
{{ trans('mainLang.createNewSurvey') }}
{{-- MEMBER INFO / members only --}}
- {!! Form::open(array('url' => 'logout',
- 'method' => 'POST',
+ {!! Form::open(array('url' => 'logout',
+ 'method' => 'POST',
'class'=>'form-horizontal')) !!}
- @if ( Session::get('userStatus') === 'candidate' )
-
- @elseif ( Session::get('userStatus') === 'veteran' )
-
- @elseif ( Session::get('userStatus') === 'resigned' )
-
@elseif ( Session::get('userStatus') === 'member')
@endif
@@ -183,13 +184,13 @@ class="btn btn-sm btn-primary visible-xs centered">
{{ Session::get('userClub') }}
@endif
">
- {{ Session::get('userName') }}
+ {{ Session::get('userName') }}
- {!! Form::submit( Lang::get('mainLang.logOut'),
- array('class' => 'btn btn-default btn-sm pull-right',
- 'name' => 'logout') ) !!}
+ {!! Form::submit( Lang::get('mainLang.logOut'),
+ array('class' => 'btn btn-default btn-sm pull-right',
+ 'name' => 'logout') ) !!}
{!! Form::close() !!}
@@ -198,31 +199,31 @@ class="btn btn-sm btn-primary visible-xs centered">
{{-- LOGIN FORM / public --}}
- {!! Form::open( array('url' => 'login',
- 'method' => 'POST',
+ {!! Form::open( array('url' => 'login',
+ 'method' => 'POST',
'class' => 'form-horizontal navbar-right') ) !!}
-
+
- {!! Form::text( 'username',
- Input::old( 'username' ),
+ {!! Form::text( 'username',
+ Input::old( 'username' ),
array('placeholder' => Lang::get('mainLang.clubNumber'),
'class' => 'form-control',
'autocomplete' => 'on',
- 'style' => 'cursor: auto') ) !!}
-
+ 'style' => 'cursor: auto') ) !!}
+
- {!! Form::password( 'password',
+ {!! Form::password( 'password',
['placeholder' => Lang::get('mainLang.password' ),
'class' => 'form-control',
'autocomplete' => 'off',
- 'style' => 'cursor: auto'] ) !!}
-
+ 'style' => 'cursor: auto'] ) !!}
+
- {!! Form::submit( Lang::get('mainLang.logIn'),
- array('class' => ' btn btn-primary btn-sm') ) !!}
-
+ {!! Form::submit( Lang::get('mainLang.logIn'),
+ array('class' => ' btn btn-primary btn-sm') ) !!}
+
{!! Form::close() !!}
@@ -233,6 +234,6 @@ class="btn btn-sm btn-primary visible-xs centered">
-
+
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"
@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') }}:
-
+
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') }}:
-
-
-
-
-
-
+
{{ trans('mainLang.title') }}:
{!! Form::text('title',
@@ -32,17 +27,16 @@
'required') ) !!}
- {{ trans('mainLang.subTitle') }}
- :
+ {{ trans('mainLang.subTitle') }}:
{!! Form::text('subtitle',
$template->subtitle,
array('class'=>'form-control',
'placeholder'=>trans('mainLang.placeholderSubTitleWineEvening'),
'style'=>'cursor: auto') ) !!}
-