Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal to Send Course Invitations #58

Closed
steffen74 opened this issue Aug 6, 2021 · 0 comments
Closed

Modal to Send Course Invitations #58

steffen74 opened this issue Aug 6, 2021 · 0 comments
Labels
3 SP 3 Story Points

Comments

@steffen74
Copy link
Contributor

steffen74 commented Aug 6, 2021

This modal is opened via the context menu of the table described in issue #52

Details

  • The design should be as follows: https://www.figma.com/file/TtucXsvBOfZE7NZKzTimrA/edu-Wireframe-%E2%80%93-WIP?node-id=2347%3A9153
  • If the invite button is clicked and no date was provided or a date in the past was provided (the date of today is ok) and error message is shown stating: "Please, select a valid date for the expiration of the invitation!"
  • If the invite button is clicked and the above validation is successful the following actions are executed:
    • a new mail log [Mail] entry is generated for each selected applicant with [Enrollment:Status] equal to "APPLIED", "INVITED", or "REJECTED"
    • for each mail log entry the field [Mail:User] is set to the respective user ID and the field [Mail:Template] is set to "INVITE"
    • for each mail log entry the text provided in [MailTemplate:Subject] and [MailTemplate:Content] of the template named "INVITE" is parsed for variables that have to be replaced with the corresponding values of the user [User:Firstname; User:Lastname] or the current enrollment [Enrollment:ExpirationDate; Enrollment:CourseId--Course:Name]
    • finally set the field [Mail:Status] to "READY_TO_SEND"
    • for all selected applicants for which new mail log entries were generated, the [Enrollment:ExpirationDate] is set to the date that was selected in the modal, and the [Enrollment:Status] is changed to "INVITED"

Optional and Future Implementations

  • NA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 SP 3 Story Points
Projects
Archived in project
Development

No branches or pull requests

3 participants