Sha256: 4e650dcb54a6e8908f13b8fddb39e9be044da8c28ab105866921eaf553877a30

Contents?: true

Size: 1.38 KB

Versions: 44

Compression:

Stored size: 1.38 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 ||= @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

44 entries across 44 versions & 1 rubygems

Version Path
inline_forms-1.1.19 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.1.18 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.1.17 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.1.16 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.1.15 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.1.13 app/views/inline_forms/_show.html.erb
inline_forms-1.1.12 app/views/inline_forms/_show.html.erb
inline_forms-1.1.11 app/views/inline_forms/_show.html.erb
inline_forms-1.1.10 app/views/inline_forms/_show.html.erb
inline_forms-1.1.9 app/views/inline_forms/_show.html.erb
inline_forms-1.1.8 app/views/inline_forms/_show.html.erb
inline_forms-1.1.7 app/views/inline_forms/_show.html.erb
inline_forms-1.1.6 app/views/inline_forms/_show.html.erb
inline_forms-1.1.5 app/views/inline_forms/_show.html.erb
inline_forms-1.1.4 app/views/inline_forms/_show.html.erb
inline_forms-1.1.3 app/views/inline_forms/_show.html.erb
inline_forms-1.1.2 app/views/inline_forms/_show.html.erb
inline_forms-1.1.1 app/views/inline_forms/_show.html.erb
inline_forms-1.1.0 app/views/inline_forms/_show.html.erb
inline_forms-1.0.19 app/views/inline_forms/_show.html.erb