<% @grades.each do |grade| %> <% end %>
Lecturer Lecture Grade Submission Comment
<%= grade.lecture.lecturer.login %> <%= grade.lecture.name %> <%= grade.grade %> <% if grade.submission.attached? %> <%= link_to grade.submission.filename.to_s, rails_blob_url(grade.submission, disposition: "attachment") %> <% end %> <% if grade.comment %> <%= grade.comment.html_safe %> <% end %> <%= link_to 'Comment', edit_grade_path(grade), :class => "w3-button w3-light-blue" %>
<%= link_to "Generate Report", {controller: "reports", action: "create"}, :method => :post, :class => "w3-button w3-light-blue" %>
<%= form_tag(grades_url, method: "get", class: "w3-margin") do %>
<%= submit_tag("Filter", class: "w3-button w3-light-blue") %>
<%= text_field_tag(:lecturer, "", class: "w3-input w3-border w3-round", placeholder: "Filter by lecturer...", style: "width: 90%") %> <% end %>
<%= link_to 'New Submission', new_grade_path, :class => "w3-button w3-light-blue" %>