@@ -249,3 +249,73 @@ class EAPActivation(models.Model):
249249    ifrc_focal_name  =  models .CharField (max_length = 250 , verbose_name = _ ('IFRC Focal Point Name' ), null = True , blank = True )
250250    ifrc_focal_title  =  models .CharField (max_length = 250 , verbose_name = _ ('IFRC Focal Point Title' ), null = True , blank = True )
251251    ifrc_focal_email  =  models .CharField (max_length = 250 , verbose_name = _ ('IFRC Focal Point Email' ), null = True , blank = True )
252+ 
253+ 
254+ class  EAPOperationalPlan (models .Model ):
255+     early_action  =  models .OneToOneField (
256+         EarlyAction ,
257+         on_delete = models .SET_NULL ,
258+         null = True ,
259+         blank = True 
260+     )
261+     budget  =  models .IntegerField (verbose_name = _ ('Budget per sector (CHF)' ), null = True , blank = True )
262+     indicator_value  =  models .IntegerField (verbose_name = _ ('Indicator' ), null = True , blank = True )
263+     no_of_people_reached  =  models .IntegerField (verbose_name = _ ('People Reached' ), null = True , blank = True )
264+     readiness_activities_achievements  =  models .TextField (verbose_name = _ ('Readiness Activities Achievements' ), null = True , blank = True )
265+     prepo_activities_achievements  =  models .TextField (verbose_name = _ ('Pre-positioning Activities Achievements' ), null = True , blank = True )
266+ 
267+     class  Meta :
268+         verbose_name  =  _ ('EAP Operational Plan' )
269+         verbose_name_plural  =  _ ('EAP Operational Plans' )
270+ 
271+     def  __str__ (self ):
272+         return  f'{ self .id }  ' 
273+ 
274+ 
275+ class  ActionAchievements (models .Model ):
276+     operational_plan  =  models .ForeignKey (
277+         EAPOperationalPlan , on_delete = models .SET_NULL ,
278+         related_name = "action_achievement" , verbose_name = _ ('Action Achievement' ),
279+         null = True , blank = True 
280+     )
281+     action  =  models .OneToOneField (Action , on_delete = models .SET_NULL , null = True , blank = True )
282+     early_act_achievement  =  models .TextField (verbose_name = _ ('Early Actions Achievements' ), null = True , blank = True )
283+ 
284+     class  Meta :
285+         verbose_name  =  _ ('Action Achievement' )
286+         verbose_name_plural  =  _ ('Action Achievements' )
287+ 
288+     def  __str__ (self ):
289+         return  f'{ self .id }  ' 
290+ 
291+ 
292+ class  EAPActivationReport (models .Model ):
293+     created_at  =  models .DateTimeField (verbose_name = _ ('created at' ), auto_now_add = True )
294+     modified_at  =  models .DateTimeField (verbose_name = _ ('updated at' ), auto_now = True )
295+     eap_activation  =  models .ForeignKey (
296+         EAPActivation ,
297+         on_delete = models .SET_NULL ,
298+         verbose_name = _ ('EAP Activation Report' ),
299+         related_name = 'eap_activation_report' ,
300+         null = True , blank = True 
301+     )
302+     number_of_people_reached  =  models .IntegerField (verbose_name = _ ('Number Of People Reached' ))
303+     description  =  models .TextField (verbose_name = _ ('Description of Event & Overview of Implementation' ))
304+     overall_objectives  =  models .TextField (verbose_name = _ ('Overall Objective of the Intervention' ))
305+     document  =  models .ForeignKey (
306+         EAPDocument ,
307+         on_delete = models .SET_NULL ,
308+         verbose_name = _ ('EAP Activation Report Document' ),
309+         related_name = 'eap_activation_report_document' ,
310+         null = True , blank = True 
311+     )
312+     challenges_and_lesson  =  models .TextField (verbose_name = _ ('Challenges & Lesson Learned per Sector' ))
313+     general_lesson_and_recomendations  =  models .TextField (verbose_name = _ ('General Lessons Learned and Recomendations' ))
314+     ifrc_financial_report  =  models .ForeignKey (
315+         EAPDocument ,
316+         on_delete = models .SET_NULL ,
317+         verbose_name = _ ('IFRC Financial Report' ),
318+         related_name = 'eap_activation_ifrc_report' ,
319+         null = True , blank = True 
320+     )
321+ 
0 commit comments