@@ -10,7 +10,7 | |||||
10 | <span> |
|
10 | <span> | |
11 | <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil, :class => 'file', |
|
11 | <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil, :class => 'file', | |
12 | :onchange => "checkFileSize(this, #{Setting.attachment_max_size.to_i.kilobytes}, '#{escape_javascript(l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)))}');" -%> |
|
12 | :onchange => "checkFileSize(this, #{Setting.attachment_max_size.to_i.kilobytes}, '#{escape_javascript(l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)))}');" -%> | |
13 | <%= text_field_tag 'attachments[1][description]', '', :id => nil, :class => 'description', :placeholder => l(:label_optional_description) %> |
|
13 | <%= text_field_tag 'attachments[1][description]', '', :id => nil, :class => 'description', :maxlength => 255, :placeholder => l(:label_optional_description) %> | |
14 | <%= link_to_function(image_tag('delete.png'), 'removeFileField(this)', :title => (l(:button_delete))) %> |
|
14 | <%= link_to_function(image_tag('delete.png'), 'removeFileField(this)', :title => (l(:button_delete))) %> | |
15 | </span> |
|
15 | </span> | |
16 | </span> |
|
16 | </span> |
@@ -1405,6 +1405,7 class IssuesControllerTest < ActionController::TestCase | |||||
1405 | :tag => 'input', |
|
1405 | :tag => 'input', | |
1406 | :attributes => {:type => 'file', :name => 'attachments[1][file]'} |
|
1406 | :attributes => {:type => 'file', :name => 'attachments[1][file]'} | |
1407 | } |
|
1407 | } | |
|
1408 | assert_select 'input[name=?][maxlength=255]', 'attachments[1][description]' | |||
1408 | end |
|
1409 | end | |
1409 |
|
1410 | |||
1410 | def test_get_new_should_prefill_the_form_from_params |
|
1411 | def test_get_new_should_prefill_the_form_from_params |
General Comments 0
You need to be logged in to leave comments.
Login now