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