UKHomeOfficeForms / hof-form-wizard

MIT License
0 stars 2 forks source link

Complete behaviour #11

Closed lennym closed 7 years ago

lennym commented 7 years ago

Adds built-in behaviours to the wizard, which can be declared by passing a string instead of the mixin.

In particular, adds complete behaviour, which marks a session as complete, and prevents the user accessing any part of the app except those specifically marked as accessible.

This should replace the start controller from hof-controllers

joefitter commented 7 years ago

lennym commented 7 years ago

I realised last night that it's probably worth automatically setting the next step for one with complete behaviour to have allowPostComplete because we're going to want that in 100% of cases.

lennym commented 7 years ago

I've updated with some code to auto-allow a complete-ing step's next.

This is now ready for review.