[Mpuls-commits] r6013 - in base/trunk/mpulsweb: controllers i18n i18n/de/LC_MESSAGES lib

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Thu Aug 2 14:17:10 CEST 2012


Author: ludwig
Date: 2012-08-02 14:17:10 +0200 (Thu, 02 Aug 2012)
New Revision: 6013

Modified:
   base/trunk/mpulsweb/controllers/case.py
   base/trunk/mpulsweb/i18n/de/LC_MESSAGES/mpulsweb.po
   base/trunk/mpulsweb/i18n/mpulsweb.pot
   base/trunk/mpulsweb/lib/dialogs.py
Log:
Add a check case linked dialog. Asked if a case is selected.


Modified: base/trunk/mpulsweb/controllers/case.py
===================================================================
--- base/trunk/mpulsweb/controllers/case.py	2012-08-02 09:41:03 UTC (rev 6012)
+++ base/trunk/mpulsweb/controllers/case.py	2012-08-02 12:17:10 UTC (rev 6013)
@@ -12,7 +12,7 @@
 from mpulsweb.lib.translation import _, ungettext
 from mpulsweb.lib.base import BaseController, render, session, h
 from mpulsweb.lib.security import checkRole, check_feature
-from mpulsweb.lib.dialogs import checkPrivacyStatement, checkSyncPermission
+from mpulsweb.lib.dialogs import checkPrivacyStatement, checkSyncPermission, checkCaseLinked
 from mpulsweb.lib.validators import SetStandinForm, SetEditorForm, NewCaseForm
 from mpulsweb.lib.export import FormletterExport
 from mpulsweb.lib.anonymize import determineAnonymizedCaseEndPhaseName, \
@@ -44,6 +44,7 @@
     @checkRole(('admin', 'cm', 'pt_dlr'))
     @checkPrivacyStatement()
     @checkSyncPermission()
+    @checkCaseLinked()
     def select(self, id, confirmed=0):
         return self.digest(id)
 
@@ -799,6 +800,7 @@
     @checkRole('cm')
     @checkPrivacyStatement('keepActive')
     @checkSyncPermission()
+    @checkCaseLinked()
     def keepActive(self, id, confirmed):
         # If logbook is enabled let the user give the reason why he keeps the
         # case active.

Modified: base/trunk/mpulsweb/i18n/de/LC_MESSAGES/mpulsweb.po
===================================================================
--- base/trunk/mpulsweb/i18n/de/LC_MESSAGES/mpulsweb.po	2012-08-02 09:41:03 UTC (rev 6012)
+++ base/trunk/mpulsweb/i18n/de/LC_MESSAGES/mpulsweb.po	2012-08-02 12:17:10 UTC (rev 6013)
@@ -8,7 +8,7 @@
 "Project-Id-Version: mpulsweb 0.0.0\n"
 "Report-Msgid-Bugs-To: EMAIL at ADDRESS\n"
 "POT-Creation-Date: 2012-04-20 15:59+0200\n"
-"PO-Revision-Date: 2012-08-01 22:09+0200\n"
+"PO-Revision-Date: 2012-08-02 14:11+0200\n"
 "Last-Translator: Roland Geider <roland.geider at intevation.de>\n"
 "Language-Team: de <LL at li.org>\n"
 "Plural-Forms: nplurals=2; plural=(n != 1)\n"
@@ -260,7 +260,7 @@
 "Wollen Sie wirklich den Termin löschen und die Daten unwiederbringlich "
 "verlieren?"
 
-#: mpulsweb/controllers/case.py:69
+#: mpulsweb/controllers/case.py:70
 msgid ""
 "The meta server did not accept the request because of missing or "
 "incorrect username or password. Please check whether the meta-server is "
@@ -270,7 +270,7 @@
 "falschen Benutzernamen oder Passwort. Bitte prüfen Sie, ob die Angaben "
 "zum AiR-Server korrekt konfiguriert sind."
 
-#: mpulsweb/controllers/case.py:105 mpulsweb/controllers/case.py:174
+#: mpulsweb/controllers/case.py:106 mpulsweb/controllers/case.py:175
 #: mpulsweb/templates/casebundle/dialogs/failure_delete_admin.mako:6
 #: mpulsweb/templates/casebundle/dialogs/success_delete_admin.mako:6
 #: mpulsweb/templates/casebundle/dialogs/success_markdelete.mako:6
@@ -280,11 +280,11 @@
 msgid "Case document deleted!"
 msgstr "Fallakte gelöscht!"
 
-#: mpulsweb/controllers/case.py:106
+#: mpulsweb/controllers/case.py:107
 msgid "The case document is given to the administrator for deletion."
 msgstr "Die Fallakte wurde zum Löschen an die Administration weitergeleitet."
 
-#: mpulsweb/controllers/case.py:114 mpulsweb/controllers/case.py:134
+#: mpulsweb/controllers/case.py:115 mpulsweb/controllers/case.py:135
 #: mpulsweb/controllers/case_bundle.py:291
 #: mpulsweb/controllers/case_bundle.py:311
 #: mpulsweb/templates/casemanagement/dialogs/confirm.mako:6
@@ -294,7 +294,7 @@
 msgstr[0] "Fallakte löschen?"
 msgstr[1] "Fallakten löschen?"
 
-#: mpulsweb/controllers/case.py:115
+#: mpulsweb/controllers/case.py:116
 #, python-format
 msgid ""
 "Do you really want to mark this case for deletion?%s The case will not be"
@@ -305,7 +305,7 @@
 "steht Ihnen danach nicht mehr zur Bearbeitung zur Verfügung und wird der "
 "Administration zum Löschen vorgelegt.<br><br>"
 
-#: mpulsweb/controllers/case.py:135
+#: mpulsweb/controllers/case.py:136
 #, python-format
 msgid ""
 "Warning! On deleting the case all data will be erased "
@@ -318,11 +318,11 @@
 "<em>für Auswertungen nicht mehr berücksichtigt</em>!<br><br>Die Akte "
 "jetzt vom Server löschen?%s<br>"
 
-#: mpulsweb/controllers/case.py:153 mpulsweb/controllers/case.py:162
+#: mpulsweb/controllers/case.py:154 mpulsweb/controllers/case.py:163
 msgid "Case document not deleted!"
 msgstr "Fallakte nicht gelöscht!"
 
-#: mpulsweb/controllers/case.py:154
+#: mpulsweb/controllers/case.py:155
 msgid ""
 "The case can not be deleted because of an unexpected problem with the "
 "meta server."
@@ -330,29 +330,29 @@
 "Die Fallakte konnte wegen eines unerwarteten Problems mit dem AiR-Server "
 "nicht gelöscht werden."
 
-#: mpulsweb/controllers/case.py:163
+#: mpulsweb/controllers/case.py:164
 msgid "The case can not be deleted because of an unexpected problem."
 msgstr ""
 "Die Fallakte konnte wegen eines unerwarteten Problems nicht gelöscht "
 "werden."
 
-#: mpulsweb/controllers/case.py:175
+#: mpulsweb/controllers/case.py:176
 msgid "Click on OK to continue."
 msgstr "Bitte klicken Sie \"OK\", um fortzufahren."
 
-#: mpulsweb/controllers/case.py:203 mpulsweb/controllers/case.py:376
+#: mpulsweb/controllers/case.py:204 mpulsweb/controllers/case.py:377
 #: mpulsweb/controllers/privacy.py:121
 msgid "Anonymising not possible."
 msgstr "Anonymisierung nicht möglich."
 
-#: mpulsweb/controllers/case.py:220 mpulsweb/model/case.py:1497
+#: mpulsweb/controllers/case.py:221 mpulsweb/model/case.py:1497
 #: mpulsweb/model/phase.py:312
 #: mpulsweb/templates/casemanagement/caselist.mako:161
 #: mpulsweb/templates/phase/phase.mako:52
 msgid "Running"
 msgstr "laufend"
 
-#: mpulsweb/controllers/case.py:222 mpulsweb/model/case.py:1499
+#: mpulsweb/controllers/case.py:223 mpulsweb/model/case.py:1499
 #: mpulsweb/model/phase.py:314
 #: mpulsweb/templates/casemanagement/caselist.mako:164
 #: mpulsweb/templates/phase/phase.mako:54
@@ -360,11 +360,11 @@
 msgid "Finished"
 msgstr "beendet"
 
-#: mpulsweb/controllers/case.py:224 mpulsweb/controllers/case.py:384
+#: mpulsweb/controllers/case.py:225 mpulsweb/controllers/case.py:385
 msgid "Do make anonymous?"
 msgstr "Fallakte anonymisieren?"
 
-#: mpulsweb/controllers/case.py:225
+#: mpulsweb/controllers/case.py:226
 #, python-format
 msgid ""
 "<p>Do you really want to mark the case for anonymization?%s<br>The case "
