- <%= submit_tag(l(:submit_create)) %>
+ <%= f.submit l(:submit_create) %>
<% end %>
<% end %>
diff --git a/app/views/dmsf_links/_form.html.erb b/app/views/dmsf_links/_form.html.erb
index 423ebdbb..cf661626 100644
--- a/app/views/dmsf_links/_form.html.erb
+++ b/app/views/dmsf_links/_form.html.erb
@@ -17,7 +17,8 @@
#
# 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.%>
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+%>
<% html_title l(:dmsf) %>
@@ -73,19 +74,19 @@
<% files = @dmsf_link.target_project.dmsf_files.visible if @dmsf_link.target_project %>
<% end %>
<%= f.select(:target_file_id,
- options_for_select(DmsfFolder.file_list(files), @target_file_id)) %>
+ options_for_select(DmsfFolder.file_list(files), @target_file_id)) %>
diff --git a/app/views/dmsf_upload/_multi_upload.html.erb b/app/views/dmsf_upload/_multi_upload.html.erb
index 85a32ac8..a2ccc21a 100644
--- a/app/views/dmsf_upload/_multi_upload.html.erb
+++ b/app/views/dmsf_upload/_multi_upload.html.erb
@@ -1,10 +1,11 @@
<%
# encoding: utf-8
+#
# Redmine plugin for Document Management System "Features"
#
# Copyright (C) 2011 Vít Jonáš
# Copyright (C) 2012 Daniel Munn
-# Copyright (C) 2011-15 Karel Pičman
+# Copyright (C) 2011-16 Karel Pičman
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
diff --git a/app/views/dmsf_upload/upload_file.html.erb b/app/views/dmsf_upload/upload_file.html.erb
index 769ed941..7f8986ae 100644
--- a/app/views/dmsf_upload/upload_file.html.erb
+++ b/app/views/dmsf_upload/upload_file.html.erb
@@ -1,8 +1,11 @@
-<%# Redmine plugin for Document Management System "Features"
+<%
+# encoding: utf-8
#
-# Copyright (C) 2011 Vít Jonáš
-# Copyright (C) 2012 Daniel Munn
-# Copyright (C) 2014 Karel Pičman
+# Redmine plugin for Document Management System "Features"
+#
+# Copyright (C) 2011 Vít Jonáš
+# Copyright (C) 2012 Daniel Munn
+# Copyright (C) 2011-16 Karel Pičman
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
diff --git a/app/views/dmsf_upload/upload_files.html.erb b/app/views/dmsf_upload/upload_files.html.erb
index 615e3f51..c5539e71 100644
--- a/app/views/dmsf_upload/upload_files.html.erb
+++ b/app/views/dmsf_upload/upload_files.html.erb
@@ -19,21 +19,23 @@
#
# 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.%>
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+%>
-<% html_title(l(:dmsf)) %>
+<% html_title l(:dmsf) %>
-<%= render(:partial => '/dmsf/path', :locals => {:folder => @folder, :filename => nil}) %>
+<%= render(:partial => '/dmsf/path',
+ :locals => {:folder => @folder, :filename => nil, :title => l(:heading_uploaded_files)}) %>
-
- <%= textilizable(@folder.description) if @folder %>
-
+<% if (@folder && @folder.description.present?) || @project.description.present? %>
+
-<% i = 1 %>
<%= form_tag({:action => 'commit_files', :id => @project, :folder_id => @folder},
- :method=>:post) do %>
- <% @uploads.each do |upload| %>
+ :method => :post) do %>
+ <% @uploads.each_with_index do |upload, i| %>
<% if upload.locked %>
<%= render(:partial => 'upload_file_locked', :locals => {:upload => upload, :i => i}) %>
<% else %>
@@ -41,5 +43,5 @@
<% end %>
<% i += 1 %>
<% end %>
- <%= submit_tag(l(:submit_commit)) %>
+ <%= submit_tag l(:submit_commit) %>
<% end %>
\ No newline at end of file
diff --git a/app/views/dmsf_workflows/_new_step_form.html.erb b/app/views/dmsf_workflows/_new_step_form.html.erb
index 5157e57f..3e60cf75 100644
--- a/app/views/dmsf_workflows/_new_step_form.html.erb
+++ b/app/views/dmsf_workflows/_new_step_form.html.erb
@@ -1,8 +1,9 @@
<%
# encoding: utf-8
+#
# Redmine plugin for Document Management System "Features"
#
-# Copyright (C) 2011-15 Karel Pičman
+# Copyright (C) 2011-16 Karel Pičman
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -20,7 +21,7 @@
%>