Sha256: 6005ff20390423b0f562fe47420318a0f6208c5231d9e90578253ed106549bed
Contents?: true
Size: 995 Bytes
Versions: 7
Compression:
Stored size: 995 Bytes
Contents
<% div_for area do %> <% fields_for 'design[area_attributes][]', area do |naf| %> <%= naf.text_field :name, :index => nil %> <% if area.new_record? %> <%= link_to_function "Remove", "$(this).up('.area').remove()", :class => 'button' %><div class='linkbuttonEnding' style='margin-top: 7px;'></div><br/> <% else %> <%= link_to_function "Remove", "$(this).next('.should_destroy').value = 1; $(this).hide();"+ "$('area_restore_#{area.id}').show()", :class => 'button', :id => "area_remove_#{area.id}" %> <%= link_to_function "Restore", "$(this).next('.should_destroy').value = 0; $(this).hide();"+ "$('area_remove_#{area.id}').show()", :class => 'button', :id => "area_restore_#{area.id}", :style => 'display:none' %><div class='linkbuttonEnding' style='margin-top: 5px;'></div><br/> <%= naf.hidden_field :id, :index => nil %> <%= naf.hidden_field :should_destroy, :index => nil, :class => 'should_destroy' %> <% end %> <% end %> <% end %>
Version data entries
7 entries across 7 versions & 1 rubygems