- <%= f.text_area(:comment, :rows => 2, :label => l(:label_comment)) %> + <%= f.text_area(:comment, :rows => 2, :label => l(:label_comment), :class => 'wiki-edit') %>
<%= f.submit l(:submit_create) %> <% end %> diff --git a/app/views/dmsf_upload/_form.html.erb b/app/views/dmsf_upload/_form.html.erb index 3adc3b16..5066ab01 100644 --- a/app/views/dmsf_upload/_form.html.erb +++ b/app/views/dmsf_upload/_form.html.erb @@ -26,7 +26,7 @@ <%= text_field_tag("dmsf_attachments[p#{i}][filename]", attachment.filename, :class => 'filename') + text_field_tag("dmsf_attachments[p#{i}][description]", attachment.description, :maxlength => 255, :placeholder => l(:label_optional_description), :class => 'description') + - link_to(' '.html_safe, dmsf_attachment_path(attachment, :attachment_id => "p#{i}", :format => 'js'), :method => 'delete', :remote => true, :class => 'remove-upload') %> + link_to(' '.html_safe, dmsf_attachment_path(attachment, :attachment_id => "p#{i}", :format => 'js'), :method => 'delete', :remote => true, :class => 'remove-upload icon icon-del') %> <%= hidden_field_tag "dmsf_attachments[p#{i}][token]", "#{attachment.token}" %> <% end %> diff --git a/app/views/dmsf_upload/_upload_file.html.erb b/app/views/dmsf_upload/_upload_file.html.erb index a11061ce..2311378f 100644 --- a/app/views/dmsf_upload/_upload_file.html.erb +++ b/app/views/dmsf_upload/_upload_file.html.erb @@ -1,28 +1,28 @@ <% -# encoding: utf-8 -# -# Redmine plugin for Document Management System "Features" -# -# Copyright (C) 2011 Vít Jonáš<%= label_tag("commited_files[#{i}][title]", l(:label_title)) %> - <%= text_field_tag("commited_files[#{i}][title]", upload.title, :size => 32, :required => true) %> + <%= text_field_tag("commited_files[#{i}][title]", upload.title, :required => true) %>
<%= label_tag('', l(:label_filename)) %> - <%= h(upload.name) %> + <%= text_field_tag(:name, h(upload.name), :readonly => true) %> <%= hidden_field_tag("commited_files[#{i}][name]", upload.name) %>
- <%= label_tag("commited_files[#{i}][description]", l(:label_description)) %> - <%= text_area_tag("commited_files[#{i}][description]", upload.description, :rows => 6, :class => 'wiki-edit') %> + <%= label_tag("commited_files[#{i}][description]", l(:label_description)) %> + <%= text_area_tag("commited_files[#{i}][description]", upload.description, :rows => 6, :class => 'wiki-edit') %>
<%= label_tag("commited_files[#{i}][version]_minor", l(:label_dmsf_version)) %>
- <%= radio_button_tag("commited_files[#{i}][version]", 1, true) %>
+ <%= radio_button_tag("commited_files[#{i}][version]", 1, true) %>
<%= upload.major_version %>.<%= upload.minor_version + 1 %>
<%= l(:option_version_minor) %>
- <%= radio_button_tag("commited_files[#{i}][version]", 2) %>
- <%= upload.major_version + 1 %>.0
+ <%= radio_button_tag("commited_files[#{i}][version]", 2) %>
+ <%= upload.major_version + 1 %>.0
<%= l(:option_version_major) %>
- <%= radio_button_tag("commited_files[#{i}][version]", 3) %>
- <%= select_tag "commited_files[#{i}][custom_version_major]", options_for_select(0..99, upload.major_version + 2), :onchange => "$('#commited_files_#{i}_version_3').prop('checked', true)" %>.
- <%= select_tag "commited_files[#{i}][custom_version_minor]", options_for_select(0..99, upload.minor_version + 1), :onchange => "$('#commited_files_#{i}_version_3').prop('checked', true)" %>
- <%= l(:option_version_custom) %>
+ <%= radio_button_tag("commited_files[#{i}][version]", 3) %>
+ <%= select_tag "commited_files[#{i}][custom_version_major]",
+ options_for_select(0..99, upload.major_version + 2),
+ :onchange => "$('#commited_files_#{i}_version_3').prop('checked', true)",
+ :class => 'dmsf_select_version'%>.
+ <%= select_tag "commited_files[#{i}][custom_version_minor]",
+ options_for_select(0..99, upload.minor_version + 1),
+ :onchange => "$('#commited_files_#{i}_version_3').prop('checked', true)",
+ :class => 'dmsf_select_version' %>
+ <%= l(:option_version_custom) %>
- <%= label_tag('', l(:label_mime)) %> - <%= h(upload.mime_type) %> + <%= label_tag '', l(:label_mime) %> + <%= text_field_tag(:name, h(upload.mime_type), :readonly => true) %>
<%= label_tag('', l(:label_size)) %> - <%= number_to_human_size(upload.size) %> + <%= text_field_tag(:name, number_to_human_size(upload.size), :readonly => true) %>
-- <%= label_tag("commited_files[#{i}][comment]", l(:label_comment)) %> - <%= text_area_tag("commited_files[#{i}][comment]", upload.comment, :rows => 2) %> + <%= label_tag("commited_files[#{i}][comment]", l(:label_comment)) %> + <%= text_area_tag("commited_files[#{i}][comment]", upload.comment, :rows => 2, :class => 'wiki-edit') %>
<%= label_tag('', l(:label_title)) %> - <%= h(upload.title) %> + <%= text_field_tag(:name, h(upload.title), :readonly => true) %>
<%= label_tag('', l(:label_filename)) %> - <%= h(upload.name) %> + <%= text_field_tag(:name, h(upload.name), :readonly => true) %>
- <%= label_tag('', l(:label_description)) %> +
+ <%= label_tag('', l(:label_description)) %>
<%= label_tag('', h(value.custom_field.name)) %> <% value.value = nil if value.custom_field.dmsf_not_inheritable %> - <%= h(value.value) %> + <%= text_field_tag(:name, h(value.value), :readonly => true) %>
<% end %><%= label_tag('', l(:label_dmsf_version)) %> - <%= upload.major_version %>.<%= upload.minor_version %> -
+ <%= text_field_tag(:name, "#{upload.major_version}.#{upload.minor_version}", :readonly => true) %> +<%= label_tag('', l(:label_mime)) %> - <%= h(upload.mime_type) %> + <%= text_field_tag(:name, h(upload.mime_type), :readonly => true) %>
<%= label_tag('', l(:label_size)) %> - <%= number_to_human_size(upload.size) %> + <%= text_field_tag(:name, h(number_to_human_size(upload.size)), :readonly => true) %>
-- <%= label_tag('', l(:label_comment)) %> -
+ <%= label_tag('', l(:label_comment)) %> +