education/classroom

View on GitHub
app/views/orgs/rosters/_sync_google_roster_modal.html.erb

Summary

Maintainability
Test Coverage
<% view = FormView.new(subject: roster) %>
<% course_name = local_assigns.fetch(:course_name, "Google Classroom") %>

<div class="remodal text-left" data-remodal-id="sync-google-roster-modal">
  <button data-remodal-action="close" class="remodal-close"><%= octicon 'x' %></button>
  <h2 class="remodal-header text-left">Import students from Google Classroom</h2>

  <div class="my-3">
    <div class="f5 mt-2 d-block">Linked to <strong><%= course_name %></strong></div>
    <%= link_to "Sync roster", sync_google_classroom_roster_path, method: :patch, class: "btn btn-sm mt-4" %>
  </div>
</div>