Sha256: fbf536e8908fa3602387e302ef9f657ed80b5609fcc1cf655df6b7c54d16d10e

Contents?: true

Size: 719 Bytes

Versions: 96

Compression:

Stored size: 719 Bytes

Contents

<%
parent_record = @record
associated = column.singular_association? ? [parent_record.send(column.name)].compact : parent_record.send(column.name).to_a
associated = associated.sort_by {|r| r.new_record? ? 99999999999 : r.id} unless column.association.options.has_key?(:order)

associated << column.association.klass.new if column.show_blank_record? associated
-%>
<h5><%= column.label -%> (<%= link_to_visibility_toggle(:default_visible => !column.collapsed) -%>)</h5>
<div <%= 'style="display: none;"' if column.collapsed -%>>
<%= render :partial => subform_partial_for_column(column), :locals => {:column => column, :parent_record => parent_record, :associated => associated} %>
</div>
<% @record = parent_record -%>

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
six-updater-web-0.24.15 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.24.14 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.24.13 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.24.12 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.24.11 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.24.10 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.24.9 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.24.8 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.24.7 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.24.6 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.24.5 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.24.4 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.24.3 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.24.2 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.24.1 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.24.0 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.23.7 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.23.6 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.23.5 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb
six-updater-web-0.23.4 lib/six-updater-web/vendor/plugins/active_scaffold/frontends/default/views/_form_association.html.erb