<% # Copyright (C) 2011 - 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_for([@context, Collaboration.new], :html => { :target => '_blank', :style => 'display: none; margin-top: 10px;' }) do |f| %>

<%= t 'titles.new', "Start a New Collaboration" %>

<%= f.label :collaboration_type, t('labels.collaboration_type', 'Collaborate using:') %>
<%= f.label :title, t('labels.document_name', 'Document name:') %> <%= f.text_field :title, :style => "width: 300px;" %>
<%= f.label :description, t('labels.description', 'Description:') %> <%= f.text_area :description, :style => "width: 400px; height: 50px;" %>
<%= t('The following content is partner provided') %>
<%= t('The preceding content is partner provided') %>
<% end %> <%= form_tag(context_url(@context, :context_collaboration_url, "{{ id }}"), {:id => "edit_collaboration_form", :method => :put, :style => "display: none; margin-top: 10px;", :class => 'collaboration communication_message'}) do %>
<%= text_field :collaboration, :title, :style => "width: 300px;", :value => t('collaboration_name', "%{course_or_group_name} Collaboration", :course_or_group_name => @context.name) %>
<%= before_label :description, "Description:" %>
<%= text_area :collaboration, :description, :style => "width: 400px; height: 50px;" %>
<% end %>