<div id="tags">
	<%= tag('img', {:src => "/images/sidebar/tags.png"}, false, false) %>
	<strong><label><%= l(:label_tag) %>:</label></strong>
	<!-- 1代表是user类型   2代表是project类型  3代表是issue类型  -->
	<!--  3 代表的是issue 当是issue是 处理方式与前2个对象不同 -->
  <% if  object_flag == '3' %>
	<%= toggle_link (image_tag "/images/sidebar/add.png"), 'put-tag-form-issue', {:focus => 'name-issue'} %>
	<div id="tags_show_issue">
		<%= render :partial => "layouts/tag_name",:locals => {:obj => obj,:non_list_all => false ,:object_flag => object_flag} %>
	</div>
	<div id="put-tag-form-issue" style="display: none">
		<%= form_for "tag_for_save",:remote=>true,:url=>tag_path,
		:update => "tags_show",
		:complete => '$("#put-tag-form-issue").slideUp();' do |f| %>
		<%= f.text_field :name ,:id => "name-issue",:size=>"30" %>
		<%= f.text_field :object_id,:value=> obj.id,:style=>"display:none"%>
		<%= f.text_field :object_flag,:value=> object_flag,:style=>"display:none"%>
		<%= f.submit "add"%>
		<%= link_to_function l(:button_cancel), '$("#put-tag-form-issue").slideUp();'%>
		<% end %>
	</div>
</div>

<% else %>
<%= toggle_link (image_tag "/images/sidebar/add.png"), 'put-tag-form', {:focus => 'name'} %>
<div id="tags_show">
	<%= render :partial => "layouts/tag_name",:locals => {:obj => obj,:non_list_all => false ,:object_flag => object_flag} %>
</div>
<div id="put-tag-form" style="display: none">
	<%= form_for "tag_for_save",:remote=>true,:url=>tag_path,
	:update => "tags_show",
	:complete => '$("#put-tag-form").slideUp();' do |f| %>
	<%= f.text_field :name ,:id => "name",:size=>"28"%>
	<%= f.text_field :object_id,:value=> obj.id,:style=>"display:none"%>
	<%= f.text_field :object_flag,:value=> object_flag,:style=>"display:none"%>
	<%= f.submit "add"%>
	<%= link_to_function l(:button_cancel), '$("#put-tag-form").slideUp();'%>
	<% end %>
</div>
</div>
<% end %>
