---
agentTools:
  projectIndex: https://developers.northpass.com/llms.txt
---

# 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

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/9bd6861-Screenshot_2021-09-06_at_15.52.46.png",
        "Screenshot 2021-09-06 at 15.52.46.png",
        3072,
        1718,
        "#d7dbdd"
      ]
    }
  ]
}
[/block]

### confirmation

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/af214c3-Screenshot_2021-09-06_at_15.52.54.png",
        "Screenshot 2021-09-06 at 15.52.54.png",
        3072,
        1718,
        "#d8dcde"
      ]
    }
  ]
}
[/block]

## Structure

[block:code]
{
  "codes": [
    {
      "code": "training_session_attendance.html.liquid\n├── _header.html.liquid\n└── _footer.html.liquid",
      "language": "text"
    }
  ]
}
[/block]

## Template Considerations

This template exposes a `training_session` variable. You can learn about its attributes here: [TrainingSession](https://developers.northpass.com/docs/training-session-variable). 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` and `method` 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