Sha256: e8d1dfacf2bdd467c50e7d94ffe99960f3e261cb8656260845e3f42610c1c864

Contents?: true

Size: 1.41 KB

Versions: 4

Compression:

Stored size: 1.41 KB

Contents

<% linked_object = link.linked || link.build_linked %>

<li id="link_section_<%= link_guid %>" class="<%= ref_object_css_class(linked_object.andand.referable) %>">
  <div class="file">
    <% sectionable_form.fields_for "links_attributes", link, :index => link_guid do |l| %>
      <%= l.hidden_field :id unless link.new_record? %>
      <%= l.hidden_field :_destroy, :class => "delete" %>
      <%= l.positioning_field %>
    
      <div class="undestroy">
        <%= link_to_function button_text(:undo), "PageHelper.unDestroy('link_section_#{link_guid}')", :class => "button small undo" %>
        <%= t(:will_be_destroyed, :link => link.title, :scope => [:link_section, :form]) %>        
      </div>
  
      <div class="link">
        <%= l.text_field :title, :class => "link_title full" %>
        <%= link_browser(l, :linked, {:object => linked_object, :container => "link_section_#{link_guid}"}) %>
        <%= l.fieldset_errors :linked %>
      </div>
    
      <ul class="tools">
        <li><span class="drag dragLink">&nbsp;</span></li>
        <li><%= link_to_function(image_tag("/skyline/images/buttons/section-delete.gif", :alt => t(:delete, :scope => [:section, :form])), "PageHelper.destroy('link_section_#{link_guid}')", :class => "delete") %></li>
      </ul>
    <% end %>
  </div>
</li>

<%= javascript_tag "PageHelper.destroy('link_section_#{link_guid}');" if link.marked_for_destruction? %>

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
westarete-skylinecms-3.0.8.20100329 app/views/skyline/link_section_links/_form.html.erb
westarete-skylinecms-3.0.8.20100330 app/views/skyline/link_section_links/_form.html.erb
skylinecms-3.0.8 app/views/skyline/link_section_links/_form.html.erb
skylinecms-3.0.7 app/views/skyline/link_section_links/_form.html.erb