@@ -377,12 +377,12 @@
 "Administratoren zur endgültigen Anonymisierung vorgelegt.</p><p><b>Die "
 "Fallakte wird in der Phase </b>%s<b> anonymisiert!</b><br>"
 
-#: mpulsweb/controllers/case.py:247 mpulsweb/controllers/case.py:267
-#: mpulsweb/controllers/case.py:285 mpulsweb/controllers/case.py:304
+#: mpulsweb/controllers/case.py:248 mpulsweb/controllers/case.py:268
+#: mpulsweb/controllers/case.py:286 mpulsweb/controllers/case.py:305
 msgid "Case document not marked for anonymization!"
 msgstr "Die Fallakte wurde nicht zur Anonymisierung freigegeben!"
 
-#: mpulsweb/controllers/case.py:249
+#: mpulsweb/controllers/case.py:250
 msgid ""
 "The case has not been marked for anonymization because the data could not"
 " be uploaded to the meta server because the meta case has been deleted or"
@@ -390,7 +390,7 @@
 "second attempt to anonymize the case should succeed."
 msgstr "Die Fallakte ist nicht zur Anonymisierung freigegeben worden, weil di"
 
-#: mpulsweb/controllers/case.py:269
+#: mpulsweb/controllers/case.py:270
 msgid ""
 "The case has not been marked for anonymization because the data could not"
 " be uploaded to the meta server because the project part does not exist "
@@ -398,7 +398,7 @@
 "second attempt to anonymize the case should succeed."
 msgstr "Die Fallakte ist nicht zur Anonymisierung freigegeben worden, weil di"
 
-#: mpulsweb/controllers/case.py:287
+#: mpulsweb/controllers/case.py:288
 msgid ""
 "The case has not been marked for anonymization because the data could not"
 " be uploaded to the meta server because the meta-case has been marked for"
@@ -406,7 +406,7 @@
 "it is restored on the meta-server."
 msgstr "Die Fallakte ist nicht zur Anonymisierung freigegeben worden, weil di"
 
-#: mpulsweb/controllers/case.py:306
+#: mpulsweb/controllers/case.py:307
 msgid ""
 "The case has not been marked for anonymization because of an unexpected "
 "problem with the meta server."
@@ -414,11 +414,11 @@
 "Die Fallakte wurde nicht zur Anonymisierung freigegeben worden wegen "
 "eines unerwarteten Problems mit dem AiR-Server."
 
-#: mpulsweb/controllers/case.py:318
+#: mpulsweb/controllers/case.py:319
 msgid "Case document not marked for anonymisation!"
 msgstr "Fallakte nicht zur Anonymisierung freigegeben!"
 
-#: mpulsweb/controllers/case.py:319
+#: mpulsweb/controllers/case.py:320
 msgid ""
 "The case can not be marked for anonymisation because of an unexpected "
 "problem."
@@ -426,11 +426,11 @@
 "Die Fallakte kann wegen eines unerwarteten Problems nicht zur "
 "Anonymisierung freigeben werden."
 
-#: mpulsweb/controllers/case.py:337
+#: mpulsweb/controllers/case.py:338
 msgid "Case marked for anonymisation."
 msgstr "Fallakte zur Anonymisierung freigegeben."
 
-#: mpulsweb/controllers/case.py:338
+#: mpulsweb/controllers/case.py:339
 msgid ""
 "The case document has been marked for anonymisation and has been given to"
 " the administration for final anonymisation. Please click on OK, to get "
@@ -440,11 +440,11 @@
 "Administration zur endgültigen Anonymisierung vor. Bitte klicken Sie auf "
 "\"OK\", um zur Fallaktenübersicht fortzufahren."
 
-#: mpulsweb/controllers/case.py:354
+#: mpulsweb/controllers/case.py:355
 msgid "Anonymisation not possible."
 msgstr "Anonymisierung nicht möglich."
 
-#: mpulsweb/controllers/case.py:355
+#: mpulsweb/controllers/case.py:356
 #, python-format
 msgid ""
 "The case could not be anonymised for the following "
@@ -455,7 +455,7 @@
 "möglich:</p><p><i>%s</i></p><p>Bitte klicken Sie auf \"OK\", um zur "
 "Fallaktenübersicht fortzufahren.</p>"
 
-#: mpulsweb/controllers/case.py:385
+#: mpulsweb/controllers/case.py:386
 #, python-format
 msgid ""
 "Do you really want to anonymise the case and irrecovably lose the "
@@ -467,13 +467,13 @@
 "mehr zur Bearbeitung zur Verfügung. Die anonymisierte Fallakte wird "
 "weiterhin in der Auswertung berücksichtigt werden.<br>"
 
-#: mpulsweb/controllers/case.py:403 mpulsweb/controllers/case.py:421
-#: mpulsweb/controllers/case.py:438 mpulsweb/controllers/case.py:456
-#: mpulsweb/controllers/case.py:467
+#: mpulsweb/controllers/case.py:404 mpulsweb/controllers/case.py:422
+#: mpulsweb/controllers/case.py:439 mpulsweb/controllers/case.py:457
+#: mpulsweb/controllers/case.py:468
 msgid "Case document not anonymized!"
 msgstr "Fallakte nicht anonymisiert!"
 
-#: mpulsweb/controllers/case.py:404
+#: mpulsweb/controllers/case.py:405
 msgid ""
 "The case has not been anonymized because the data could not be uploaded "
 "to the meta server one last time because the meta case has been deleted "
@@ -481,7 +481,7 @@
 " second attempt to anonymize the case should succeed."
 msgstr "Die Fallakte wurde nicht anonymisiert, weil die Daten nicht ei"
 
-#: mpulsweb/controllers/case.py:422
+#: mpulsweb/controllers/case.py:423
 msgid ""
 "The case has not been anonymized because the data could not be uploaded "
 "to the meta server one last time because the project part does not exist "
@@ -489,7 +489,7 @@
 "second attempt to anonymize the case should succeed."
 msgstr "Die Fallakte wurde nicht anonymisiert, weil die Daten nicht ei"
 
-#: mpulsweb/controllers/case.py:439
+#: mpulsweb/controllers/case.py:440
 msgid ""
 "The case has not been anonymized because the data could not be uploaded "
 "to the meta server one last time because the meta-case has been marked "
@@ -497,7 +497,7 @@
 "if it is restored on the meta-server."
 msgstr "Die Fallakte wurde nicht anonymisiert, weil die Daten nicht ei"
 
-#: mpulsweb/controllers/case.py:457
+#: mpulsweb/controllers/case.py:458
 msgid ""
 "The case can not be anonymized because of an unexpected problem with the "
 "meta server."
@@ -505,17 +505,17 @@
 "Die Fallakte kann wegen eines unerwarteten Problems mit dem AiR-Server "
 "nicht anonymisiert werden."
 
-#: mpulsweb/controllers/case.py:468
+#: mpulsweb/controllers/case.py:469
 msgid "The case can not be anonymized because of an unexpected problem."
 msgstr ""
 "Die Fallakte kann wegen eines unerwarteten Problems nicht anonymisiert "
 "werden."
 
-#: mpulsweb/controllers/case.py:479
+#: mpulsweb/controllers/case.py:480
 msgid "Case document anonymised!"
 msgstr "Fallakte anonymisiert!"
 
-#: mpulsweb/controllers/case.py:480
+#: mpulsweb/controllers/case.py:481
 msgid ""
 "The personal data of the case document has been deleted and the case "
 "document is removed from the overview. Please click on OK, to get back to"
@@ -525,13 +525,13 @@
 " aus der Übersicht entfernt. Bitte klicken Sie auf \"OK\", um zur "
 "Fallaktenübersicht fortzufahren."
 
-#: mpulsweb/controllers/case.py:500 mpulsweb/controllers/case_bundle.py:536
+#: mpulsweb/controllers/case.py:501 mpulsweb/controllers/case_bundle.py:536
 msgid "Case restored!"
 msgid_plural "Cases restored!"
 msgstr[0] "Fallakte wiederhergestellt!"
 msgstr[1] "Fallakten wiederhergestellt!"
 
-#: mpulsweb/controllers/case.py:501 mpulsweb/controllers/case_bundle.py:284
+#: mpulsweb/controllers/case.py:502 mpulsweb/controllers/case_bundle.py:284
 #: mpulsweb/controllers/case_bundle.py:344
 #: mpulsweb/controllers/case_bundle.py:357
 #: mpulsweb/controllers/case_bundle.py:416
@@ -550,14 +550,14 @@
 msgid "Please click OK to continue."
 msgstr "Bitte klicken Sie auf OK, um fortzufahren."
 
