|
|
@ -76,14 +76,14 @@
|
|
|
|
<%= render :partial => "tags/tag_name",:locals => {:obj => obj,:non_list_all => false ,:object_flag => object_flag} %>
|
|
|
|
<%= render :partial => "tags/tag_name",:locals => {:obj => obj,:non_list_all => false ,:object_flag => object_flag} %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="put-tag-form" style="display: none">
|
|
|
|
<div id="put-tag-form" style="display: none">
|
|
|
|
<%= form_for "tag_for_save",{:remote=>true,:url=>tag_path,:id => "tag_for_save_form",
|
|
|
|
<%= form_for "tag_for_save",:remote=>true,:url=>tag_path,
|
|
|
|
:update => "tags_show",
|
|
|
|
:update => "tags_show",
|
|
|
|
:complete => '$("#put-tag-form").hide();'} do |f| %>
|
|
|
|
:complete => '$("#put-tag-form").hide();' do |f| %>
|
|
|
|
<%= f.text_field :name ,:id => "tags_name",:size=>"28",:require=>true,:maxlength => Setting.tags_max_length,:minlength=>Setting.tags_min_length %>
|
|
|
|
<%= f.text_field :name ,:id => "tags_name",:size=>"28",:require=>true,:maxlength => Setting.tags_max_length,:minlength=>Setting.tags_min_length %>
|
|
|
|
<%= f.text_field :object_id,:value=> obj.id,:style=>"display:none"%>
|
|
|
|
<%= f.text_field :object_id,:value=> obj.id,:style=>"display:none"%>
|
|
|
|
<%= f.text_field :object_flag,:value=> object_flag,:style=>"display:none"%>
|
|
|
|
<%= f.text_field :object_flag,:value=> object_flag,:style=>"display:none"%>
|
|
|
|
<!--<%#= f.submit l(:button_project_tags_add),:class => "ButtonColor m3p10" %>-->
|
|
|
|
<!--<%#= f.submit l(:button_project_tags_add),:class => "ButtonColor m3p10" %>-->
|
|
|
|
<a href="#" onclick='$("#tags_name").parent().submit()' class="ButtonColor m3p10" >
|
|
|
|
<a href="#" onclick='$("#tags_name").parent().submit();' class="ButtonColor m3p10" >
|
|
|
|
<%= l(:button_project_tags_add)%>
|
|
|
|
<%= l(:button_project_tags_add)%>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<%= link_to_function l(:button_cancel), '$("#put-tag-form").hide();',:class=>'ButtonColor m3p10'%>
|
|
|
|
<%= link_to_function l(:button_cancel), '$("#put-tag-form").hide();',:class=>'ButtonColor m3p10'%>
|
|
|
|