ZWeb.Forms.SummerStudentEmailLive (Portico/Z v0.1.0)
A webform to send "email" to students.
What is It?
During the summer, we allow families + friends to send "emails" to students in a web form. These "emails" get printed out on paper, sorted by student group, and handed out during gathering times.
This is the public webform where folks can send the email message. The main features of this form are:
- Searches currently-enrolled students by name
- If there are two students with the same name, then it pops up a "chooser" dialog.
- Once there's a successful message, it'll just send the whole thing as a JSON through HIVE to Portico.
- The HIVE atom is a
{z, summer_student_email, message}
- The HIVE atom is a
- We handle sorting / printing these messages from Portico.
Parameters
The "index" view takes the following parameters:
portico_contact_id
(optional) - if passed, an attempt will be made to find the contact automatically + skip the part where the author has to look up the student by name.
Link to this section Summary
Functions
Callback implementation for Phoenix.LiveView.render/1
.
Link to this section Functions
Link to this function
render(arg)
Callback implementation for Phoenix.LiveView.render/1
.