-#: mpulsweb/controllers/case.py:506 mpulsweb/controllers/case_bundle.py:546
+#: mpulsweb/controllers/case.py:507 mpulsweb/controllers/case_bundle.py:546
 #: mpulsweb/templates/casemanagement/dialogs/confirm_restore.mako:6
 msgid "Restore case?"
 msgid_plural "Restore cases?"
 msgstr[0] "Fallakte wiederherstellen?"
 msgstr[1] "Fallakten wiederherstellen?"
 
-#: mpulsweb/controllers/case.py:507
+#: mpulsweb/controllers/case.py:508
 #, python-format
 msgid ""
 "Do you really want to restore the case?%s The case will be editable "
@@ -566,11 +566,11 @@
 "Wollen Sie wirklich die Fallakte wiederherstellen? %s Die Fallakte ist "
 "danach wieder für die Nutzer bearbeitbar.<br>"
 
-#: mpulsweb/controllers/case.py:692
+#: mpulsweb/controllers/case.py:693
 msgid "Case copied!"
 msgstr "Fallakte kopiert"
 
-#: mpulsweb/controllers/case.py:693
+#: mpulsweb/controllers/case.py:694
 msgid ""
 "The case was succussfully copied and is now available in the case "
 "overview. Click on \"OK\" to open the case overview."
@@ -579,11 +579,11 @@
 "Fallaktenübersicht zur Verfügung. Klicken Sie auf \"OK\", um die "
 "Fallaktenübersicht zu öffnen."
 
-#: mpulsweb/controllers/case.py:699
+#: mpulsweb/controllers/case.py:700
 msgid "Copy case?"
 msgstr "Fallakte kopieren?"
 
-#: mpulsweb/controllers/case.py:700
+#: mpulsweb/controllers/case.py:701
 msgid ""
 "Do you really want to copy this case? All data will be copied in the new "
 "case."
@@ -591,11 +591,11 @@
 "Wollen Sie wirklich die Fallakten kopieren? Sämtliche Daten der Fallakte "
 "werden dann in einer neuen Fallakte übernommen."
 
-#: mpulsweb/controllers/case.py:721
+#: mpulsweb/controllers/case.py:722
 msgid "Case(s) imported!"
 msgstr "Fallakte(n) importiert!"
 
-#: mpulsweb/controllers/case.py:722
+#: mpulsweb/controllers/case.py:723
 msgid ""
 "The file was imported successfully. Click on 'OK' to open the case "
 "overview."
@@ -603,11 +603,11 @@
 "Die Datei wurde erfolgreich importiert. Klicken Sie auf \"OK\", um die "
 "Fallaktenübersicht zu öffnen."
 
-#: mpulsweb/controllers/case.py:728
+#: mpulsweb/controllers/case.py:729
 msgid "Case(s) not imported!"
 msgstr "Fallakte(n) nicht importiert!"
 
-#: mpulsweb/controllers/case.py:732
+#: mpulsweb/controllers/case.py:733
 msgid ""
 "An error occurred during the import. Click 'OK' to return to the import "
 "dialog."
@@ -615,33 +615,33 @@
 "Bei dem Import ist ein Fehler aufgetreten. Klicken Sie auf \"OK\", um zu "
 "dem Importdialog zurück zu kehren."
 
-#: mpulsweb/controllers/case.py:773
+#: mpulsweb/controllers/case.py:774
 msgid "Editor successfully set."
 msgstr "Bearbeiter/in erfolgreich gesetzt."
 
-#: mpulsweb/controllers/case.py:779
+#: mpulsweb/controllers/case.py:780
 msgid "Error! Editor cannot be set."
 msgstr "Fehler! Bearbeiter/in nicht gesetzt."
 
-#: mpulsweb/controllers/case.py:791
+#: mpulsweb/controllers/case.py:792
 msgid "Standin successfully set."
 msgstr "Vertretung erfolgreich gesetzt."
 
-#: mpulsweb/controllers/case.py:796
+#: mpulsweb/controllers/case.py:797
 msgid "Error! Standin is not set."
 msgstr "Fehler! Vertretung nicht gesetzt."
 
-#: mpulsweb/controllers/case.py:820 mpulsweb/controllers/case.py:841
+#: mpulsweb/controllers/case.py:822 mpulsweb/controllers/case.py:843
 msgid "Case storage extended"
 msgstr "Aufbewahrung verlängert"
 
-#: mpulsweb/controllers/case.py:821
+#: mpulsweb/controllers/case.py:823
 msgid "Please enter the reason for the case storage extension."
 msgstr ""
 "Bitte geben Sie hier den Grund für die Verlängerung der "
 "Aufbewahrungsfrist ein."
 
-#: mpulsweb/controllers/case.py:842
+#: mpulsweb/controllers/case.py:844
 msgid "The max case storage has been extended. Please click on OK to continue"
 msgstr ""
 "Die maximale Aufbewahrungsfrist wurde verlängert. Bitte klicken Sie auf "
@@ -1207,11 +1207,11 @@
 msgid "female"
 msgstr "weiblich"
 
-#: mpulsweb/controllers/meta.py:94
+#: mpulsweb/controllers/meta.py:100
 msgid "Set acceptance statement?"
 msgstr "Einwilligungserklärung setzen?"
 
-#: mpulsweb/controllers/meta.py:95
+#: mpulsweb/controllers/meta.py:101
 msgid ""
 "Do you really want to mark the acceptance statement as set. This requires"
 " a printable and signed acceptance statement from the client."
@@ -1220,11 +1220,11 @@
 "Übermittlung von Daten in die AiR-Akte in schriftlicher Form vorliegt. "
 "Sind Sie sicher, dass diese Angabe korrekt ist?"
 
-#: mpulsweb/controllers/meta.py:109
+#: mpulsweb/controllers/meta.py:115
 msgid "Allow synchronisation with meta?"
 msgstr "Synchronisation mit der AiR-Akte zulassen?"
 
-#: mpulsweb/controllers/meta.py:110
+#: mpulsweb/controllers/meta.py:116
 msgid ""
 "Sychronisation of data with the meta case requires the agreement of the "
 "subject."
@@ -1233,11 +1233,11 @@
 " des jungen Menschen. <BR>Liegt die Einwilligung des jungen Menschen zur "
 "Synchronisation mit der AiR-Akte vor?"
 
-#: mpulsweb/controllers/meta.py:120
+#: mpulsweb/controllers/meta.py:126
 msgid "Synchronisation allowed."
 msgstr "Synchronisation zugelassen"
 
-#: mpulsweb/controllers/meta.py:121
+#: mpulsweb/controllers/meta.py:127
 msgid ""
 "The sychronisation of data with the meta case has succsessfully been "
 "allowed."
@@ -1245,15 +1245,15 @@
 "Der Synchronisation der Daten mit der AiR-Akte wurde erfolgreich "
 "zugestimmt."
 
-#: mpulsweb/controllers/meta.py:127
+#: mpulsweb/controllers/meta.py:133
 msgid "Error! Synchronisation not allowed."
 msgstr "Fehler! Synchronisation nicht zugelassen."
 
-#: mpulsweb/controllers/meta.py:136
+#: mpulsweb/controllers/meta.py:142
 msgid "Disallow synchronisation with meta?"
 msgstr "Synchronisation mit AiR-Server deaktivieren?"
 
-#: mpulsweb/controllers/meta.py:137
+#: mpulsweb/controllers/meta.py:143
 msgid ""
 "Do your really want to disallow the synchronisation with the meta server?"
 " After that no sync is possible  anymore!"
@@ -1265,11 +1265,11 @@
 "die Einwilligung zur Synchronisation von dem jungen Menschen erneut "
 "einholen."
 
-#: mpulsweb/controllers/meta.py:148
+#: mpulsweb/controllers/meta.py:154
 msgid "Synchronisation disallowed."
 msgstr "Synchronisation deaktiviert."
 
-#: mpulsweb/controllers/meta.py:149
+#: mpulsweb/controllers/meta.py:155
 msgid ""
 "The sychronisation of data with the meta case has succsessfully been "
 "disallowed."
@@ -1277,15 +1277,15 @@
 "Die Synchronisation von Daten mit dem AiR-Server wurde erfolgreich "
 "deaktiviert."
 
-#: mpulsweb/controllers/meta.py:157
+#: mpulsweb/controllers/meta.py:163
 msgid "Error! synchronisation not disallowed."
 msgstr "Fehler! Synchronisation wurde nicht deaktiviert."
 
-#: mpulsweb/controllers/meta.py:160
+#: mpulsweb/controllers/meta.py:166
 msgid "Withdraw agremment for synchronisation with meta?"
 msgstr "Einwilligung zur Synchronisation mit der AiR-Akte zurückziehen?"
 
-#: mpulsweb/controllers/meta.py:161
+#: mpulsweb/controllers/meta.py:167
 msgid ""
 "Please note that disallowing the synchronisation with the meta case leads"
 " to unlinking this case with its meta case and deleting already "
