forked from accessibility-exchange/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: various validation related issues (resolves accessibility-exchan…
…ge#1776, accessibility-exchange#1775, accessibility-exchange#1774, accessibility-exchange#1773, accessibility-exchange#1772) (accessibility-exchange#1820) * fix: update request validations and add tests * fix: engagement edit language field error message Also added tests and fixed errors with the validation rules. * fix: eng survey details missing inline errors * fix: failing engagement test * fix: engagement selection criteria validation * fix: meeting validation error messages * test: refactor validation tests * fix: update the validation messages * fix: typo for Indigenous group * style: remove duplicate array value * chore: update localization files
- Loading branch information
1 parent
61de743
commit dc7f444
Showing
45 changed files
with
2,461 additions
and
176 deletions.
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,27 @@ | ||
<?php | ||
|
||
namespace App\Enums; | ||
|
||
enum IdentityType: string | ||
{ | ||
case AgeBracket = 'age-bracket'; | ||
case GenderAndSexualIdentity = 'gender-and-sexual-identity'; | ||
case IndigenousIdentity = 'indigenous-identity'; | ||
case EthnoracialIdentity = 'ethnoracial-identity'; | ||
case RefugeeOrImmigrant = 'refugee-or-immigrant'; | ||
case FirstLanguage = 'first-language'; | ||
case AreaType = 'area-type'; | ||
|
||
public static function labels(): array | ||
{ | ||
return [ | ||
'age-bracket' => __('Age'), | ||
'gender-and-sexual-identity' => __('Gender and sexual identity'), | ||
'indigenous-identity' => __('Indigenous'), | ||
'ethnoracial-identity' => __('Race and ethnicity'), | ||
'refugee-or-immigrant' => __('Refugees and/or immigrants'), | ||
'first-language' => __('First language'), | ||
'area-type' => __('Living in urban, rural, or remote areas'), | ||
]; | ||
} | ||
} |
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,17 @@ | ||
<?php | ||
|
||
namespace App\Enums; | ||
|
||
enum LocationType: string | ||
{ | ||
case Regions = 'regions'; | ||
case Localities = 'localities'; | ||
|
||
public static function labels(): array | ||
{ | ||
return [ | ||
'regions' => __('Specific provinces or territories'), | ||
'localities' => __('Specific cities or towns'), | ||
]; | ||
} | ||
} |
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
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
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
Oops, something went wrong.