修复tag的需求bug部分;修改上传图像部分
This commit is contained in:
parent
18b1d22502
commit
4e8c371160
|
@ -286,6 +286,8 @@ class UsersController < ApplicationController
|
|||
@obj = Project.find_by_id(@obj_id)
|
||||
when '3' then
|
||||
@obj = Issue.find_by_id(@obj_id)
|
||||
when '4' then
|
||||
@obj = Bid.find_by_id(@obj_id)
|
||||
else
|
||||
@obj = nil
|
||||
end
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
</span>
|
||||
</span>
|
||||
<span class="add_avatar">
|
||||
<a href="javascript:void(0);" class="btn_addPic">
|
||||
<spam><em>+</em>上传图片</span>
|
||||
<%= file_field_tag 'avatar[image]',
|
||||
:id => nil,
|
||||
:class => 'file_selector',
|
||||
|
@ -19,6 +21,8 @@
|
|||
:source_type => source.class.to_s,
|
||||
:source_id => source.id.to_s
|
||||
} %>
|
||||
<input type="file" tabindex="3" title="支持jpg、jpeg、gif、png格式,文件小于5M" size="3" name="pic" class="filePrew">
|
||||
</a>
|
||||
(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
|
||||
</span>
|
||||
|
||||
|
|
|
@ -6,10 +6,7 @@
|
|||
<h3 style="padding-left: 10px;"><%= l(:label_my_account)%></h3>
|
||||
|
||||
|
||||
<%= labelled_form_for :user, @user,
|
||||
:url => { :action => "account" },
|
||||
:html => { :id => 'my_account_form',
|
||||
:method => :post } do |f| %>
|
||||
|
||||
|
||||
<fieldset class="box" style="margin:10px;">
|
||||
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
||||
|
@ -22,6 +19,10 @@
|
|||
<!--upload-->
|
||||
</div>
|
||||
</fieldset>
|
||||
<%= labelled_form_for :user, @user,
|
||||
:url => { :action => "account" },
|
||||
:html => { :id => 'my_account_form',
|
||||
:method => :post } do |f| %>
|
||||
<fieldset class="collapsible collapsed" style="width:800px;margin-left: 10px;">
|
||||
<legend onclick="toggleFieldset(this);">
|
||||
<%= l(:label_information_plural)%>
|
||||
|
|
Loading…
Reference in New Issue