@@ -1297,11 +1297,11 @@
 "Synchronisation ist danach nicht mehr möglich!<BR> Wollen Sie die "
 "Einwilligung zur Synchronisation mit der AiR-Akte wirklich zurückziehen?"
 
-#: mpulsweb/controllers/meta.py:174
+#: mpulsweb/controllers/meta.py:180
 msgid "Agreement withdrawn."
 msgstr "Einwilligung zurückgezogen."
 
-#: mpulsweb/controllers/meta.py:175
+#: mpulsweb/controllers/meta.py:181
 msgid ""
 "The agremment for sychronisation of data with the meta case has "
 "succsessfully been withdrawn. Already transfered data has been deleted."
@@ -1309,16 +1309,16 @@
 "Die Einwilligung zur Synchronisation der Daten mit der AiR-Akte wurde "
 "erfolgreich zurückgezogen. Bereits übertragene Daten wurden gelöscht."
 
-#: mpulsweb/controllers/meta.py:184 mpulsweb/controllers/meta.py:213
-#: mpulsweb/controllers/meta.py:243
+#: mpulsweb/controllers/meta.py:190 mpulsweb/controllers/meta.py:219
+#: mpulsweb/controllers/meta.py:249
 msgid "Error! Agreement for synchronisation not withdrawn."
 msgstr "Fehler! Die Einwilligung zur Synchronisation wurde nicht zurückgezogen."
 
-#: mpulsweb/controllers/meta.py:188 mpulsweb/controllers/meta.py:217
+#: mpulsweb/controllers/meta.py:194 mpulsweb/controllers/meta.py:223
 msgid "Withdraw agremment globally for synchronisation with meta?"
 msgstr "Einverständnis zur Synchronisation mit dem AiR-Server zurückziehen?"
 
-#: mpulsweb/controllers/meta.py:190
+#: mpulsweb/controllers/meta.py:196
 msgid ""
 "Please note that disallowing the synchronisation globally with the meta "
 "case leads to the anonymization of the whole meta-case on the meta "
@@ -1331,11 +1331,11 @@
 "Synchronisation ist danach nicht mehr möglich!<BR> Wollen Sie die "
 "Einwilligung zur Synchronisation mit der AiR-Akte wirklich zurückziehen?"
 
-#: mpulsweb/controllers/meta.py:203 mpulsweb/controllers/meta.py:232
+#: mpulsweb/controllers/meta.py:209 mpulsweb/controllers/meta.py:238
 msgid "Agreement globally withdrawn."
 msgstr "Einverständnis zurückgezogen."
 
-#: mpulsweb/controllers/meta.py:204
+#: mpulsweb/controllers/meta.py:210
 msgid ""
 "The agremment for sychronisation of data with the meta case has "
 "succsessfully been withdrawn. Meta case has been marked for "
@@ -1344,7 +1344,7 @@
 "Die Einwilligung zur Synchronisation der Daten mit der AiR-Akte wurde "
 "erfolgreich zurückgezogen. Die AiR-Akte wurde anonymisiert."
 
-#: mpulsweb/controllers/meta.py:219
+#: mpulsweb/controllers/meta.py:225
 msgid ""
 "Please note that disallowing the synchronisation globally with the meta "
 "case leads to the deletion of the whole meta-case on the meta server. The"
@@ -1355,7 +1355,7 @@
 "gelöscht wird. Die Daten der AiR-Akte stehen danach niemandem mehr zur "
 "Verfügung."
 
-#: mpulsweb/controllers/meta.py:233
+#: mpulsweb/controllers/meta.py:239
 msgid ""
 "The agremment for sychronisation of data with the meta case has "
 "succsessfully been withdrawn. Already transfered data has been deleted. "
@@ -1365,11 +1365,11 @@
 "erfolgreich zurückgezogen. Bereits übertragene Daten wurden gelöscht. Die"
 " AiR-Akte wurde schwebend gelöscht."
 
-#: mpulsweb/controllers/meta.py:299
+#: mpulsweb/controllers/meta.py:305
 msgid "Meta user disabled!"
 msgstr "AiR-Nutzer deaktiviert!"
 
-#: mpulsweb/controllers/meta.py:300
+#: mpulsweb/controllers/meta.py:306
 msgid ""
 "The meta user has been disabled to prevent misuse of the meta-search. "
 "Connections to the meta-serve are not possible from now on. Please "
@@ -1379,15 +1379,15 @@
 "vorzubeugen. Bitte kontaktieren Sie die Administration des AiR-Servers, "
 "um den AiR-Nutzer wieder zu aktivieren."
 
-#: mpulsweb/controllers/meta.py:317
+#: mpulsweb/controllers/meta.py:323
 msgid "Error while trying to search case"
 msgstr "Fehler bei der Fallaktensuche"
 
-#: mpulsweb/controllers/meta.py:324
+#: mpulsweb/controllers/meta.py:330
 msgid "Create new meta?"
 msgstr "Neue AiR-Akte anlegen?"
 
-#: mpulsweb/controllers/meta.py:325
+#: mpulsweb/controllers/meta.py:331
 #, python-format
 msgid ""
 "The new meta case will be created with the following data: %s Do you "
@@ -1396,43 +1396,43 @@
 "Die neue AiR-Akte wird mit den folgenden Daten angelegt werden: %s Wollen"
 " Sie wirklich eine neue AiR-Akte für diesen Fall anlegen?"
 
-#: mpulsweb/controllers/meta.py:351
+#: mpulsweb/controllers/meta.py:357
 msgid "Meta case created."
 msgstr "AiR-Akte angelegt."
 
-#: mpulsweb/controllers/meta.py:352
+#: mpulsweb/controllers/meta.py:358
 msgid "The meta case was sucessfully created and linked with this case."
 msgstr "Die AiR-Akte wurde erfolgreich angelegt und mit diesem Fall verknüpft."
 
-#: mpulsweb/controllers/meta.py:358
+#: mpulsweb/controllers/meta.py:364
 msgid "Error! Meta case not created."
 msgstr "Fehler! AiR-Akte wurde nicht angelegt."
 
-#: mpulsweb/controllers/meta.py:363
+#: mpulsweb/controllers/meta.py:369
 msgid "Link with meta?"
 msgstr "Mit der AiR-Akte verknüpfen?"
 
-#: mpulsweb/controllers/meta.py:364
+#: mpulsweb/controllers/meta.py:370
 msgid "Do you really want to link this the case with the selected meta case?"
 msgstr "Wollen Sie wirklich diesen Fall mit der ausgewählten AiR-Akte verknüpfen?"
 
-#: mpulsweb/controllers/meta.py:378
+#: mpulsweb/controllers/meta.py:384
 msgid "Case linked."
 msgstr "Fall wurde verknüpft."
 
-#: mpulsweb/controllers/meta.py:379
+#: mpulsweb/controllers/meta.py:385
 msgid "The case was sucessfully link with the meta case."
 msgstr "Der Fall wurde erfolgreich mit der AiR-Akte verknüpft."
 
-#: mpulsweb/controllers/meta.py:385
+#: mpulsweb/controllers/meta.py:391
 msgid "Error! Case not linked."
 msgstr "Fehler! Der Fall wurde nicht verknüpft."
 
-#: mpulsweb/controllers/meta.py:394
+#: mpulsweb/controllers/meta.py:400
 msgid "Unlink from meta?"
 msgstr "Verknüpfung zur AiR-Akte löschen?"
 
-#: mpulsweb/controllers/meta.py:395
+#: mpulsweb/controllers/meta.py:401
 msgid ""
 "Do you really want to unlink this the case from the meta case and delete "
 "already stored data from this agency in the meta case?"
@@ -1440,11 +1440,11 @@
 "Wollen Sie wirklich die Verknüpfung zur AiR-Akte löschen und damit "
 "bereits gespeicherte Daten Ihrer Einrichtung aus der AiR-Akte entfernen?"
 
-#: mpulsweb/controllers/meta.py:404
+#: mpulsweb/controllers/meta.py:410
 msgid "Case unlinked."
 msgstr "Verknüpfung gelöscht."
 
-#: mpulsweb/controllers/meta.py:405
+#: mpulsweb/controllers/meta.py:411
 msgid ""
 "The case was sucessfully unlinked from the meta case. Already transfered "
 "data has been deleted in meta case."
@@ -1452,29 +1452,29 @@
 "Die Verknüpfung zur AiR-Akte sowie bereits übertragene Daten konnten "
 "erfolgreich gelöscht werden."
 
-#: mpulsweb/controllers/meta.py:413
+#: mpulsweb/controllers/meta.py:419
 msgid "Error! Case not unlinked."
 msgstr "Fehler! Die Verknüpfung konnte nicht gelöscht werden."
 
-#: mpulsweb/controllers/meta.py:419
+#: mpulsweb/controllers/meta.py:425
 msgid "Data uploaded."
 msgstr "Daten übertragen."
 
