Sha256: a06038d260ef8d4ab59a9a9afbf4b3697e84414b08d3cbf4637a75711f5e6e6a

Contents?: true

Size: 1.69 KB

Versions: 22

Compression:

Stored size: 1.69 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 | -%>
    <% css_class_id = "#{@object.class.name.underscore}_#{@object.id}_#{attribute}" -%>
    <tr>
      <td valign="top">
        <div class='<%= has_validations(@object, attribute) -%><%= "attribute_name attribute_#{attribute} form_element_#{form_element}" -%>' >
          <%= translated_attribute(@object, attribute) -%>
        </div>
        <% if has_validations(@object, attribute) %>
          <div class='validation_help_tooltip'>
            <div class='validation_help_content'>
              <%= validation_help_as_list_for(@object, attribute) -%>
            </div>
          </div>
        <% end -%>
      </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

22 entries across 22 versions & 1 rubygems

Version Path
inline_forms-1.3.28 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.27 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.26 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.25 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.24 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.23 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.22 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.21 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.20 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.19 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.18 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.17 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.16 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.15 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.14 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.13 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.12 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.11 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.10 lib/app/views/inline_forms/_show.html.erb
inline_forms-1.3.9 lib/app/views/inline_forms/_show.html.erb