generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
48 lines (40 loc) · 1.56 KB
/
urls.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
from app.categories.community_care import bp
from app.categories.results.views import CannotFindYourProblemPage, NextStepsPage
from app.categories.views import CategoryLandingPage
from app.categories.constants import COMMUNITY_CARE
FALA_REDIRECT = {
"endpoint": "find-a-legal-adviser.search",
"category": "com",
}
class CommunityCareLandingPage(CategoryLandingPage):
question_title = COMMUNITY_CARE.title
category = COMMUNITY_CARE
routing_map = {
"main": [
(COMMUNITY_CARE.sub.care_from_council, FALA_REDIRECT),
(COMMUNITY_CARE.sub.carer, FALA_REDIRECT),
(COMMUNITY_CARE.sub.receive_care_in_own_home, FALA_REDIRECT),
(COMMUNITY_CARE.sub.care_or_funding_stops, FALA_REDIRECT),
(COMMUNITY_CARE.sub.placement_care_homes_care_housing, FALA_REDIRECT),
(COMMUNITY_CARE.sub.problems_with_quality_of_care, FALA_REDIRECT),
(COMMUNITY_CARE.sub.care_leaver, FALA_REDIRECT),
],
"more": [],
"other": "categories.community_care.cannot_find_your_problem",
}
CommunityCareLandingPage.register_routes(blueprint=bp, path="/disability-social-care")
bp.add_url_rule(
"/disability-social-care/cannot-find-your-problem",
view_func=CannotFindYourProblemPage.as_view(
"cannot_find_your_problem",
category=COMMUNITY_CARE,
next_steps_page="categories.community_care.next_steps",
),
)
bp.add_url_rule(
"/disability-social-care/next-steps",
view_func=NextStepsPage.as_view(
"next_steps",
category=COMMUNITY_CARE,
),
)