-#: mpulsweb/controllers/meta.py:420
+#: mpulsweb/controllers/meta.py:426
 msgid "The data was sucessfully uploaded to the meta case."
 msgstr ""
 "Die Daten der Fallakten konnten erfolgreich zur AiR-Akte übertragen "
 "werden."
 
-#: mpulsweb/controllers/meta.py:426
+#: mpulsweb/controllers/meta.py:432
 msgid "Error! Data not uploaded."
 msgstr "Fehler! Daten nicht übertragen."
 
-#: mpulsweb/controllers/meta.py:448 mpulsweb/controllers/meta.py:462
+#: mpulsweb/controllers/meta.py:454 mpulsweb/controllers/meta.py:468
 msgid "Error! Data not downloaded."
 msgstr "Fehler! Daten nicht geladen."
 
-#: mpulsweb/controllers/meta.py:472
+#: mpulsweb/controllers/meta.py:478
 msgid ""
 "The meta server did not accept the request because of either disabled "
 "user or missing or incorrect username or password. Please check whether "
@@ -1485,7 +1485,7 @@
 "Deaktivierung des Nutzers auf dem AiR-Server. Bitte prüfen Sie, ob die "
 "Angaben zum AiR-Server korrekt konfiguriert sind. "
 
-#: mpulsweb/controllers/meta.py:484
+#: mpulsweb/controllers/meta.py:490
 msgid ""
 "The meta case doesn't seem to exist (anymore) on the meta server. The "
 "most likely reason for this is that the permission to store data on the "
@@ -1499,7 +1499,7 @@
 "Verknüpfung mit der AiR-Akte aufgehoben und das Zurückziehen des "
 "Einverständnisses auch in Projektakte festgehalten."
 
-#: mpulsweb/controllers/meta.py:499
+#: mpulsweb/controllers/meta.py:505
 msgid ""
 "The meta-case has been anonymized. Please check whether the case has to "
 "be anonymized as well. The information about the meta-case has been "
@@ -1513,7 +1513,7 @@
 "zurückgezogen worden. Bitte prüfen Sie, ob auch die Fallakte auf "
 "Projektebene anonymisiert werden muss."
 
-#: mpulsweb/controllers/meta.py:509
+#: mpulsweb/controllers/meta.py:515
 msgid ""
 "The meta-case has been marked for deletion or anonymization. It is "
 "possible that the case may be available for editing later, so you might "
@@ -1523,7 +1523,7 @@
 "möglich ist, dass die Akte später wieder zur Verfügung steht, können Sie "
 "eventuell Ihre Aktion später erfolgreich durchführen."
 
-#: mpulsweb/controllers/meta.py:520
+#: mpulsweb/controllers/meta.py:526
 msgid ""
 "The project part of the meta-case seems to be missing. Since the "
 "information about the meta case seems to be outdated, the link to the "
@@ -1704,13 +1704,13 @@
 "Ihre Standard-Vertretung wurde gespeichert. Bitte klicken Sie auf OK, um "
 "fortzufahren."
 
-#: mpulsweb/lib/dialogs.py:136 mpulsweb/lib/dialogs.py:148
-#: mpulsweb/lib/dialogs.py:159
+#: mpulsweb/lib/dialogs.py:172 mpulsweb/lib/dialogs.py:184
+#: mpulsweb/lib/dialogs.py:195
 msgid "Default Header"
 msgstr "Vorgabe Kopfzeile"
 
-#: mpulsweb/lib/dialogs.py:140 mpulsweb/lib/dialogs.py:152
-#: mpulsweb/lib/dialogs.py:163
+#: mpulsweb/lib/dialogs.py:176 mpulsweb/lib/dialogs.py:188
+#: mpulsweb/lib/dialogs.py:199
 msgid "Default Text"
 msgstr "Vorgabe Text"
 
@@ -1782,6 +1782,7 @@
 msgstr "Startdatum muss vor oder gleich dem Enddatum liegen"
 
 #: mpulsweb/lib/validators.py:292 mpulsweb/lib/validators.py:294
+#, python-format
 msgid "The dates must be at most %(value)s Days apart."
 msgstr "Die Datumsangaben dürfen maximal %(value)s Tage auseinander liegen."
 
@@ -2033,6 +2034,7 @@
 #: mpulsweb/templates/casemanagement/dialogs/success_restore.mako:5
 #: mpulsweb/templates/help/help.mako:6 mpulsweb/templates/phase/phase.mako:5
 #: mpulsweb/templates/phase/dialogs/success_fullautomatic_set_phase.mako:6
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:5
 #: mpulsweb/templates/privacy/dialogs/missing_statement.mako:5
 #: mpulsweb/templates/privacy/dialogs/missing_syncpermission.mako:5
 msgid "Case Management"
@@ -3202,6 +3204,7 @@
 #: mpulsweb/templates/casemanagement/dialogs/success_anonymize.mako:11
 #: mpulsweb/templates/casemanagement/dialogs/success_copy.mako:11
 #: mpulsweb/templates/casemanagement/dialogs/success_markanonymize.mako:11
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:6
 #: mpulsweb/templates/privacy/dialogs/missing_statement.mako:6
 #: mpulsweb/templates/privacy/dialogs/missing_syncpermission.mako:6
 msgid "Case document overview"
@@ -3334,6 +3337,11 @@
 "bereits zur Eingangsamnese bzw. Beratung vor dem Case Management "
 "eingeholt."
 
+#: mpulsweb/templates/casemanagement/new.mako:27
+#: mpulsweb/templates/casemanagement/new.mako:35
+msgid "Print statement"
+msgstr "Erklärung drucken"
+
 #: mpulsweb/templates/casemanagement/new.mako:30
 msgid ""
 "The sync acceptence statement for using the AiR case has been obtained "
@@ -3343,11 +3351,6 @@
 "bereits zur Eingangsamnese bzw. Beratung vor dem Case Management "
 "eingeholt."
 
-
-#: mpulsweb/templates/casemanagement/new.mako:35
-msgid "Print statement"
-msgstr "Erklärung drucken"
-
 #: mpulsweb/templates/casemanagement/new.mako:36
 msgid "Create new case document"
 msgstr "Fallakte anlegen"
@@ -3633,6 +3636,7 @@
 #: mpulsweb/templates/dialogs/notification.mako:6
 #: mpulsweb/templates/dialogs/success.mako:8
 #: mpulsweb/templates/phase/dialogs/success_fullautomatic_set_phase.mako:20
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:28
 #: mpulsweb/templates/privacy/dialogs/missing_statement_body.mako:26
 #: mpulsweb/templates/privacy/dialogs/missing_syncpermission.mako:30
 msgid "OK"
@@ -4351,6 +4355,8 @@
 #: mpulsweb/templates/meta/statement1.mako:37
 #: mpulsweb/templates/meta/statement2.mako:6
 #: mpulsweb/templates/meta/statement2.mako:52
+#: mpulsweb/templates/meta/statement_empty.mako:5
+#: mpulsweb/templates/meta/statement_empty.mako:37
 msgid "Meta server"
 msgstr "AiR-Server"
 
@@ -4480,11 +4486,42 @@
 msgid "No statements available"
 msgstr "Keine Erklärungen verfügbar"
 
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:7
 #: mpulsweb/templates/privacy/dialogs/missing_statement.mako:7
 #: mpulsweb/templates/privacy/dialogs/missing_syncpermission.mako:7
 msgid "cm_np_show"
 msgstr "Fallakte anzeigen"
 
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:10
+msgid "Missing data for the case link"
+msgstr "Fehlende Verknüpfung der Akte"
+
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:11
+msgid ""
+"The case link of the youth to sync data to the meta server. You are "
+"resonsible for this."
+msgstr ""
+"Derzeitig ist der junge Mann noch nicht mit einer Akte auf dem AiR Server"
+" verknüpft. Eine Synchronisation der Daten ist daher noch nicht möglich."
+
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:15
+msgid "<strong>Link now</strong>, try to link the case."
+msgstr "<strong>Nun verknüpfen</strong>, um zu versuchen den Fall zu verknüpfen."
+
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:18
+msgid "<strong>Link later</strong>, do not link now but should be done later."
+msgstr ""
+"<strong>Später verknüpfen</strong>, jetzt nicht verknüpfen, dies aber "
+"später nachholen."
+
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:23
+msgid "Link now"
+msgstr "Nun verknüpfen"
+
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:24
+msgid "Link later"
+msgstr "Später verknüpfen"
+
 #: mpulsweb/templates/privacy/dialogs/missing_statement_body.mako:3
 msgid "Missing data for the statement"
 msgstr "Fehlende Angabe zur Einwilligungserklärung"

