File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ export const DownloadFormat = {
111111 */
112112export const DownloadType = {
113113 Report : 'Vaccination records' ,
114+ Moves : 'School moves' ,
114115 Session : 'Offline session'
115116}
116117
Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ export class Download {
111111 */
112112 get name ( ) {
113113 switch ( true ) {
114+ case this . type === DownloadType . Moves :
115+ return `School moves (${ this . formatted . createdAt } )`
114116 case this . type === DownloadType . Report :
115117 return `${ this . programme . name } vaccination records`
116118 case this . type === DownloadType . Session :
Original file line number Diff line number Diff line change 1- {% extends " _layouts/default .njk" %}
1+ {% extends " _layouts/form .njk" %}
22
3+ {% set gridColumns = " full" %}
4+ {% set hideConfirmButton = true %}
35{% set title = __ (" move.list.title" ) %}
46
5- {% block content %}
7+ {% block form %}
68 {{ super () }}
79
810 {{ appHeading ({
1618 {{ button ({
1719 classes : " nhsuk-button--secondary" ,
1820 text : __ (" move.download.label" ),
19- href : " #"
21+ value : DownloadType .Moves ,
22+ decorate : " download.type" ,
23+ attributes : {
24+ formaction : " /downloads/new" ,
25+ formmethod : " post"
26+ }
2027 }) }}
2128 </div >
2229
You can’t perform that action at this time.
0 commit comments