This repository has been archived by the owner on Aug 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from AdrienPoupa/curfew-quarantine-march-2021
Add March 2021 curfew and quarantine new forms
- Loading branch information
Showing
19 changed files
with
627 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
app/src/main/java/com/poupa/attestationdeplacement/dto/CurfewAttestation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
package com.poupa.attestationdeplacement.dto; | ||
|
||
import android.content.Context; | ||
|
||
import com.poupa.attestationdeplacement.MainActivity; | ||
import com.poupa.attestationdeplacement.R; | ||
|
||
import java.util.ArrayList; | ||
|
||
/** | ||
* Curfew Attestation Data | ||
*/ | ||
public class CurfewAttestation extends Attestation { | ||
|
||
protected void setupReasons() { | ||
Context context = MainActivity.getContext(); | ||
|
||
this.reasons = new ArrayList<>(); | ||
this.reasons.add(new Reason(context.getString(R.string.reason1_curfew_smalltext), "travail", 73, 579)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason2_curfew_smalltext), "sante", 73, 546)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason3_curfew_smalltext), "famille", 73, 512)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason4_curfew_smalltext), "handicap", 73, 478)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason5_curfew_smalltext), "convocation", 73, 458)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason6_curfew_smalltext), "missions", 73, 412)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason7_curfew_smalltext), "transits", 73, 379)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason8_curfew_smalltext), "animaux", 73, 345)); | ||
} | ||
|
||
@Override | ||
public String getPdfFileName() { | ||
return "curfew-certificate.pdf"; | ||
} | ||
|
||
@Override | ||
public String getReasonPrefix() { | ||
return "curfew"; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
Context context = MainActivity.getContext(); | ||
|
||
return context.getString(R.string.curfew_attestation); | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
app/src/main/java/com/poupa/attestationdeplacement/dto/QuarantineAttestation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package com.poupa.attestationdeplacement.dto; | ||
|
||
import android.content.Context; | ||
|
||
import com.poupa.attestationdeplacement.MainActivity; | ||
import com.poupa.attestationdeplacement.R; | ||
|
||
import java.util.ArrayList; | ||
|
||
/** | ||
* Curfew Attestation Data | ||
*/ | ||
public class QuarantineAttestation extends Attestation { | ||
|
||
protected void setupReasons() { | ||
Context context = MainActivity.getContext(); | ||
|
||
this.reasons = new ArrayList<>(); | ||
this.reasons.add(new Reason(context.getString(R.string.reason1_quarantine_smalltext), "sport", 60, 367)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason2_quarantine_smalltext), "achats", 60, 244)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason3_quarantine_smalltext), "enfants", 60, 161)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason4_quarantine_smalltext), "culte_culturel", 60, 781, 2)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason5_quarantine_smalltext), "demarche", 60, 726, 2)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason6_quarantine_smalltext), "travail", 60, 629, 2)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason7_quarantine_smalltext), "sante", 60, 533, 2)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason8_quarantine_smalltext), "famille", 60, 477, 2)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason9_quarantine_smalltext), "handicap", 60, 422, 2)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason10_quarantine_smalltext), "judiciaire", 60, 380, 2)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason11_quarantine_smalltext), "demenagement", 60, 311, 2)); | ||
this.reasons.add(new Reason(context.getString(R.string.reason12_quarantine_smalltext), "transits", 60, 243, 2)); | ||
} | ||
|
||
@Override | ||
public String getPdfFileName() { | ||
return "quarantine-certificate.pdf"; | ||
} | ||
|
||
@Override | ||
public String getReasonPrefix() { | ||
return "quarantine"; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
Context context = MainActivity.getContext(); | ||
|
||
return context.getString(R.string.quarantine_attestation); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.