Modified: base/trunk/mpulsweb/i18n/mpulsweb.pot
===================================================================
--- base/trunk/mpulsweb/i18n/mpulsweb.pot	2012-08-02 09:41:03 UTC (rev 6012)
+++ base/trunk/mpulsweb/i18n/mpulsweb.pot	2012-08-02 12:17:10 UTC (rev 6013)
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: mpulsweb 2.1.0\n"
 "Report-Msgid-Bugs-To: EMAIL at ADDRESS\n"
-"POT-Creation-Date: 2012-08-01 22:09+0200\n"
+"POT-Creation-Date: 2012-08-02 14:05+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -222,14 +222,14 @@
 "and irrevocably lose all the data?"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:69
+#: mpulsweb/controllers/case.py:70
 msgid ""
 "The meta server did not accept the request because of missing or incorrect "
 "username or password. Please check whether the meta-server is configured "
 "correctly."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:105 mpulsweb/controllers/case.py:174
+#: mpulsweb/controllers/case.py:106 mpulsweb/controllers/case.py:175
 #: mpulsweb/templates/casebundle/dialogs/failure_delete_admin.mako:6
 #: mpulsweb/templates/casebundle/dialogs/success_delete_admin.mako:6
 #: mpulsweb/templates/casebundle/dialogs/success_markdelete.mako:6
@@ -239,11 +239,11 @@
 msgid "Case document deleted!"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:106
+#: mpulsweb/controllers/case.py:107
 msgid "The case document is given to the administrator for deletion."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:114 mpulsweb/controllers/case.py:134
+#: mpulsweb/controllers/case.py:115 mpulsweb/controllers/case.py:135
 #: mpulsweb/controllers/case_bundle.py:291 mpulsweb/controllers/case_bundle.py:311
 #: mpulsweb/templates/casemanagement/dialogs/confirm.mako:6
 #: mpulsweb/templates/casemanagement/dialogs/confirm_delete.mako:6
@@ -252,14 +252,14 @@
 msgstr[0] ""
 msgstr[1] ""
 
-#: mpulsweb/controllers/case.py:115
+#: mpulsweb/controllers/case.py:116
 #, python-format
 msgid ""
 "Do you really want to mark this case for deletion?%s The case will not be "
 "editable afterwards, and submited to the administration for deletion.<br>"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:135
+#: mpulsweb/controllers/case.py:136
 #, python-format
 msgid ""
 "Warning! On deleting the case all data will be erased irrecoverable!<br>Only "
@@ -267,46 +267,46 @@
 "anymore.<br><br>Do you want to delete the case from the server?%s<br>"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:153 mpulsweb/controllers/case.py:162
+#: mpulsweb/controllers/case.py:154 mpulsweb/controllers/case.py:163
 msgid "Case document not deleted!"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:154
+#: mpulsweb/controllers/case.py:155
 msgid ""
 "The case can not be deleted because of an unexpected problem with the meta "
 "server."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:163
+#: mpulsweb/controllers/case.py:164
 msgid "The case can not be deleted because of an unexpected problem."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:175
+#: mpulsweb/controllers/case.py:176
 msgid "Click on OK to continue."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:203 mpulsweb/controllers/case.py:376
+#: mpulsweb/controllers/case.py:204 mpulsweb/controllers/case.py:377
 #: mpulsweb/controllers/privacy.py:121
 msgid "Anonymising not possible."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:220 mpulsweb/model/case.py:1497
+#: mpulsweb/controllers/case.py:221 mpulsweb/model/case.py:1497
 #: mpulsweb/model/phase.py:312 mpulsweb/templates/casemanagement/caselist.mako:161
 #: mpulsweb/templates/phase/phase.mako:52
 msgid "Running"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:222 mpulsweb/model/case.py:1499
+#: mpulsweb/controllers/case.py:223 mpulsweb/model/case.py:1499
 #: mpulsweb/model/phase.py:314 mpulsweb/templates/casemanagement/caselist.mako:164
 #: mpulsweb/templates/phase/phase.mako:54 mpulsweb/templates/phase/phase.mako:56
 msgid "Finished"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:224 mpulsweb/controllers/case.py:384
+#: mpulsweb/controllers/case.py:225 mpulsweb/controllers/case.py:385
 msgid "Do make anonymous?"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:225
+#: mpulsweb/controllers/case.py:226
 #, python-format
 msgid ""
 "<p>Do you really want to mark the case for anonymization?%s<br>The case can "
@@ -315,12 +315,12 @@
 "</b>%s<b>!</b><br>"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:247 mpulsweb/controllers/case.py:267
-#: mpulsweb/controllers/case.py:285 mpulsweb/controllers/case.py:304
+#: mpulsweb/controllers/case.py:248 mpulsweb/controllers/case.py:268
+#: mpulsweb/controllers/case.py:286 mpulsweb/controllers/case.py:305
 msgid "Case document not marked for anonymization!"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:249
+#: mpulsweb/controllers/case.py:250
 msgid ""
 "The case has not been marked for anonymization because the data could not be "
 "uploaded to the meta server because the meta case has been deleted or "
@@ -328,7 +328,7 @@
 " attempt to anonymize the case should succeed."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:269
+#: mpulsweb/controllers/case.py:270
 msgid ""
 "The case has not been marked for anonymization because the data could not be "
 "uploaded to the meta server because the project part does not exist anymore. "
@@ -336,7 +336,7 @@
 "to anonymize the case should succeed."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:287
+#: mpulsweb/controllers/case.py:288
 msgid ""
 "The case has not been marked for anonymization because the data could not be "
 "uploaded to the meta server because the meta-case has been marked for "
@@ -344,36 +344,36 @@
 "restored on the meta-server."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:306
+#: mpulsweb/controllers/case.py:307
 msgid ""
 "The case has not been marked for anonymization because of an unexpected "
 "problem with the meta server."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:318
+#: mpulsweb/controllers/case.py:319
 msgid "Case document not marked for anonymisation!"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:319
+#: mpulsweb/controllers/case.py:320
 msgid "The case can not be marked for anonymisation because of an unexpected problem."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:337
+#: mpulsweb/controllers/case.py:338
 msgid "Case marked for anonymisation."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:338
+#: mpulsweb/controllers/case.py:339
 msgid ""
 "The case document has been marked for anonymisation and has been given to the"
 " administration for final anonymisation. Please click on OK, to get back to "
 "the overview."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:354
+#: mpulsweb/controllers/case.py:355
 msgid "Anonymisation not possible."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:355
+#: mpulsweb/controllers/case.py:356
 #, python-format
 msgid ""
 "The case could not be anonymised for the following "
@@ -381,7 +381,7 @@
 "overview.</p>"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:385
+#: mpulsweb/controllers/case.py:386
 #, python-format
 msgid ""
 "Do you really want to anonymise the case and irrecovably lose the associated "
@@ -389,13 +389,13 @@
 " case will still be considered for the analysis.<br>"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:403 mpulsweb/controllers/case.py:421
-#: mpulsweb/controllers/case.py:438 mpulsweb/controllers/case.py:456
-#: mpulsweb/controllers/case.py:467
+#: mpulsweb/controllers/case.py:404 mpulsweb/controllers/case.py:422
+#: mpulsweb/controllers/case.py:439 mpulsweb/controllers/case.py:457
+#: mpulsweb/controllers/case.py:468
 msgid "Case document not anonymized!"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:404
+#: mpulsweb/controllers/case.py:405
 msgid ""
 "The case has not been anonymized because the data could not be uploaded to "
 "the meta server one last time because the meta case has been deleted or "
@@ -403,7 +403,7 @@
 " attempt to anonymize the case should succeed."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:422
+#: mpulsweb/controllers/case.py:423
 msgid ""
 "The case has not been anonymized because the data could not be uploaded to "
 "the meta server one last time because the project part does not exist "
@@ -411,7 +411,7 @@
 " attempt to anonymize the case should succeed."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:439
+#: mpulsweb/controllers/case.py:440
 msgid ""
 "The case has not been anonymized because the data could not be uploaded to "
 "the meta server one last time because the meta-case has been marked for "
@@ -419,34 +419,34 @@
 "restored on the meta-server."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:457
+#: mpulsweb/controllers/case.py:458
 msgid ""
 "The case can not be anonymized because of an unexpected problem with the meta"
 " server."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:468
+#: mpulsweb/controllers/case.py:469
 msgid "The case can not be anonymized because of an unexpected problem."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:479
+#: mpulsweb/controllers/case.py:480
 msgid "Case document anonymised!"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:480
+#: mpulsweb/controllers/case.py:481
 msgid ""
 "The personal data of the case document has been deleted and the case document"
 " is removed from the overview. Please click on OK, to get back to the "
 "overview."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:500 mpulsweb/controllers/case_bundle.py:536
+#: mpulsweb/controllers/case.py:501 mpulsweb/controllers/case_bundle.py:536
 msgid "Case restored!"
 msgid_plural "Cases restored!"
 msgstr[0] ""
 msgstr[1] ""
 
