<%# Redmine plugin for Document Management System "Features" # # Copyright (C) 2011 Vít Jonáš # Copyright (C) 2012 Daniel Munn # Copyright (C) 2011-14 Karel Picman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.%>
<%= form_tag({:controller => 'dmsf_upload', :action => 'upload_files', :id => @project, :folder_id => @folder}, :id => 'uploadform', :method=>:post, :multipart => true) do %> <% if Setting.attachment_max_size.to_i >= 102400 %>
<%= l(:label_file_size) %>:
<% end %>

<%= l(:heading_file_upload) %>

<% max_file_upload = Setting.plugin_redmine_dmsf['dmsf_max_file_upload'].to_i %> <%= l(:note_uploaded_maximum_files_at_once, :number => max_file_upload) if max_file_upload > 0 %> <%= l(:note_upload_files_greater_than_two_gb) if Setting.attachment_max_size.to_i >= 2097151 %>

<%= render :partial => 'attachments/form' %>

<%= submit_tag(l(:submit_upload_files)) %>
<% end %>
<% content_for :header_tags do %> <%= javascript_include_tag 'bowser.min.js', :plugin => 'redmine_dmsf' %> <%= javascript_include_tag 'plupload/plupload.js', :plugin => 'redmine_dmsf' %> <%= javascript_include_tag 'plupload/plupload.flash.js', :plugin => 'redmine_dmsf' %> <%= javascript_include_tag 'plupload/plupload.html5.js', :plugin => 'redmine_dmsf' %> <%= javascript_include_tag 'plupload/plupload.html4.js', :plugin => 'redmine_dmsf' %> <%= javascript_include_tag 'plupload/jquery.ui.plupload/jquery.ui.plupload.js', :plugin => 'redmine_dmsf' %> <%= javascript_include_tag("plupload/i18n/#{I18n.locale.to_s.downcase}.js", :plugin => 'redmine_dmsf') if I18n.locale && !I18n.locale.to_s.match(/^en.*/) %> <% end %>