You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
217317751JiayeChen edited this page Apr 1, 2024
·
1 revision
AdvisorPolicyController
Controller for the advisor policy view.
Author: Jiaye Chen
Fields:
start_date: DatePicker for selecting the start date of the policy.
end_date: DatePicker for selecting the end date of the policy.
premuim_field: TextField for entering the premium amount of the policy.
deductible_field: TextField for entering the deductible amount of the policy.
name_field: TextField for entering the name associated with the policy.
policy_number_field: TextField for entering the policy number.
coverage_picker: ChoiceBox for selecting the coverage type.
status_picker: ChoiceBox for selecting the status of the policy.
coverages: Array of strings representing different coverage types.
status: Array of strings representing different status options for the policy.
description_textarea: TextArea for entering the description of the policy.
notes_textarea: TextArea for entering any notes related to the policy.
Methods:
initialize(): Method invoked to initialize the controller. It sets up the choice boxes with available options.
onSubmit(): Event handler method for submitting the policy details. It is triggered when the user clicks the submit button.
toListView(): Method to navigate to the policy list view.
Usage Notes:
This class controls the functionality of the advisor policy view, allowing advisors to input details of a new policy or edit existing policy details. Advisors can select coverage type, status, enter policy details, and submit the form.