Sha256: 0e6cd4705ef04a2150fcb07fe2bc7aa7a165157734fd3dd729c54af22045b690

Contents?: true

Size: 1.38 KB

Versions: 21

Compression:

Stored size: 1.38 KB

Contents

- title "Bus Captain"
.form-container
  %h1.section-title
    Bus
    %span.emphasized Captain

  %p Thank you for being a bus captain! Below is any information you may need about your passengers.

  %p
    If a student was accepted but didn't RSVP or sign up for the bus, they can go to
    %strong= rsvp_url
    to do so.

  - if Rails.configuration.hackathon['bus_captain_notes']
    = markdown(Rails.configuration.hackathon['bus_captain_notes'])

  %p
    %b Bus List Name:
    = @bus_list.name

  = render partial: 'bus_list_info', locals: { bus_list: @bus_list }

  %p
    %strong Passengers:
    = "(#{@bus_list.passengers.count} total, #{@bus_list.checked_in_passengers.count} checked in)"

  %table.table
    %thead
      %tr
        %th Boarded bus?
        %th First Name
        %th Last Name
        %th Email
        %th Phone Number
        %th School
        %th Checked in?
    %tbody
      - @bus_list.passengers.each do |p|
        %tr
          %td
            %input{type: 'checkbox', checked: p.boarded_bus?, data: { "boarded-bus": true, action: boarded_bus_bus_list_path, id: p.id } }
          %td= p.first_name
          %td= p.last_name
          %td= p.email
          %td= phone_link_to p.phone
          %td= p.school.name
          %td= p.checked_in? ? '<span class="acc-status-accepted">Yes</span>'.html_safe : 'No'

  = render partial: 'bus_list_stats', locals: { bus_list: @bus_list }

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hackathon_manager-0.12.1 app/views/bus_lists/show.html.haml
hackathon_manager-0.12.0 app/views/bus_lists/show.html.haml
hackathon_manager-0.11.2 app/views/bus_lists/show.html.haml
hackathon_manager-0.11.1 app/views/bus_lists/show.html.haml
hackathon_manager-0.11.0 app/views/bus_lists/show.html.haml
hackathon_manager-0.10.3 app/views/bus_lists/show.html.haml
hackathon_manager-0.10.2 app/views/bus_lists/show.html.haml
hackathon_manager-0.10.1 app/views/bus_lists/show.html.haml
hackathon_manager-0.10.0 app/views/bus_lists/show.html.haml
hackathon_manager-0.9.2 app/views/bus_lists/show.html.haml
hackathon_manager-0.9.1 app/views/bus_lists/show.html.haml
hackathon_manager-0.9.0 app/views/bus_lists/show.html.haml
hackathon_manager-0.8.2 app/views/bus_lists/show.html.haml
hackathon_manager-0.8.1 app/views/bus_lists/show.html.haml
hackathon_manager-0.8.0 app/views/bus_lists/show.html.haml
hackathon_manager-0.7.1 app/views/bus_lists/show.html.haml
hackathon_manager-0.7.0 app/views/bus_lists/show.html.haml
hackathon_manager-0.6.6 app/views/bus_lists/show.html.haml
hackathon_manager-0.6.5 app/views/bus_lists/show.html.haml
hackathon_manager-0.6.4 app/views/bus_lists/show.html.haml