-#: mpulsweb/controllers/case.py:501 mpulsweb/controllers/case_bundle.py:284
+#: mpulsweb/controllers/case.py:502 mpulsweb/controllers/case_bundle.py:284
 #: mpulsweb/controllers/case_bundle.py:344 mpulsweb/controllers/case_bundle.py:357
 #: mpulsweb/controllers/case_bundle.py:416 mpulsweb/controllers/case_bundle.py:434
 #: mpulsweb/controllers/case_bundle.py:445 mpulsweb/controllers/case_bundle.py:495
@@ -459,81 +459,81 @@
 msgid "Please click OK to continue."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:506 mpulsweb/controllers/case_bundle.py:546
+#: mpulsweb/controllers/case.py:507 mpulsweb/controllers/case_bundle.py:546
 #: mpulsweb/templates/casemanagement/dialogs/confirm_restore.mako:6
 msgid "Restore case?"
 msgid_plural "Restore cases?"
 msgstr[0] ""
 msgstr[1] ""
 
-#: mpulsweb/controllers/case.py:507
+#: mpulsweb/controllers/case.py:508
 #, python-format
 msgid ""
 "Do you really want to restore the case?%s The case will be editable "
 "afterwards again for the users.<br>"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:692
+#: mpulsweb/controllers/case.py:693
 msgid "Case copied!"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:693
+#: mpulsweb/controllers/case.py:694
 msgid ""
 "The case was succussfully copied and is now available in the case overview. "
 "Click on \"OK\" to open the case overview."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:699
+#: mpulsweb/controllers/case.py:700
 msgid "Copy case?"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:700
+#: mpulsweb/controllers/case.py:701
 msgid "Do you really want to copy this case? All data will be copied in the new case."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:721
+#: mpulsweb/controllers/case.py:722
 msgid "Case(s) imported!"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:722
+#: mpulsweb/controllers/case.py:723
 msgid "The file was imported successfully. Click on 'OK' to open the case overview."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:728
+#: mpulsweb/controllers/case.py:729
 msgid "Case(s) not imported!"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:732
+#: mpulsweb/controllers/case.py:733
 msgid ""
 "An error occurred during the import. Click 'OK' to return to the import "
 "dialog."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:773
+#: mpulsweb/controllers/case.py:774
 msgid "Editor successfully set."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:779
+#: mpulsweb/controllers/case.py:780
 msgid "Error! Editor cannot be set."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:791
+#: mpulsweb/controllers/case.py:792
 msgid "Standin successfully set."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:796
+#: mpulsweb/controllers/case.py:797
 msgid "Error! Standin is not set."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:820 mpulsweb/controllers/case.py:841
+#: mpulsweb/controllers/case.py:822 mpulsweb/controllers/case.py:843
 msgid "Case storage extended"
 msgstr ""
 
-#: mpulsweb/controllers/case.py:821
+#: mpulsweb/controllers/case.py:823
 msgid "Please enter the reason for the case storage extension."
 msgstr ""
 
-#: mpulsweb/controllers/case.py:842
+#: mpulsweb/controllers/case.py:844
 msgid "The max case storage has been extended. Please click on OK to continue"
 msgstr ""
 
@@ -1006,229 +1006,229 @@
 msgid "female"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:94
+#: mpulsweb/controllers/meta.py:100
 msgid "Set acceptance statement?"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:95
+#: mpulsweb/controllers/meta.py:101
 msgid ""
 "Do you really want to mark the acceptance statement as set. This requires a "
 "printable and signed acceptance statement from the client."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:109
+#: mpulsweb/controllers/meta.py:115
 msgid "Allow synchronisation with meta?"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:110
+#: mpulsweb/controllers/meta.py:116
 msgid ""
 "Sychronisation of data with the meta case requires the agreement of the "
 "subject."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:120
+#: mpulsweb/controllers/meta.py:126
 msgid "Synchronisation allowed."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:121
+#: mpulsweb/controllers/meta.py:127
 msgid "The sychronisation of data with the meta case has succsessfully been allowed."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:127
+#: mpulsweb/controllers/meta.py:133
 msgid "Error! Synchronisation not allowed."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:136
+#: mpulsweb/controllers/meta.py:142
 msgid "Disallow synchronisation with meta?"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:137
+#: mpulsweb/controllers/meta.py:143
 msgid ""
 "Do your really want to disallow the synchronisation with the meta server? "
 "After that no sync is possible  anymore!"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:148
+#: mpulsweb/controllers/meta.py:154
 msgid "Synchronisation disallowed."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:149
+#: mpulsweb/controllers/meta.py:155
 msgid ""
 "The sychronisation of data with the meta case has succsessfully been "
 "disallowed."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:157
+#: mpulsweb/controllers/meta.py:163
 msgid "Error! synchronisation not disallowed."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:160
+#: mpulsweb/controllers/meta.py:166
 msgid "Withdraw agremment for synchronisation with meta?"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:161
+#: mpulsweb/controllers/meta.py:167
 msgid ""
 "Please note that disallowing the synchronisation with the meta case leads to "
 "unlinking this case with its meta case and deleting already transfered data "
 "in the meta case. After that no sync is possible anymore!"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:174
+#: mpulsweb/controllers/meta.py:180
 msgid "Agreement withdrawn."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:175
+#: mpulsweb/controllers/meta.py:181
 msgid ""
 "The agremment for sychronisation of data with the meta case has succsessfully"
 " been withdrawn. Already transfered data has been deleted."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:184 mpulsweb/controllers/meta.py:213
-#: mpulsweb/controllers/meta.py:243
+#: mpulsweb/controllers/meta.py:190 mpulsweb/controllers/meta.py:219
+#: mpulsweb/controllers/meta.py:249
 msgid "Error! Agreement for synchronisation not withdrawn."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:188 mpulsweb/controllers/meta.py:217
+#: mpulsweb/controllers/meta.py:194 mpulsweb/controllers/meta.py:223
 msgid "Withdraw agremment globally for synchronisation with meta?"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:190
+#: mpulsweb/controllers/meta.py:196
 msgid ""
 "Please note that disallowing the synchronisation globally with the meta case "
 "leads to the anonymization of the whole meta-case on the meta server. The "
 "data of the meta case will not be available to anybody anymore."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:203 mpulsweb/controllers/meta.py:232
+#: mpulsweb/controllers/meta.py:209 mpulsweb/controllers/meta.py:238
 msgid "Agreement globally withdrawn."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:204
+#: mpulsweb/controllers/meta.py:210
 msgid ""
 "The agremment for sychronisation of data with the meta case has succsessfully"
 " been withdrawn. Meta case has been marked for anonymization."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:219
+#: mpulsweb/controllers/meta.py:225
 msgid ""
 "Please note that disallowing the synchronisation globally with the meta case "
 "leads to the deletion of the whole meta-case on the meta server. The data of "
 "the meta case will not be available to anybody anymore."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:233
+#: mpulsweb/controllers/meta.py:239
 msgid ""
 "The agremment for sychronisation of data with the meta case has succsessfully"
 " been withdrawn. Already transfered data has been deleted. Meta case has been"
 " marked for deletion."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:299
+#: mpulsweb/controllers/meta.py:305
 msgid "Meta user disabled!"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:300
+#: mpulsweb/controllers/meta.py:306
 msgid ""
 "The meta user has been disabled to prevent misuse of the meta-search. "
 "Connections to the meta-serve are not possible from now on. Please contact "
 "the administration of the meta-server to reactivate your account."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:317
+#: mpulsweb/controllers/meta.py:323
 msgid "Error while trying to search case"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:324
+#: mpulsweb/controllers/meta.py:330
 msgid "Create new meta?"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:325
+#: mpulsweb/controllers/meta.py:331
 #, python-format
 msgid ""
 "The new meta case will be created with the following data: %s Do you really "
 "want to create a new meta case for this case?"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:351
+#: mpulsweb/controllers/meta.py:357
 msgid "Meta case created."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:352
+#: mpulsweb/controllers/meta.py:358
 msgid "The meta case was sucessfully created and linked with this case."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:358
+#: mpulsweb/controllers/meta.py:364
 msgid "Error! Meta case not created."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:363
+#: mpulsweb/controllers/meta.py:369
 msgid "Link with meta?"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:364
+#: mpulsweb/controllers/meta.py:370
 msgid "Do you really want to link this the case with the selected meta case?"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:378
+#: mpulsweb/controllers/meta.py:384
 msgid "Case linked."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:379
+#: mpulsweb/controllers/meta.py:385
 msgid "The case was sucessfully link with the meta case."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:385
+#: mpulsweb/controllers/meta.py:391
 msgid "Error! Case not linked."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:394
+#: mpulsweb/controllers/meta.py:400
 msgid "Unlink from meta?"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:395
