diff --git a/db/update.sql b/db/update.sql index b36ea522..6e1c6dc5 100644 --- a/db/update.sql +++ b/db/update.sql @@ -45,3 +45,7 @@ update Room set `from_frab`=(`FromPentabarf`='Y'); ALTER TABLE `Room` DROP `FromPentabarf`; ALTER TABLE `Room` ADD `map_url` VARCHAR(300) NULL AFTER `from_frab`; ALTER TABLE `Room` ADD `description` TEXT NULL AFTER `map_url`; + +-- Dashboard +ALTER TABLE `AngelTypes` ADD `show_on_dashboard` BOOLEAN NOT NULL AFTER `contact_email`; +UPDATE `AngelTypes` SET `show_on_dashboard`=TRUE; diff --git a/includes/controller/angeltypes_controller.php b/includes/controller/angeltypes_controller.php index 621b5cbd..48b81b9f 100644 --- a/includes/controller/angeltypes_controller.php +++ b/includes/controller/angeltypes_controller.php @@ -141,6 +141,7 @@ function angeltype_edit_controller() $angeltype['restricted'] = $request->has('restricted'); $angeltype['no_self_signup'] = $request->has('no_self_signup'); + $angeltype['show_on_dashboard'] = $request->has('show_on_dashboard'); $angeltype['requires_driver_license'] = $request->has('requires_driver_license'); } diff --git a/includes/controller/public_dashboard_controller.php b/includes/controller/public_dashboard_controller.php index 3cd85a50..4a36ea42 100644 --- a/includes/controller/public_dashboard_controller.php +++ b/includes/controller/public_dashboard_controller.php @@ -12,7 +12,14 @@ function public_dashboard_controller() 'hours-to-work' => stats_hours_to_work() ]; - $free_shifts = Shifts_free(time(), time() + 12 * 60 * 60); + $free_shifts_source = Shifts_free(time(), time() + 12 * 60 * 60); + $free_shifts = []; + foreach ($free_shifts_source as $shift) { + $free_shift = public_dashboard_controller_free_shift($shift); + if(count($free_shift['needed_angels']) > 0) { + $free_shifts[] = $free_shift; + } + } return [ _('Public Dashboard'), @@ -20,6 +27,62 @@ function public_dashboard_controller() ]; } +/** + * Gathers informations for free shifts to display. + * + * @param array $shift + */ +function public_dashboard_controller_free_shift($shift) +{ + $shifttype = ShiftType($shift['shifttype_id']); + $room = Room($shift['RID']); + + $free_shift = [ + 'style' => 'default', + 'start' => date('H:i', $shift['start']), + 'end' => date('H:i', $shift['end']), + 'duration' => round(($shift['end'] - $shift['start']) / 3600), + 'shifttype_name' => $shifttype['name'], + 'title' => $shift['title'], + 'room_name' => $room['Name'], + 'needed_angels' => [] + ]; + + if (time() + 3 * 60 * 60 > $shift['start']) { + $free_shift['style'] = 'warning'; + } + if (time() > $shift['start']) { + $free_shift['style'] = 'danger'; + } + + $free_shift['needed_angels'] = public_dashboard_needed_angels($shift['NeedAngels']); + + return $free_shift; +} + +/** + * Gathers informations for needed angels on dashboard + * + * @param array $needed_angels + */ +function public_dashboard_needed_angels($needed_angels) +{ + $result = []; + foreach ($needed_angels as $needed_angel) { + $need = $needed_angel['count'] - $needed_angel['taken']; + if ($need > 0) { + $angeltype = AngelType($needed_angel['TID']); + if ($angeltype['show_on_dashboard']) { + $result[] = [ + 'need' => $need, + 'angeltype_name' => $angeltype['name'] + ]; + } + } + } + return $result; +} + /** * Returns url to public dashboard */ diff --git a/includes/model/AngelType_model.php b/includes/model/AngelType_model.php index bdfb0e6e..f6e2a9cf 100644 --- a/includes/model/AngelType_model.php +++ b/includes/model/AngelType_model.php @@ -18,7 +18,8 @@ function AngelType_new() 'requires_driver_license' => false, 'contact_name' => null, 'contact_dect' => null, - 'contact_email' => null + 'contact_email' => null, + 'show_on_dashboard' => true ]; } @@ -65,7 +66,8 @@ function AngelType_update($angeltype) `no_self_signup` = ?, `contact_name` = ?, `contact_dect` = ?, - `contact_email` = ? + `contact_email` = ?, + `show_on_dashboard` = ? WHERE `id` = ?', [ $angeltype['name'], @@ -76,6 +78,7 @@ function AngelType_update($angeltype) $angeltype['contact_name'], $angeltype['contact_dect'], $angeltype['contact_email'], + (int)$angeltype['show_on_dashboard'], $angeltype['id'], ] ); @@ -86,7 +89,8 @@ function AngelType_update($angeltype) . ($angeltype['requires_driver_license'] ? ', requires driver license' : '') . ', ' . $angeltype['contact_name'] . ', ' . $angeltype['contact_dect'] . ', ' - . $angeltype['contact_email'] + . $angeltype['contact_email'] . ', ' + . $angeltype['show_on_dashboard'] ); } @@ -107,9 +111,10 @@ function AngelType_create($angeltype) `no_self_signup`, `contact_name`, `contact_dect`, - `contact_email` + `contact_email`, + `show_on_dashboard` ) - VALUES (?, ?, ?, ?, ?, ?, ?, ?) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) ', [ $angeltype['name'], @@ -120,6 +125,7 @@ function AngelType_create($angeltype) $angeltype['contact_name'], $angeltype['contact_dect'], $angeltype['contact_email'], + $angeltype['show_on_dashboard'] ] ); @@ -130,7 +136,8 @@ function AngelType_create($angeltype) . ($angeltype['requires_driver_license'] ? ', requires driver license' : '') . ', ' . $angeltype['contact_name'] . ', ' . $angeltype['contact_dect'] . ', ' - . $angeltype['contact_email'] + . $angeltype['contact_email'] . ', ' + . $angeltype['show_on_dashboard'] ); return $angeltype; } diff --git a/includes/model/Shifts_model.php b/includes/model/Shifts_model.php index ad64e9b9..caca2a33 100644 --- a/includes/model/Shifts_model.php +++ b/includes/model/Shifts_model.php @@ -27,7 +27,7 @@ function Shifts_by_angeltype($angeltype) { } /** - * Returns every shift with needed angels in the given time range. + * Returns every shift with needed angels in the given time range. */ function Shifts_free($start, $end) { diff --git a/includes/view/AngelTypes_view.php b/includes/view/AngelTypes_view.php index a8b34df8..a5c10a38 100644 --- a/includes/view/AngelTypes_view.php +++ b/includes/view/AngelTypes_view.php @@ -84,6 +84,10 @@ function AngelType_edit_view($angeltype, $supporter_mode) $supporter_mode ? form_info(_('Restricted'), $angeltype['restricted'] ? _('Yes') : _('No')) : form_checkbox('restricted', _('Restricted'), $angeltype['restricted']), + form_info( + '', + _('Restricted angel types can only be used by an angel if enabled by a supporter (double opt-in).') + ), $supporter_mode ? form_info(_('No Self Sign Up'), $angeltype['no_self_signup'] ? _('Yes') : _('No')) : form_checkbox('no_self_signup', _('No Self Sign Up'), $angeltype['no_self_signup']), @@ -92,12 +96,10 @@ function AngelType_edit_view($angeltype, $supporter_mode) : form_checkbox( 'requires_driver_license', _('Requires driver license'), - $angeltype['requires_driver_license'] - ), - form_info( - '', - _('Restricted angel types can only be used by an angel if enabled by a supporter (double opt-in).') - ), + $angeltype['requires_driver_license']), + $supporter_mode + ? form_info(_('Show on dashboard'), $angeltype['show_on_dashboard'] ? _('Yes') : _('No')) + : form_checkbox('show_on_dashboard', _('Show on dashboard'), $angeltype['show_on_dashboard']), form_textarea('description', _('Description'), $angeltype['description']), form_info('', _('Please use markdown for the description.')), heading(_('Contact'), 3), diff --git a/includes/view/PublicDashboard_view.php b/includes/view/PublicDashboard_view.php index 7ae434a2..30f63d63 100644 --- a/includes/view/PublicDashboard_view.php +++ b/includes/view/PublicDashboard_view.php @@ -51,35 +51,22 @@ function public_dashboard_view($stats, $free_shifts) */ function public_dashborad_shift_render($shift) { - $style = 'default'; - if (time() + 3 * 60 * 60 > $shift['start']) { - $style = 'warning'; - } - if (time() > $shift['start']) { - $style = 'danger'; - } - - $panel_body = glyph('time') . date('H:i', $shift['start']) . ' - ' . date('H:i', $shift['end']); - $panel_body .= ' (' . round(($shift['end'] - $shift['start']) / 3600) . ' h)'; + $panel_body = glyph('time') . $shift['start'] . ' - ' . $shift['end']; + $panel_body .= ' (' . $shift['duration'] . ' h)'; - $panel_body .= '
' . glyph('tasks') . ShiftType($shift['shifttype_id'])['name']; + $panel_body .= '
' . glyph('tasks') . $shift['shifttype_name']; if (! empty($shift['title'])) { $panel_body .= ' (' . $shift['title'] . ')'; } - $panel_body .= '
' . glyph('map-marker') . Room($shift['RID'])['Name']; + $panel_body .= '
' . glyph('map-marker') . $shift['room_name']; - foreach ($shift['NeedAngels'] as $needed_angels) { - $need = $needed_angels['count'] - $needed_angels['taken']; - if ($need > 0) { - $panel_body .= '
' . glyph('user') . '' . $need . ' × ' . AngelType($needed_angels['TID'])['name'] . ''; - } + foreach ($shift['needed_angels'] as $needed_angels) { + $panel_body .= '
' . glyph('user') . '' . $needed_angels['need'] . ' × ' . $needed_angels['angeltype_name'] . ''; } - // $panel_body = '' . $panel_body . ''; - return div('col-md-3', [ - div('dashboard-panel panel panel-' . $style, [ + div('dashboard-panel panel panel-' . $shift['style'], [ div('panel-body', [ '', $panel_body diff --git a/locale/de_DE.UTF-8/LC_MESSAGES/default.mo b/locale/de_DE.UTF-8/LC_MESSAGES/default.mo index 538fe0e3..e66ec098 100644 Binary files a/locale/de_DE.UTF-8/LC_MESSAGES/default.mo and b/locale/de_DE.UTF-8/LC_MESSAGES/default.mo differ diff --git a/locale/de_DE.UTF-8/LC_MESSAGES/default.po b/locale/de_DE.UTF-8/LC_MESSAGES/default.po index 5fe64ee7..db98357b 100644 --- a/locale/de_DE.UTF-8/LC_MESSAGES/default.po +++ b/locale/de_DE.UTF-8/LC_MESSAGES/default.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Engelsystem 2.0\n" -"POT-Creation-Date: 2017-12-20 23:11+0100\n" -"PO-Revision-Date: 2017-12-20 23:12+0100\n" +"POT-Creation-Date: 2017-12-23 11:35+0100\n" +"PO-Revision-Date: 2017-12-23 11:35+0100\n" "Last-Translator: msquare \n" "Language-Team: \n" "Language: de_DE\n" @@ -24,15 +24,15 @@ msgstr "Bitte auswählen..." #: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:12 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_shifts.php:221 #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:77 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:130 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:132 #: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:514 msgid "Angeltypes" msgstr "Engeltypen" #: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:68 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/guest_login.php:503 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:488 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:587 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:490 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:589 #: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:130 msgid "Teams/Job description" msgstr "Team-/Aufgabenbeschreibung" @@ -52,28 +52,28 @@ msgstr "Lösche Engeltyp %s" msgid "Please check the name. Maybe it already exists." msgstr "Bitte überprüfe den Namen. Vielleicht ist er bereits vergeben." -#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:167 +#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:168 #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:75 #, php-format msgid "Edit %s" msgstr "%s bearbeiten" -#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:204 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:333 +#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:205 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:335 #, php-format msgid "Team %s" msgstr "Team %s" -#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:287 +#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:288 #: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:357 msgid "view" msgstr "ansehen" -#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:295 +#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:296 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_free.php:97 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_groups.php:43 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_rooms.php:25 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:163 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:165 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftTypes_view.php:92 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftTypes_view.php:124 #: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:132 @@ -82,14 +82,14 @@ msgstr "ansehen" msgid "edit" msgstr "bearbeiten" -#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:300 +#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:301 #: /Users/msquare/workspace/projects/engelsystem/includes/controller/shifts_controller.php:241 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_questions.php:58 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_questions.php:76 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_rooms.php:26 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_user.php:174 #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:59 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:170 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:172 #: /Users/msquare/workspace/projects/engelsystem/includes/view/Questions_view.php:15 #: /Users/msquare/workspace/projects/engelsystem/includes/view/Questions_view.php:26 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftEntry_view.php:21 @@ -101,19 +101,19 @@ msgstr "bearbeiten" msgid "delete" msgstr "löschen" -#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:311 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:156 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:524 +#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:312 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:158 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:526 msgid "leave" msgstr "verlassen" -#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:317 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:140 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:529 +#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:318 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:142 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:531 msgid "join" msgstr "mitmachen" -#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:354 +#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:355 msgid "Angeltype doesn't exist . " msgstr "Engeltyp existiert nicht." @@ -295,9 +295,9 @@ msgstr "Benötigte Engel" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_rooms.php:166 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_shifts.php:299 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_messages.php:76 -#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:168 -#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:257 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:111 +#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:180 +#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:269 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:113 #: /Users/msquare/workspace/projects/engelsystem/includes/view/EventConfig_view.php:150 #: /Users/msquare/workspace/projects/engelsystem/includes/view/Questions_view.php:47 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftEntry_view.php:75 @@ -472,13 +472,13 @@ msgid "Removed supporter rights for %s from %s." msgstr "%s hat jetzt nicht mehr %s als Supporter." #: /Users/msquare/workspace/projects/engelsystem/includes/controller/user_angeltypes_controller.php:287 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:250 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:252 #: /Users/msquare/workspace/projects/engelsystem/includes/view/UserAngelTypes_view.php:12 msgid "Add supporter rights" msgstr "Supporterrechte geben" #: /Users/msquare/workspace/projects/engelsystem/includes/controller/user_angeltypes_controller.php:287 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:233 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:235 #: /Users/msquare/workspace/projects/engelsystem/includes/view/UserAngelTypes_view.php:12 msgid "Remove supporter rights" msgstr "Supporterrechte entfernen" @@ -800,8 +800,8 @@ msgstr "entferne t-shirt" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_arrive.php:195 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_arrive.php:210 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_arrive.php:225 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:411 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:419 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:413 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:421 #: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:218 msgid "Sum" msgstr "Summe" @@ -847,7 +847,7 @@ msgstr "Größe" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_active.php:278 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_shifts.php:11 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:344 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:346 #: /Users/msquare/workspace/projects/engelsystem/includes/view/Rooms_view.php:33 #: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:522 msgid "Shifts" @@ -982,8 +982,8 @@ msgstr "Nur bestätigte" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_free.php:119 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/guest_login.php:310 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/guest_login.php:478 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:285 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:298 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:287 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:300 #: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:31 #: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:117 #: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:234 @@ -992,10 +992,10 @@ msgstr "Nick" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_free.php:121 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/guest_login.php:366 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:109 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:286 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:299 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:468 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:111 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:288 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:301 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:470 #: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:50 #: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:237 msgid "DECT" @@ -1009,8 +1009,8 @@ msgstr "Jabber" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_free.php:123 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/guest_login.php:313 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:110 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:469 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:112 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:471 #: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:52 #: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:553 msgid "E-Mail" @@ -1027,9 +1027,9 @@ msgstr "Gruppenrechte" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_rooms.php:200 #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:82 #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:83 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:108 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:467 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:491 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:110 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:469 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:493 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftTypes_view.php:61 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftTypes_view.php:141 #: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:236 @@ -1208,19 +1208,19 @@ msgid "Author" msgstr "Autor" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_news.php:37 -#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:254 +#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:266 msgid "Subject" msgstr "Betreff" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_news.php:38 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_messages.php:119 -#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:167 -#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:255 +#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:179 +#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:267 msgid "Message" msgstr "Nachricht" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_news.php:39 -#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:256 +#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:268 msgid "Meeting" msgstr "Treffen" @@ -1307,8 +1307,8 @@ msgstr "" "Die Karten URL wird benutzt um auf der Raum-Seite ein iframe anzuzeigen." #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_rooms.php:154 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:101 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:390 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:103 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:392 #: /Users/msquare/workspace/projects/engelsystem/includes/view/Rooms_view.php:23 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftTypes_view.php:63 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftTypes_view.php:101 @@ -1317,7 +1317,7 @@ msgid "Description" msgstr "Beschreibung" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_rooms.php:155 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:102 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:104 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftTypes_view.php:64 msgid "Please use markdown for the description." msgstr "Bitte benutze Markdown für die Beschreibung." @@ -1441,15 +1441,17 @@ msgstr "Benutzer existiert nicht." #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_user.php:74 #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:85 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:88 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:91 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:92 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:95 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:101 msgid "Yes" msgstr "Ja" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_user.php:75 #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:85 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:88 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:91 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:92 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:95 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:101 msgid "No" msgstr "Nein" @@ -1769,24 +1771,24 @@ msgstr "News" msgid "Meetings" msgstr "Treffen" -#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:103 +#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:115 msgid "Comments" msgstr "Kommentare" -#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:144 -#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:212 +#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:156 +#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:224 msgid "Entry saved." msgstr "Eintrag gespeichert." -#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:165 +#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:177 msgid "New Comment:" msgstr "Neuer Kommentar:" -#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:171 +#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:183 msgid "Invalid request." msgstr "Ungültige Abfrage." -#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:251 +#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:263 msgid "Create news:" msgstr "News anlegen:" @@ -1940,7 +1942,7 @@ msgid "No data found." msgstr "Nichts gefunden." #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:31 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:441 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:443 msgid "Unconfirmed" msgstr "Unbestätigt" @@ -1974,21 +1976,11 @@ msgstr "abbrechen" #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:85 #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:86 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:492 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:494 msgid "Restricted" msgstr "Beschränkt" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:88 #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:89 -msgid "No Self Sign Up" -msgstr "Kein Selbst-Eintragen" - -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:91 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:94 -msgid "Requires driver license" -msgstr "Benötigt Führerschein" - -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:99 msgid "" "Restricted angel types can only be used by an angel if enabled by a " "supporter (double opt-in)." @@ -1996,20 +1988,35 @@ msgstr "" "Beschränkte Engeltypen müssen von einem Supporter freigeschaltet werden " "(double-opt-in)." -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:103 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:466 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:92 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:93 +msgid "No Self Sign Up" +msgstr "Kein Selbst-Eintragen" + +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:95 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:98 +msgid "Requires driver license" +msgstr "Benötigt Führerschein" + +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:101 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:102 +msgid "Show on dashboard" +msgstr "Auf dem Dashboard anzeigen" + +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:105 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:468 msgid "Contact" msgstr "Kontakt" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:106 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:108 msgid "Primary contact person/desk for user questions." msgstr "Ansprechpartner für Fragen." -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:134 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:136 msgid "my driving license" msgstr "Meine Führerschein-Infos" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:145 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:147 msgid "" "This angeltype requires a driver license. Please enter your driver license " "information!" @@ -2017,7 +2024,7 @@ msgstr "" "Dieser Engeltyp benötigt Führerschein-Infos. Bitte trage Deine Führerschein-" "Infos ein!" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:150 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:152 #, php-format msgid "" "You are unconfirmed for this angeltype. Please go to the introduction for %s " @@ -2026,86 +2033,86 @@ msgstr "" "Du bist noch nicht für diesen Engeltyp bestätigt. Bitte gehe zur Einführung " "für %s um bestätigt zu werden." -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:211 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:213 msgid "confirm" msgstr "bestätigen" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:219 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:221 msgid "deny" msgstr "ablehnen" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:257 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:259 msgid "remove" msgstr "entfernen" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:287 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:289 msgid "Driver" msgstr "Fahrer" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:288 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:290 msgid "Has car" msgstr "Hat Auto" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:289 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:291 #: /Users/msquare/workspace/projects/engelsystem/includes/view/UserDriverLicenses_view.php:29 msgid "Car" msgstr "Auto" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:290 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:292 msgid "3,5t Transporter" msgstr "3,5t Transporter" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:291 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:293 msgid "7,5t Truck" msgstr "7,5t LKW" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:292 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:294 msgid "12,5t Truck" msgstr "12,5t LKW" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:293 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:295 #: /Users/msquare/workspace/projects/engelsystem/includes/view/UserDriverLicenses_view.php:45 msgid "Forklift" msgstr "Gabelstapler" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:337 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:339 msgid "Info" msgstr "Info" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:405 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:407 msgid "Supporters" msgstr "Supporter" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:425 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:427 msgid "Members" msgstr "Mitglieder" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:433 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:435 #: /Users/msquare/workspace/projects/engelsystem/includes/view/UserAngelTypes_view.php:163 msgid "Add" msgstr "Hinzufügen" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:445 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:447 msgid "confirm all" msgstr "Alle bestätigen" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:449 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:451 msgid "deny all" msgstr "Alle ablehnen" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:486 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:488 msgid "New angeltype" msgstr "Neuer Engeltyp" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:493 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:495 msgid "Self Sign Up Allowed" msgstr "Selbst-Eintragen erlaubt" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:494 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:496 msgid "Membership" msgstr "Mitgliedschaft" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:538 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:540 msgid "" "This angeltype is restricted by double-opt-in by a team supporter. Please " "show up at the according introduction meetings." @@ -2113,11 +2120,11 @@ msgstr "" "Dieser Engeltyp muss zusätzlich von einem Team-Supporter freigeschaltet " "werden. Bitte komme zu den entsprechenden Einführungstreffen." -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:575 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:577 msgid "FAQ" msgstr "FAQ" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:580 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:582 msgid "" "Here is the list of teams and their tasks. If you have questions, read the " "FAQ."