Sha256: 38e171813cb377e82908f593d0ffc46e54625c64f810438d62c010e4afb224e2

Contents?: true

Size: 957 Bytes

Versions: 2

Compression:

Stored size: 957 Bytes

Contents

<%
  scope ||= nil
  column_options = active_scaffold_input_options(column, scope)
  attributes = field_attributes(column, @record)
  if local_assigns[:col_class].present?
    attributes[:class] = "#{attributes[:class]} #{col_class}"
  end
%>
<%= tag :dl, attributes, true %>
  <dt>
    <label for="<%= column_options[:id] %>"><%= column.label %></label>
  </dt>
  <dd>
  <% unless local_assigns[:only_value] %>
    <%=raw active_scaffold_input_for column, scope %>
  <% else %>
    <%= content_tag :span, get_column_value(@record, column), column_options.except(:name) %>
    <%= hidden_field :record, column.association ? column.association.foreign_key : column.name, column_options -%>
  <% end %>
  <% if column.update_columns -%>
    <%= loading_indicator_tag(:action => :render_field, :id => params[:id]) %>
  <% end -%>
  <% if column.description.present? -%>
    <span class="description"><%= column.description %></span>
  <% end -%>
  </dd>
</dl>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_scaffold-3.3.0.rc3 app/views/active_scaffold_overrides/_form_attribute.html.erb
active_scaffold-3.3.0.rc2 app/views/active_scaffold_overrides/_form_attribute.html.erb