From a7189482e92556c33b5a320989faa97be98c82bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Sat, 15 Aug 2015 23:36:38 +0200 Subject: [PATCH] add shift creator and editor --- db/update.sql | 13 ++++++++ includes/model/Shifts_model.php | 10 ++++-- includes/view/Shifts_view.php | 13 +++++++- locale/de_DE.UTF-8/LC_MESSAGES/default.mo | Bin 34023 -> 34218 bytes locale/de_DE.UTF-8/LC_MESSAGES/default.po | 39 +++++++++++++--------- 5 files changed, 57 insertions(+), 18 deletions(-) diff --git a/db/update.sql b/db/update.sql index 594969f9..3dbd613a 100644 --- a/db/update.sql +++ b/db/update.sql @@ -1,3 +1,16 @@ +/* more shift infos */ +ALTER TABLE `Shifts` ADD `created_by_user_id` INT NOT NULL , +ADD `created_at_timestamp` INT NOT NULL , +ADD `edited_by_user_id` INT NOT NULL , +ADD `edited_at_timestamp` INT NOT NULL; +ALTER TABLE `Shifts` ADD INDEX ( `created_by_user_id` ); +ALTER TABLE `Shifts` ADD INDEX ( `edited_by_user_id` ); +ALTER TABLE `Shifts` CHANGE `created_by_user_id` `created_by_user_id` INT( 11 ) NULL ; +ALTER TABLE `Shifts` CHANGE `edited_by_user_id` `edited_by_user_id` INT( 11 ) NULL ; +update Shifts set created_by_user_id=null, edited_by_user_id=null; +ALTER TABLE `Shifts` ADD FOREIGN KEY ( `created_by_user_id` ) REFERENCES `engelsystem`.`User` (`UID`) ON DELETE SET NULL ON UPDATE CASCADE ; +ALTER TABLE `Shifts` ADD FOREIGN KEY ( `edited_by_user_id` ) REFERENCES `engelsystem`.`User` (`UID`) ON DELETE SET NULL ON UPDATE CASCADE ; + /* Introduce planned departure date */ ALTER TABLE `User` ADD `planned_departure_date` INT NULL, ADD INDEX ( `planned_departure_date` ); diff --git a/includes/model/Shifts_model.php b/includes/model/Shifts_model.php index c12d3e01..d32de0cb 100644 --- a/includes/model/Shifts_model.php +++ b/includes/model/Shifts_model.php @@ -101,6 +101,7 @@ function Shift_delete($shift_id) { * Update a shift. */ function Shift_update($shift) { + global $user; $shift['name'] = ShiftType($shift['shifttype_id'])['name']; mail_shift_change(Shift($shift['SID']), $shift); @@ -111,7 +112,9 @@ function Shift_update($shift) { `RID`='" . sql_escape($shift['RID']) . "', `title`=" . sql_null($shift['title']) . ", `URL`=" . sql_null($shift['URL']) . ", - `PSID`=" . sql_null($shift['PSID']) . " + `PSID`=" . sql_null($shift['PSID']) . ", + `edited_by_user_id`='" . sql_escape($user['UID']) . "', + `edited_at_timestamp`=" . time() . " WHERE `SID`='" . sql_escape($shift['SID']) . "'"); } @@ -134,6 +137,7 @@ function Shift_update_by_psid($shift) { * @return new shift id or false */ function Shift_create($shift) { + global $user; $result = sql_query("INSERT INTO `Shifts` SET `shifttype_id`='" . sql_escape($shift['shifttype_id']) . "', `start`='" . sql_escape($shift['start']) . "', @@ -141,7 +145,9 @@ function Shift_create($shift) { `RID`='" . sql_escape($shift['RID']) . "', `title`=" . sql_null($shift['title']) . ", `URL`=" . sql_null($shift['URL']) . ", - `PSID`=" . sql_null($shift['PSID'])); + `PSID`=" . sql_null($shift['PSID']) . ", + `created_by_user_id`='" . sql_escape($user['UID']) . "', + `created_at_timestamp`=" . time()); if ($result === false) return false; return sql_id(); diff --git a/includes/view/Shifts_view.php b/includes/view/Shifts_view.php index 9586cf90..b0628a3b 100644 --- a/includes/view/Shifts_view.php +++ b/includes/view/Shifts_view.php @@ -1,5 +1,14 @@ ', $info); +} + function Shift_signup_button_render($shift, $angeltype, $user_angeltype = null, $user_shifts = null) { global $user; @@ -60,6 +69,7 @@ function Shift_view($shift, $shifttype, $room, $shift_admin, $angeltypes_source, } return page_with_title($shift['name'] . ' %c', [ + msg(), Shift_collides($shift, $user_shifts) ? info(_('This shift collides with one of your shifts.'), true) : '', $signed_up ? info(_('You are signed up for this shift.'), true) : '', @@ -104,7 +114,8 @@ function Shift_view($shift, $shifttype, $room, $shift_admin, $angeltypes_source, '

' . _('Description') . '

', $parsedown->parse($shifttype['description']) ]) - ]) + ]), + $shift_admin ? Shift_editor_info_render($shift) : '' ]); } diff --git a/locale/de_DE.UTF-8/LC_MESSAGES/default.mo b/locale/de_DE.UTF-8/LC_MESSAGES/default.mo index a1f9cab619204f461b4ab0dc18c466ebdb4dee9c..3e58bc2a773703a6a127a56ab3d2b9bdb3d30825 100644 GIT binary patch delta 9695 zcmZA534D)79>?(~i6lZKBuFA6Aqk0)I3f{B)J+hrJL(AH3PK2V{t?#EBZ#AJt)q3* zh&sC3U5nb5ma1Zx?y9b8OI4L#*v~gJ>C5i(>M!r#%rnnC^UTciBzkj^`;M2~UDpE2 ztZ+Dvx;ajDykEg_o^yAck3v=JI2EHErxsSi8kmSQae81)%*5K5kCC{;dKPuvJygF{ zXjB&)SqGq(dmC!TRaXMiT>PDI9gCkKl z%0=}%3pHbpQT_Wd|6y1a)o&uY)L{#fYM73?(P(7Zoav~BucJENfg1Ti)RG*>IJ{!( zy(sAVK-2?7*>WS)lea+)q&JqqfpLse$xtdZ(vhe&e-ZU$GcXYIt*cO*YA2S=6qcua z6}1GntnT&9W(>t<)Tbho=S;%{+-%FA)?=Q?o!|M9im~<0g`-ew|B5Z|!iJPTK@H43 z-kkSAJy8sn!v?4aX^xtSH1xw4&RUe(HLx`pfZK5lzKanU%f?WDos*bUZm!Ue`WZjDz$T6&nr%;>l8fqYqP@B;|*(_B!svM1aOPZkW*EN~>*99Y} zNWiHWhue|CI-eo0yi>lZnfese6Lv$re%VM9XPzy;YyAvkslS7~08Vg<`2cl7_N$YN zb#SYTB!uJ)*2SBcg8_WD>fu~e{a#eNE69uC+_&Z0%}qzGunP4ft+Ozc@^Y+(`)v6` zRJ)tD-t~w?PZa!&nZhPmk#bMeOk|-(x)k~LIEOI?zeYV_r560XfX$JvoL5k9!D;I` z)ULmb+T1r#OZP3Z#4hJPi7t3-Pk6O7PwI~vNUSY4L(N1_)E;qR$=*PHST><Y!XJ^J~-}^+fei14%@^ zJ*`ns*c)~IAk=_!P)j%$wV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BZ0C%(UZ{eB(Z_~Ag;k&T#5So)6px~pZGHo%83A+Na%QsIBN4t zs^ECR;7qdhn{8R7*}NX-{$$T@p>7ZP-*F@^!`?WM=%p-jU=HBV(>X(X+MfL%G$X5|FZFxFAOI)C? zG0}^>4UQ&S5|u|6o1C|f!uN_av&k(K1S7T3NDp7evk<{g!pRG7d?nRzt%OTc8>dS3D8}}0jh$yXpi9IpF8h}Ho zk04^mgE5mBZqL7u^=!U?dL4(b1F?d<2k|j+htRQ~`XFrQDRG|izsXb3ZOxAiVkwbJ zJkE(>sN-?`z@*L)tVOw)_!s#jw%&(w9--qT5oYtP)|YV%@df9;C-x9qD0jd*T0L)) zGlZYLVF39#BAoIg#P8%CiPy=?a1c>>G@!0C5lJktl}GSV$~xK-SBW~5r`fvKtb=vI z|NFa$VtuD9Fg7xztV7!gbvKshC6wLG>rtg@t2XJWtv6=(ZQ{w=luhnCDy;0v_}B&; OBUe0HHhV>CmHz?JuPHbH diff --git a/locale/de_DE.UTF-8/LC_MESSAGES/default.po b/locale/de_DE.UTF-8/LC_MESSAGES/default.po index 8f724435..d2241761 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: 2015-08-15 14:53+0100\n" -"PO-Revision-Date: 2015-08-15 14:54+0100\n" +"POT-Creation-Date: 2015-08-15 23:36+0100\n" +"PO-Revision-Date: 2015-08-15 23:36+0100\n" "Last-Translator: msquare \n" "Language-Team: \n" "Language: de_DE\n" @@ -114,7 +114,7 @@ msgstr "ansehen" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_groups.php:23 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_rooms.php:18 #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:84 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:67 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:77 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftTypes_view.php:52 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftTypes_view.php:63 #: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:156 @@ -131,7 +131,7 @@ msgstr "bearbeiten" #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:86 #: /Users/msquare/workspace/projects/engelsystem/includes/view/Questions_view.php:5 #: /Users/msquare/workspace/projects/engelsystem/includes/view/Questions_view.php:12 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:68 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:78 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftTypes_view.php:15 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftTypes_view.php:53 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftTypes_view.php:64 @@ -680,7 +680,6 @@ msgid "arrived" msgstr "angekommen" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_arrive.php:109 -#, fuzzy msgid "Planned arrival" msgstr "Geplanter Ankunftstag" @@ -907,7 +906,7 @@ msgstr "Tag" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_import.php:128 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_import.php:137 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_shifts.php:306 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:78 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:88 msgid "Start" msgstr "Beginn" @@ -915,7 +914,7 @@ msgstr "Beginn" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_import.php:129 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_import.php:138 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_shifts.php:307 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:86 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:96 msgid "End" msgstr "Ende" @@ -930,7 +929,7 @@ msgstr "Schichttyp" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_import.php:140 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_shifts.php:302 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_shifts.php:185 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:74 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:84 msgid "Title" msgstr "Titel" @@ -1137,7 +1136,7 @@ msgstr "Typ und Titel" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_shifts.php:255 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_shifts.php:316 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_shifts.php:189 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:100 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:110 msgid "Needed angels" msgstr "Benötigte Engel" @@ -1715,7 +1714,7 @@ msgstr[0] "%d Helfer benötigt" msgstr[1] "%d Helfer benötigt" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_shifts.php:638 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:13 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:22 msgid "Sign up" msgstr "Eintragen" @@ -1725,7 +1724,7 @@ msgstr "vorbei" #: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_shifts.php:649 #: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_shifts.php:782 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:15 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:24 #, php-format msgid "Become %s" msgstr "Werde ein %s" @@ -1846,7 +1845,7 @@ msgstr "" #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:63 #: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:93 -#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:104 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:114 #: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftTypes_view.php:35 msgid "Description" msgstr "Beschreibung" @@ -1972,15 +1971,25 @@ msgstr "Typ:" msgid "Comment (for your eyes only):" msgstr "Kommentar (nur für Dich):" -#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:64 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:6 +#, php-format +msgid "created at %s by %s" +msgstr "erstellt am %s von %s" + +#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:8 +#, php-format +msgid "edited at %s by %s" +msgstr "bearbeitet am %s von %s" + +#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:74 msgid "This shift collides with one of your shifts." msgstr "Diese Schicht kollidiert mit deinen Schichten." -#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:65 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:75 msgid "You are signed up for this shift." msgstr "Du bist für diese Schicht eingetragen." -#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:94 +#: /Users/msquare/workspace/projects/engelsystem/includes/view/Shifts_view.php:104 #: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:221 msgid "Location" msgstr "Ort"