From 9a5506a7122b12f4527c19f091c8f05b0f11eeb6 Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Tue, 29 Nov 2011 12:43:11 -0800 Subject: [PATCH] delete unused files --- .../#_horizontal_subform_header.html.erb | 17 -------- .../#_horizontal_subform_record.html.erb | 41 ------------------- 2 files changed, 58 deletions(-) delete mode 100644 app/views/domains/#_horizontal_subform_header.html.erb delete mode 100644 app/views/domains/#_horizontal_subform_record.html.erb diff --git a/app/views/domains/#_horizontal_subform_header.html.erb b/app/views/domains/#_horizontal_subform_header.html.erb deleted file mode 100644 index 702fc46..0000000 --- a/app/views/domains/#_horizontal_subform_header.html.erb +++ /dev/null @@ -1,17 +0,0 @@ -<%# diferentiate create/update subform columns %> - - - - <% - readonly = (@record.readonly? or not @record.authorized_for?(:crud_type => :update)) - crud_type = @record.new_record? ? :create : (readonly ? :read : :update) - config = active_scaffold_config_for(record.class) - columns = @record.new_record? ? config.create.columns : config.update.columns - columns.each :for => record.class, :crud_type => crud_type, :flatten => true do |column| - hidden = column_renders_as(column) == :hidden - next unless in_subform?(column, parent_record) - -%> - "> - <% end -%> - - diff --git a/app/views/domains/#_horizontal_subform_record.html.erb b/app/views/domains/#_horizontal_subform_record.html.erb deleted file mode 100644 index 70d4eb2..0000000 --- a/app/views/domains/#_horizontal_subform_record.html.erb +++ /dev/null @@ -1,41 +0,0 @@ -<%# diferentiate create/update subform columns %> - -<% - record_column = column - readonly = (@record.readonly? or not @record.authorized_for?(:crud_type => :update)) - crud_type = @record.new_record? ? :create : (readonly ? :read : :update) - show_actions = false - config = active_scaffold_config_for(@record.class) - options = active_scaffold_input_options(config.columns[@record.class.primary_key], scope) - tr_id = "association-#{options[:id]}" -%> - -<% columns = @record.new_record? ? config.create.columns : config.update.columns %> -<% columns.each :for => @record.class, :crud_type => crud_type, :flatten => true do |column| %> -<% - next unless in_subform?(column, parent_record) - show_actions = true - column = column.clone - column.form_ui ||= :select if column.association --%> -