Sha256: 228c4f0752c540c3332e50937d2757cfc91070e49e60fc8b6f7de26f46877300

Contents?: true

Size: 963 Bytes

Versions: 40

Compression:

Stored size: 963 Bytes

Contents

<%
  column = if render_field.is_a? ActiveScaffold::DataStructures::Column
    render_field
  else
    active_scaffold_config.columns[render_field.to_sym] unless render_field.is_a? ActiveScaffold::DataStructures::Column
  end
  @rendered ||= Set.new
  return if @rendered.include? column.name
  @rendered << column.name
  if column_renders_as(column) == :subform
    options = {:is_subform => true, :field_class => "#{column.name}-sub-form"}
  else
    options = {:is_subform => false, :field_class => "#{column.name}-input"}
  end
-%>

ActiveScaffold.render_form_field('<%= source_id %>','<%= escape_javascript(render(:partial => form_partial_for_column(column), :locals => { :column => column, :scope => scope })) %>', <%= options.to_json.html_safe %>);
<%if column.update_columns && !column.update_columns.empty?%>
  <%=  render(:partial => "render_field", :collection => column.update_columns, :locals => {:source_id => source_id, :scope => scope})%>
<%end%>

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
active_scaffold-sequel-0.8.0 frontends/default/views/_render_field.js.erb
active_scaffold-sequel-0.7.1 frontends/default/views/_render_field.js.erb
active_scaffold-sequel-0.7.0 frontends/default/views/_render_field.js.erb
active_scaffold-sequel-0.6.2 frontends/default/views/_render_field.js.erb
active_scaffold-sequel-0.6.1 frontends/default/views/_render_field.js.erb
active_scaffold-sequel-0.6.0 frontends/default/views/_render_field.js.erb
active_scaffold-3.2.12 frontends/default/views/_render_field.js.erb
active_scaffold-3.2.11 frontends/default/views/_render_field.js.erb
active_scaffold-3.2.10 frontends/default/views/_render_field.js.erb
active_scaffold-3.2.9 frontends/default/views/_render_field.js.erb
active_scaffold-3.2.8 frontends/default/views/_render_field.js.erb
active_scaffold-3.2.7 frontends/default/views/_render_field.js.erb
active_scaffold-3.2.6 frontends/default/views/_render_field.js.erb
active_scaffold-3.2.5 frontends/default/views/_render_field.js.erb
active_scaffold-3.2.4 frontends/default/views/_render_field.js.erb
active_scaffold-3.2.3 frontends/default/views/_render_field.js.erb
active_scaffold-sequel-0.5.1 frontends/default/views/_render_field.js.erb
active_scaffold-sequel-0.5.0 frontends/default/views/_render_field.js.erb
active_scaffold-3.2.2 frontends/default/views/_render_field.js.erb
active_scaffold-3.2.1 frontends/default/views/_render_field.js.erb