<% # Copyright (C) 2018 - present Instructure, Inc. # # This file is part of Canvas. # # Canvas is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation, version 3 of the License. # # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more # details. # # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . %> <%= form_tag(context_url(@context, :controller => :submissions, :assignment_id => @assignment.id, :action => :create), {:id => "submit_online_upload_form", :class => "submit_assignment_form", :multipart => true }) do %> <%= hidden_field :submission, :submission_type, :value => "online_upload" %> <%= hidden_field :submission, :attachment_ids, :value => "", :id => "submission_attachment_ids" %> <%= hidden_field :submission, :eula_agreement_timestamp, :id => "eula_agreement_timestamp" %> <% unless @current_user.attachments.active.empty? %> <% end %> <% unless @context.account.grants_right?(@current_user, :make_submission_comments) %> <%= render :partial => "group_comment" %> <% end %> <% if @assignment.turnitin_enabled? %> <%= render :partial => "turnitin" %> <% end %> <% if @assignment.vericite_enabled? %> <%= render :partial => "vericite" %> <% end %> <%= render partial: 'assignments/eula_checkbox', locals: { eula_url: eula_url } %>
<%= t :upload_or_choose_file, "Upload a file, or choose a file you've already uploaded." %> <%= render :partial => "assignments/group_submission_reminder" if @assignment.has_group_category? %>
<%= blabel :attachment, :uploaded_data, :en => "File", id: 'attachmentLabel' %>

<%= text_area :submission, :comment, :class => 'submission_comment_textarea', :placeholder => t('comments_placeholder', 'Comments...'), :title => t('additional_comments', 'Additional comments') %>
<% end %>