Sha256: 0a83e343096790890d9e73a8f5addf39c4bd0a2b86d866e8c295608a7ae55466

Contents?: true

Size: 1.34 KB

Versions: 21

Compression:

Stored size: 1.34 KB

Contents

%section.section{ style: "padding-left: 20px; padding-right: 20px" }
  %h1.section-title= title "School"
  %p#notice= notice

  %p
    %b Name:
    = @school.name
  %p
    %b Address:
    = @school.address || "(not provided)"
  %p
    %b City:
    = @school.city || "(not provided)"
  %p
    %b State:
    = @school.state || "(not provided)"
  %p
    %b Bus List:
    = @school.bus_list ? link_to(@school.bus_list.name, manage_bus_list_path(@school.bus_list)) : '(not assigned)'

  %hr

  - unless current_user.admin_limited_access
    = link_to 'Edit', edit_manage_school_path(@school)
    \|
  - unless current_user.admin_limited_access
    = link_to 'Merge', merge_manage_school_path(@school)
    \|
  = link_to 'Back', manage_schools_path

  %hr

  %p
    %strong Questionnaires:
  %table.table
    %thead
      %tr
        %th
        %th First Name
        %th Last Name
        %th Email
        %th Status
        %th Checked In?
    %tbody
      - @school.questionnaires.order(:acc_status).each do |q|
        %tr
          %td= link_to '<i class="fa fa-search"></i>'.html_safe, manage_questionnaire_path(q)
          %td= q.first_name
          %td= q.last_name
          %td= q.email
          %td= "<span class=\"acc-status-#{q.acc_status}\">#{Questionnaire::POSSIBLE_ACC_STATUS[q.acc_status]}</span>".html_safe
          %td= q.checked_in? ? "Yes" : "No"

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hackathon_manager-0.5.9 app/views/manage/schools/show.html.haml
hackathon_manager-0.5.8 app/views/manage/schools/show.html.haml
hackathon_manager-0.5.7 app/views/manage/schools/show.html.haml
hackathon_manager-0.5.6 app/views/manage/schools/show.html.haml
hackathon_manager-0.5.5 app/views/manage/schools/show.html.haml
hackathon_manager-0.5.4 app/views/manage/schools/show.html.haml
hackathon_manager-0.5.3 app/views/manage/schools/show.html.haml
hackathon_manager-0.5.2 app/views/manage/schools/show.html.haml
hackathon_manager-0.5.1 app/views/manage/schools/show.html.haml
hackathon_manager-0.5.0 app/views/manage/schools/show.html.haml
hackathon_manager-0.4.4 app/views/manage/schools/show.html.haml
hackathon_manager-0.4.3 app/views/manage/schools/show.html.haml
hackathon_manager-0.4.2 app/views/manage/schools/show.html.haml
hackathon_manager-0.4.1 app/views/manage/schools/show.html.haml
hackathon_manager-0.4.0 app/views/manage/schools/show.html.haml
hackathon_manager-0.3.3 app/views/manage/schools/show.html.haml
hackathon_manager-0.3.2 app/views/manage/schools/show.html.haml
hackathon_manager-0.3.1 app/views/manage/schools/show.html.haml
hackathon_manager-0.3.0 app/views/manage/schools/show.html.haml
hackathon_manager-0.2.0 app/views/manage/schools/show.html.haml