|
|
|
@ -42,17 +42,17 @@
|
|
|
|
|
<div id="upload_progressbar" style="height:14px; margin-bottom: 10px;display: block"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</span>
|
|
|
|
|
<a href="javascript:void(0);" class="btn_addPic" style="text-decoration:none;">
|
|
|
|
|
<span><%= l(:button_upload_photo) %></span>
|
|
|
|
|
<a href="javascript:void(0);" class="btn_addPic" style="text-decoration:none;">
|
|
|
|
|
<span><%= l(:button_upload_photo) %></span>
|
|
|
|
|
</a>
|
|
|
|
|
<span class="add_avatar" style="margin-left: -55px;width: 70px">
|
|
|
|
|
<span class="add_avatar" style="margin-left: -55px;width: 70px">
|
|
|
|
|
<%= file_field_tag 'avatar[image]',
|
|
|
|
|
:id => nil,
|
|
|
|
|
:class => 'file_selector',
|
|
|
|
|
:style => 'width:70px;',#added by young
|
|
|
|
|
:size => "1",
|
|
|
|
|
:multiple => false,
|
|
|
|
|
:onchange => 'addInputAvatar(this);',
|
|
|
|
|
:onchange => 'addInputAvatar(this);',
|
|
|
|
|
:data => {
|
|
|
|
|
:max_file_size => Setting.attachment_max_size.to_i.kilobytes,
|
|
|
|
|
:max_file_size_message => l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)),
|
|
|
|
@ -61,7 +61,7 @@
|
|
|
|
|
:description_placeholder => nil ,# l(:label_optional_description)
|
|
|
|
|
:source_type => source.class.to_s,
|
|
|
|
|
:source_id => source.id.to_s
|
|
|
|
|
} %>
|
|
|
|
|
} %>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
|