<% list.each do |r| %> <%= raw cycle("", "", :name => "end_cell") %> <% end %> <%= raw cycle("", "", :name => "end_cell") %> <%= raw("") if list.size.odd? %>
", "", :name => "begin_cell") %>
<%= link_to image_tag("btn/edit.png", :class => "menu_icon", :title => t('relation_custom.edit')), '#', :class => "relation_custom_edit_link" %> <%= link_to image_tag("btn/delete.png", :class => "menu_icon", :title => t('relation_custom.delete')), r, :class => "relation_custom_delete_link", :method => :delete, :confirm => t('relation_custom.confirm_delete') %>
<%= form_for r, :remote => true do |f| %>

<%= f.text_field :name, :class => "privacy_input_new", :size => 18 %>

<%= f.submit nil, :class => "button" %> <% end %>
<%= raw cycle("
", "", :name => "begin_cell") %>
<%= render :partial => 'relation/customs/form' %>
<%= raw cycle("
<%= javascript_tag do %> $(function(){ $('#relation_customs_list :radio').change(function(){ selectRelation(this); }); $('.relation_custom_edit_link').click(function() { $(this).parent().hide(); $(this).parent().siblings('label').hide(); $(this).parent().siblings('.relation_custom_name_form').show(); }); $(".cancel_edit_relation_custom").click(function() { $(this).parent().parent().hide(); $(this).parent().parent().siblings('label, .options').show(); return false; }); $("#new_relation_custom_title").click(function() { $("#new_relation_custom_title_block").hide(); $("#new_relation_custom_input_block").show(); }); }) <% end %>