Sha256: 813bb199d3f81f1015664c88bddea84ed69bb9c632003032c2008dd75e80fe37

Contents?: true

Size: 1.36 KB

Versions: 15

Compression:

Stored size: 1.36 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, @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

15 entries across 15 versions & 1 rubygems

Version Path
inline_forms-0.9.19 app/views/inline_forms/_show.html.erb
inline_forms-0.9.18 app/views/inline_forms/_show.html.erb
inline_forms-0.9.17 app/views/inline_forms/_show.html.erb
inline_forms-0.9.16 app/views/inline_forms/_show.html.erb
inline_forms-0.9.15 app/views/inline_forms/_show.html.erb
inline_forms-0.9.14 app/views/inline_forms/_show.html.erb
inline_forms-0.9.13 app/views/inline_forms/_show.html.erb
inline_forms-0.9.12 app/views/inline_forms/_show.html.erb
inline_forms-0.9.11 app/views/inline_forms/_show.html.erb
inline_forms-0.9.10 app/views/inline_forms/_show.html.erb
inline_forms-0.9.9 app/views/inline_forms/_show.html.erb
inline_forms-0.9.8 app/views/inline_forms/_show.html.erb
inline_forms-0.9.7 app/views/inline_forms/_show.html.erb
inline_forms-0.9.6 app/views/inline_forms/_show.html.erb
inline_forms-0.9.4 app/views/inline_forms/_show.html.erb