-
-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP [Bexley][WW] Allow user to request new containers
- Loading branch information
1 parent
2460d7d
commit 6619f11
Showing
3 changed files
with
169 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package FixMyStreet::App::Form::Waste::Request::Bexley; | ||
|
||
use utf8; | ||
use HTML::FormHandler::Moose; | ||
extends 'FixMyStreet::App::Form::Waste::Request'; | ||
|
||
has_page replacement => ( | ||
fields => ['request_reason', 'continue'], | ||
title => 'Reason for request', | ||
next => 'about_you', | ||
); | ||
|
||
has_field request_reason => ( | ||
type => 'Select', | ||
widget => 'RadioGroup', | ||
required => 1, | ||
label => 'Why do you need new bins?', | ||
); | ||
|
||
# TODO Different for MDR-SACK properties | ||
sub options_request_reason { | ||
my $form = shift; | ||
my @options = ( | ||
'My existing bin is too small or big', | ||
'My existing bin is damaged', | ||
'My existing bin has gone missing', | ||
'I have moved into a new development', | ||
); | ||
return map { { label => $_, value => $_ } } @options; | ||
} | ||
|
||
# TODO | ||
# Number of residents? | ||
# Check for existing requests for a given container. | ||
# Message to user if failed delivery, direct them to enquiry form. | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters