Training Session Attendance
URL
This template is used for the page with the attendance form which can be accessed at: /training_sessions/attendance/new
and the confirmation screen at: /training_sessions/attendance
.
Screenshots
form
confirmation
Structure
training_session_attendance.html.liquid
├── _header.html.liquid
└── _footer.html.liquid
Template Considerations
This template exposes a training_session
variable. You can learn about its attributes here: TrainingSession. There's also a token
variable that stores the value of the token needed to identify the training session. Based on the value of the token
variable you can differentiate between the form page (token not empty) and the confirmation page (token is empty).
Form
The Training Session Attendance page uses an HTML form to handle the CTA buttons. Please make sure you're not overwriting its internals:
- the
action
andmethod
attributes on the<form>
HTML tag - the
form_authenticity_token
Liquid tag inside the<form>
HTML tag - the name attribute on the
<input>
HTML tags
Updated about 2 months ago