+#: mpulsweb/controllers/meta.py:401
 msgid ""
 "Do you really want to unlink this the case from the meta case and delete "
 "already stored data from this agency in the meta case?"
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:404
+#: mpulsweb/controllers/meta.py:410
 msgid "Case unlinked."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:405
+#: mpulsweb/controllers/meta.py:411
 msgid ""
 "The case was sucessfully unlinked from the meta case. Already transfered data"
 " has been deleted in meta case."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:413
+#: mpulsweb/controllers/meta.py:419
 msgid "Error! Case not unlinked."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:419
+#: mpulsweb/controllers/meta.py:425
 msgid "Data uploaded."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:420
+#: mpulsweb/controllers/meta.py:426
 msgid "The data was sucessfully uploaded to the meta case."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:426
+#: mpulsweb/controllers/meta.py:432
 msgid "Error! Data not uploaded."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:448 mpulsweb/controllers/meta.py:462
+#: mpulsweb/controllers/meta.py:454 mpulsweb/controllers/meta.py:468
 msgid "Error! Data not downloaded."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:472
+#: mpulsweb/controllers/meta.py:478
 msgid ""
 "The meta server did not accept the request because of either disabled user or"
 " missing or incorrect username or password. Please check whether the meta-"
 "server is configured correctly."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:484
+#: mpulsweb/controllers/meta.py:490
 msgid ""
 "The meta case doesn't seem to exist (anymore) on the meta server. The most "
 "likely reason for this is that the permission to store data on the meta "
@@ -1236,21 +1236,21 @@
 " and the revocation of the permission has been recorded in WASKU as well."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:499
+#: mpulsweb/controllers/meta.py:505
 msgid ""
 "The meta-case has been anonymized. Please check whether the case has to be "
 "anonymized as well. The information about the meta-case has been deleted and "
 "the permission to sync has been revoked."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:509
+#: mpulsweb/controllers/meta.py:515
 msgid ""
 "The meta-case has been marked for deletion or anonymization. It is possible "
 "that the case may be available for editing later, so you might be able to "
 "complete your task later."
 msgstr ""
 
-#: mpulsweb/controllers/meta.py:520
+#: mpulsweb/controllers/meta.py:526
 msgid ""
 "The project part of the meta-case seems to be missing. Since the information "
 "about the meta case seems to be outdated, the link to the project part has "
@@ -1387,13 +1387,13 @@
 msgid "Your standin is saved. Please click on ok to continue."
 msgstr ""
 
-#: mpulsweb/lib/dialogs.py:136 mpulsweb/lib/dialogs.py:148
-#: mpulsweb/lib/dialogs.py:159
+#: mpulsweb/lib/dialogs.py:172 mpulsweb/lib/dialogs.py:184
+#: mpulsweb/lib/dialogs.py:195
 msgid "Default Header"
 msgstr ""
 
-#: mpulsweb/lib/dialogs.py:140 mpulsweb/lib/dialogs.py:152
-#: mpulsweb/lib/dialogs.py:163
+#: mpulsweb/lib/dialogs.py:176 mpulsweb/lib/dialogs.py:188
+#: mpulsweb/lib/dialogs.py:199
 msgid "Default Text"
 msgstr ""
 
@@ -1688,6 +1688,7 @@
 #: mpulsweb/templates/casemanagement/dialogs/success_restore.mako:5
 #: mpulsweb/templates/help/help.mako:6 mpulsweb/templates/phase/phase.mako:5
 #: mpulsweb/templates/phase/dialogs/success_fullautomatic_set_phase.mako:6
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:5
 #: mpulsweb/templates/privacy/dialogs/missing_statement.mako:5
 #: mpulsweb/templates/privacy/dialogs/missing_syncpermission.mako:5
 msgid "Case Management"
@@ -2839,6 +2840,7 @@
 #: mpulsweb/templates/casemanagement/dialogs/success_anonymize.mako:11
 #: mpulsweb/templates/casemanagement/dialogs/success_copy.mako:11
 #: mpulsweb/templates/casemanagement/dialogs/success_markanonymize.mako:11
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:6
 #: mpulsweb/templates/privacy/dialogs/missing_statement.mako:6
 #: mpulsweb/templates/privacy/dialogs/missing_syncpermission.mako:6
 msgid "Case document overview"
@@ -2957,16 +2959,17 @@
 "AiR case."
 msgstr ""
 
+#: mpulsweb/templates/casemanagement/new.mako:27
+#: mpulsweb/templates/casemanagement/new.mako:35
+msgid "Print statement"
+msgstr ""
+
 #: mpulsweb/templates/casemanagement/new.mako:30
 msgid ""
 "The sync acceptence statement for using the AiR case has been obtained while "
 "the initial meeting."
 msgstr ""
 
-#: mpulsweb/templates/casemanagement/new.mako:35
-msgid "Print statement"
-msgstr ""
-
 #: mpulsweb/templates/casemanagement/new.mako:36
 msgid "Create new case document"
 msgstr ""
@@ -3237,6 +3240,7 @@
 #: mpulsweb/templates/dialogs/notification.mako:6
 #: mpulsweb/templates/dialogs/success.mako:8
 #: mpulsweb/templates/phase/dialogs/success_fullautomatic_set_phase.mako:20
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:28
 #: mpulsweb/templates/privacy/dialogs/missing_statement_body.mako:26
 #: mpulsweb/templates/privacy/dialogs/missing_syncpermission.mako:30
 msgid "OK"
@@ -3889,6 +3893,8 @@
 #: mpulsweb/templates/meta/statement1.mako:37
 #: mpulsweb/templates/meta/statement2.mako:6
 #: mpulsweb/templates/meta/statement2.mako:52
+#: mpulsweb/templates/meta/statement_empty.mako:5
+#: mpulsweb/templates/meta/statement_empty.mako:37
 msgid "Meta server"
 msgstr ""
 
@@ -3997,11 +4003,38 @@
 msgid "No statements available"
 msgstr ""
 
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:7
 #: mpulsweb/templates/privacy/dialogs/missing_statement.mako:7
 #: mpulsweb/templates/privacy/dialogs/missing_syncpermission.mako:7
 msgid "cm_np_show"
 msgstr ""
 
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:10
+msgid "Missing data for the case link"
+msgstr ""
+
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:11
+msgid ""
+"The case link of the youth to sync data to the meta server. You are "
+"resonsible for this."
+msgstr ""
+
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:15
+msgid "<strong>Link now</strong>, try to link the case."
+msgstr ""
+
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:18
+msgid "<strong>Link later</strong>, do not link now but should be done later."
+msgstr ""
+
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:23
+msgid "Link now"
+msgstr ""
+
+#: mpulsweb/templates/privacy/dialogs/missing_caselink.mako:24
+msgid "Link later"
+msgstr ""
+
 #: mpulsweb/templates/privacy/dialogs/missing_statement_body.mako:3
 msgid "Missing data for the statement"
 msgstr ""

Modified: base/trunk/mpulsweb/lib/dialogs.py
===================================================================
--- base/trunk/mpulsweb/lib/dialogs.py	2012-08-02 09:41:03 UTC (rev 6012)
+++ base/trunk/mpulsweb/lib/dialogs.py	2012-08-02 12:17:10 UTC (rev 6013)
@@ -113,7 +113,43 @@
             raise
     return decorator(validate)
 
+# CASE LINKED DIALOG
+# -------------------
+def checkCaseLinked(context='select'):
+    '''Decorator for the methods in the case controller'''
+    def validate(func, self, *args, **kwargs):
+        if not g.mpuls_config.is_enabled('case-module', 'meta-server'):
+            log.debug('Meta-Server disabled... No checks on case linked done')
+            return func(self, *args, **kwargs)
+           #load case and check if it is linked is set
+        try:   
+            try:
+                case_id = int(args[0])
+                confirmed = int(args[1])
+            except:
+                raise HTTPNotFound()
+            c.targeturl = url(controller="case", action=context,
+                              id=case_id, confirmed=1)
 
+            case = self._loadCase(case_id)
+            meta = case.getMeta()
+            statement = case.getPrivacyStatement()
+            # Only check if there is a "Syncpermission" if the Privacy
+            # statement is set and the meta-serber is enabled. None if it is
+            # not either signed or declined
+            if (statement.isSigned() 
+                and meta.is_sync_allowed() is not None
+                and meta.is_linked()
+                or (confirmed == 1)):
+                return func(self, *args, **kwargs)
+            else:
+                c.ds_id = case_id
+                return render('/privacy/dialogs/missing_caselink.mako')
+        except:
+            log.exception('Fehler in der Validierung')
+            raise
+    return decorator(validate)
+
 # FUTURE CONFIRM DIALOG
 # ---------------------
 # Not used yet. Use this confirm decaorator in future to set up general



More information about the Mpuls-commits mailing list