-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcya.html
More file actions
159 lines (155 loc) · 3.58 KB
/
cya.html
File metadata and controls
159 lines (155 loc) · 3.58 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{% extends location+"common/cya.html" %}
{% block questions %}
{{ super() }}
{% set decisionDate = (data['decision-date-day'] or '1') +' '+ (data['decision-date-month'] | formatMonth or 'August') +' '+ (data['decision-date-year'] or '2022') %}
{% set decisionDate = (data['decision-due-date-day'] or '1') +' '+ (data['decision-due-date-month'] | formatMonth or 'August') +' '+ (data['decision-due-date-year'] or '2022') %}
{{ govukSummaryList({
classes: 'govuk-!-margin-bottom-9',
rows: [
{
key: {
text: 'Local planning authority'
},
value: {
text: data['lpa'] or 'Bradford'
},
actions: {
items: [
{
href: '../lpa?cya=true',
text: 'Change'
}
]
}
},
{
key: {
text: 'Appealing'
},
value: {
text: 'A planning decision'
},
actions: {
items: [
{
href: '../appeal-type',
text: 'Change'
}
]
}
},
{
key: {
text: 'Application type'
},
value: {
text: data['planning-type'] or 'Full planning'
},
actions: {
items: [
{
href: 'type',
text: 'Change'
}
]
}
},
{
key: {
text: 'Extend an existing home' if data['planning-type'] == 'Prior approval' else 'Homeholder planning permission'
},
value: {
html: data['existing-home-check'] or 'No'
},
actions: {
items: [
{
href: 'existing-home-check',
text: 'Change'
}
]
}
} if data['planning-type'] == 'Prior approval' or data['planning-type'] == 'Removal or variation of conditions',
{
key: {
text: 'Major development'
},
value: {
html: 'No'
},
actions: {
items: [
{
href: 'major-development-check',
text: 'Change'
}
]
}
} if data['existing-home-check'] != 'Yes' and data['planning-type'] != 'Householder planning',
{
key: {
text: 'Decision'
},
value: {
text: data['decision'] or 'Refused'
},
actions: {
items: [
{
href: 'decision',
text: 'Change'
}
]
}
},
{
key: {
text: 'Decision date'
},
value: {
text: decisionDate
},
actions: {
items: [
{
href: 'decision-date?cya=true',
text: 'Change'
}
]
}
} if data['decision-check'] != 'I have not received a decision',
{
key: {
text: 'Decision due date'
},
value: {
text: decisionDueDate
},
actions: {
items: [
{
href: 'decision-due-date?cya=true',
text: 'Change'
}
]
}
} if data['decision-check'] == 'I have not received a decision',
{
key: {
text: 'Enforcement notice'
},
value: {
html: 'No'
},
actions: {
items: [
{
href: 'enforcement-check?cya=true',
text: 'Change'
}
]
}
}
]
}) }}
{% endblock %}