Sha256: f9c7545aac0d1b54aeec35918c7ca5a49fdd9de8e31d79f8011f44831df40410
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
<table cellspacing="0" cellpadding="0"> <tr> <th valign="top"> <div class="object_presentation" > <%= h(@object._presentation) -%> </div> </th> <th valign="top"> <div class="close_link" > <%= close_link(@object) -%> </div> </th> </tr> <% attributes ||= @object.inline_forms_attribute_list -%> <% attributes.each do | attribute, name, form_element | -%> <% css_class_id = "#{@object.class.to_s.underscore}_#{@object.id}_#{attribute}" -%> <tr> <td valign="top"> <div class='<%= "attribute_name attribute_#{attribute} form_element_#{form_element}" -%>' > <%= h(name) -%> </div> </td> <td valign="top"> <div class='<%= "attribute_value attribute_#{attribute} form_element_#{form_element}" -%>' > <span id="<%= css_class_id -%>" > <% if form_element == :associated -%> <%= render :partial => "inline_forms/list", :locals => { :parent_class => @object.class, :parent_id => @object.id, :attribute => attribute } %> <% else -%> <%= send("#{form_element}_show", @object, attribute) -%> <% end -%> </span> </div> </td> </tr> <% end -%> </table>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inline_forms-0.9.3 | app/views/inline_forms/_show.html.erb |