script type='text/template' id='template-lesson-session-actions'

  = '{% if (data.cardNotOk) { %}'
  ul
    li data-lesson-option="enter-payment"
      a href='#' Enter Payment
  = '{% } else if (data.attachments_only) { %}'
  ul
    li data-lesson-option="attach-recording"
      a href='#' Attach Recording

    li data-lesson-option="attach-notation"
      a href='#' Attach Notation File

    li data-lesson-option="attach-audio"
      a href='#' Attach Audio File
  = '{% } else if (data.isScheduled) { %}'
  ul
    li data-lesson-option="status"
      a href='#' View Status

    li data-lesson-option="messages"
      a href='#' View Messages

    li data-lesson-option="messages"
      a href='#' Attach Message

    li data-lesson-option="attach-recording"
      a href='#' Attach Recording

    li data-lesson-option="attach-notation"
      a href='#' Attach Notation File

    li data-lesson-option="attach-audio"
      a href='#' Attach Audio File

    li data-lesson-option="join"
      a href='#' Join Lesson Session

    li data-lesson-option="reschedule"
      a href='#' Reschedule Lesson

    li data-lesson-option="cancel"
      a href='#' Cancel Lesson

    = '{% if (data.isAdmin) { %}'
    li data-lesson-option="start-5-min"
      a href='#' Set Start In 5 Min
    li data-lesson-option="start-65-ago"
      a href='#' Set Start 65 Min Ago
    = '{% } %}'
  = '{% } else if (data.isRequested) { %}'
  ul
    li data-lesson-option="status"
      a href='#' View Status

    li data-lesson-option="messages"
      a href='#' View Messages

    li data-lesson-option="messages"
      a href='#' Attach Message

    li data-lesson-option="cancel"
      = '{% if (data.isStudent) { %}'
      a href='#' Cancel Request
      = '{% } else { %}'
      a href='#' Decline Request
      = '{% } %}'

  = '{% } else { %}'
  ul
    li data-lesson-option="status"
      a href='#' View Status

    li data-lesson-option="messages"
      a href='#' View Messages

    li data-lesson-option="messages"
      a href='#' Attach Message

    li data-lesson-option="attach-recording"
      a href='#' Attach Recording

    li data-lesson-option="attach-notation"
      a href='#' Attach Notation File

    li data-lesson-option="attach-audio"
      a href='#' Attach Audio File
  = '{% } %}'