generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
82 lines (77 loc) · 2.2 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
from flask_babel import lazy_gettext as _, LazyString
from dataclasses import dataclass
@dataclass
class Category:
display_text: LazyString
code: str
article_category_name: str | None
chs_code: str | None # One of legalaid_categories.code
def __str__(self):
# Returns the translated display text
return str(self.display_text)
FAMILY = Category(
display_text=_("Children, families and relationships"),
code="FAMILY",
article_category_name="Family",
chs_code="family",
)
HOUSING = Category(
display_text=_("Housing, homelessness, losing your home"),
code="HOUSING",
article_category_name="Housing",
chs_code="housing",
)
COMMUNITY_CARE = Category(
display_text=_("Community care"),
code="COMMUNITY_CARE",
article_category_name="Community care",
chs_code="commcare",
)
DOMESTIC_ABUSE = Category(
display_text=_("Domestic abuse"),
code="DOMESTIC_ABUSE",
article_category_name="Domestic Abuse",
chs_code="family",
)
BENEFITS = Category(
display_text=_("Welfare benefits"),
code="BENEFITS",
article_category_name="Welfare benefits",
chs_code="benefits",
)
DISCRIMINATION = Category(
display_text=_("Discrimination"),
code="DISCRIMINATION",
article_category_name="Discrimination",
chs_code="discrimination",
)
MENTAL_CAPACITY = Category(
display_text=_("Mental capacity, mental health"),
code="MENTAL_CAPACITY",
article_category_name="Mental health",
chs_code="mentalhealth",
)
ASYLUM_AND_IMMIGRATION = Category(
display_text=_("Asylum and immigration"),
code="ASYLUM_AND_IMMIGRATION",
article_category_name=None,
chs_code="immigration",
)
SOCIAL_CARE = Category(
display_text=_("Care needs for disability and old age (social care)"),
code="SOCIAL_CARE",
article_category_name=None,
chs_code="commcare",
)
PUBLIC_LAW = Category(
display_text=_("Legal action against police and public organisations"),
code="PUBLIC_LAW",
article_category_name="Public",
chs_code="publiclaw",
)
EDUCATION = Category(
display_text=_("Special educational needs and disability (SEND)"),
code="EDUCATION",
article_category_name="Education",
chs_code="education",
)