forked from aces/Loris
-
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.
[Candidate_parameters] Consent status - Add NA option (aces#8732)
Adding a N/A option for consent status. This is the expected behaviour: - Updating the consent status from Not Applicable to Yes/No is allowed - Updating the consent status from Yes/No to Not Applicable is NOT allowed - If Not Applicable is selected, no dates are required Removes CCNA override aces/CCNA#3822
- Loading branch information
1 parent
be39a57
commit 6c03c89
Showing
20 changed files
with
227 additions
and
21 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE candidate_consent_rel MODIFY COLUMN `Status` enum('yes', 'no', 'not_applicable') DEFAULT NULL; | ||
ALTER TABLE candidate_consent_history MODIFY COLUMN `Status` enum('yes', 'no', 'not_applicable') DEFAULT NULL; |
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
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
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,42 @@ | ||
<?php declare(strict_types=1); | ||
namespace LORIS\my_preferences; | ||
|
||
/** | ||
* A \LORIS\candidate_profile\UserPreferenceWidget is a type of \LORIS\GUI\Widget | ||
* used by the my preference page to register extra preference types. | ||
* | ||
* All UserPreferenceWidgets consist of React components which are loaded on the fly. | ||
* The React component can have arbitrary props sent to it from LORIS. | ||
* | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 | ||
*/ | ||
class UserPreferenceWidget implements \LORIS\GUI\Widget | ||
{ | ||
/** | ||
* Construct a dashboard widget with the specified properties. | ||
* | ||
* @param string $title The title of the card to display. | ||
* @param string $jsurl The URL containing the React component. | ||
* @param string $componentname The React component name for this widget. | ||
* @param array $props Additional React props to pass to the React | ||
* component. | ||
*/ | ||
public function __construct( | ||
public string $title, | ||
public string $jsurl, | ||
public string $componentname, | ||
public array $props, | ||
) { | ||
} | ||
|
||
/** | ||
* Renders the widget within a preference panel and implements | ||
* the \LORIS\GUI\Widget interface. | ||
* | ||
* @return string the URL to the javascript which contains the React component | ||
*/ | ||
public function __toString() | ||
{ | ||
return $this->jsurl; | ||
} | ||
} |
Oops, something went wrong.