From 4b5ad833b01da73009cf5e62412fcca6ee02a44d Mon Sep 17 00:00:00 2001 From: z9hang Date: Tue, 18 Nov 2014 10:26:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E8=B5=84=E6=BA=90=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E5=90=84=E6=8C=89=E9=92=AE=E5=A4=B1=E6=95=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/files/_course_file.html.erb | 30 +++++++++++++++++++++++++++ app/views/files/_course_new.html.erb | 22 -------------------- 2 files changed, 30 insertions(+), 22 deletions(-) diff --git a/app/views/files/_course_file.html.erb b/app/views/files/_course_file.html.erb index c48900426..46a954746 100644 --- a/app/views/files/_course_file.html.erb +++ b/app/views/files/_course_file.html.erb @@ -13,7 +13,37 @@ <%= link_to(l(:label_upload_files), 'javascript:void(0);', :class => 'icon m5p5 button_submit', :onclick => "$('#relation_file_div').slideUp();$('#upload_file_div').slideToggle('slow');") if User.current.allowed_to?(:manage_files, @course) %> <%= link_to(l(:label_relation_files), 'javascript:void(0);', :onclick => "$('#upload_file_div').slideUp();$('#relation_file_div').slideToggle();", :class => 'icon m5p5 button_submit') if User.current.allowed_to?(:manage_files, @course) %>

+ +
diff --git a/app/views/files/_course_new.html.erb b/app/views/files/_course_new.html.erb index f864f8629..2eaa70cb6 100644 --- a/app/views/files/_course_new.html.erb +++ b/app/views/files/_course_new.html.erb @@ -20,28 +20,6 @@ <% end %>
- -
- <%=l(:label_attachment_new)%> - <% attachmenttypes = course.attachmenttypes %> - <%= error_messages_for 'attachment' %> - <%= form_tag(course_files_path(course), :multipart => true,:remote => true,:method => :post,:name=>"upload_form", :class => "tabular") do %> - -

- <% if attachmenttypes.any? %> - <%= l(:attachment_type) %> - <%= select_tag "attachment_type", - options_from_collection_for_select(attachmenttypes, "id", - "typeName", 2), {style: 'width:100px'} %> - <% end %> -

- -

<%=l(:label_attachment_plural)%><%= render :partial => 'attachments/form' %>

- - <%= submit_tag l(:button_add) %> - <% end %> -
-