Sha256: 8509208526deef7dbdbd2aed5f3b14cd56fa96c575aae7caa6cfbee2cf264e0b
Contents?: true
Size: 1.66 KB
Versions: 16
Compression:
Stored size: 1.66 KB
Contents
<table cellspacing="0" cellpadding="0" style="height: 0"> <tr> <th valign="top"> <div class="object_presentation" > <%= h(@object._presentation) -%> </div> </th> <th valign="top"> <div class="close_link" > <%= close_link(@object, @update_span) -%> </div> </th> </tr> <% attributes = @inline_forms_attribute_list || @object.inline_forms_attribute_list -%> <% attributes.each do | attribute, name, form_element | -%> <% if cancan_disabled? || can?(:read, @object, attribute) %> <% css_class_id = "#{@object.class.name.underscore}_#{@object.id}_#{attribute}" -%> <tr> <td valign="top" class="<%= 'has_validations ' if @object.has_validations_for?(attribute) -%>" validation-hint="<%= validation_hints_as_list_for(@object, attribute) -%>"> <div class='<%= "attribute_name attribute_#{attribute} form_element_#{form_element}" -%>' > <%= @object.class.human_attribute_name(attribute) -%> </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 -%> <% end -%> </table>
Version data entries
16 entries across 16 versions & 1 rubygems