+
+
+
+
+ <%# LibraryTag.where(nil).each do |tag| %>
+
+ <%# end %>
+
+
+
封面图 (上传尺寸:120*90 px)
+ <% if File.exist?(disk_filename("Career", career.id)) %>
+ <%= image_tag(url_to_avatar(career), :class => "w120 h90 ml5 shixun_image_show", :id => "shixun_image_show_#{career.id}") %>
+ <% else %>
+
+ <% end %>
+ <%= file_field_tag 'avatar[image]',
+ :id => "upload_img_#{career.id}",
+ :style => 'display:none;',
+ :size => "1",
+ :multiple => false,
+ :onchange => 'addInputAvatar(this);',
+ :data => {
+ :max_file_size => Setting.authentication_img_max_size.to_i.kilobytes,
+ :max_file_size_message => l(:error_user_auth_too_big, :max_size => number_to_human_size(Setting.authentication_img_max_size.to_i.kilobytes)),
+ :max_concurrent_uploads => Redmine::Configuration['max_concurrent_ajax_uploads'].to_i,
+ :file_type => Redmine::Configuration['pic_types'].to_s,
+ :type_support_message => l(:error_pic_type),
+ :upload_path => upload_avatar_path(:format => 'js'),
+ :description_placeholder => nil ,# l(:label_optional_description)
+ :source_type => "Career",
+ :source_id => career.id,
+ :is_direct => 1
+ } %>
+
+ <%= File.exist?(disk_filename("Career", career.id)) ? "重新上传" : "上传图片" %>
+
+
+