% excluded_columns ||= [] %> <% additional_columns ||= [] %> <% restricted_columns ||= {} %> <% nested_resource ||= false %> <% parent_resource ||= false %> <% back_link ||= false %> <% box_class ||= 'primary' %> <% show_columns ||= [] %> <% form_fields ||= (object.class.respond_to?('form_fields') ? object.class.form_fields : {}) %> <% form_ordered_fields ||= (form_fields.empty? ? object.class.column_names : form_fields.keys) %> <% if show_columns.empty? %> <% show_columns = form_ordered_fields - ['id', 'created_at', 'updated_at', 'deleted_at'] - excluded_columns + additional_columns %> <% end %> <%= simple_form_for(nested_resource ? [parent_resource, object] : object) do |f| %>