Skip to content

Commit

Permalink
Fix bulk update
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed Nov 21, 2024
1 parent 1edf79a commit 991ddfb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions app/views/items/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -337,29 +337,29 @@
- if @item.bulk_deleteable[:countries].present?
%tr
%th= f.label :bulk_delete_country_ids, 'Countries'
%td= f.select :bulk_delete_country_ids, [], {},
{ data: { placeholder: 'Choose countries to delete', data: @item.bulk_deleteable[:countries].to_json, multiple: true }, class: 'select2' }
%td= f.select :bulk_delete_country_ids, [], { include_blank: true },
{ name: 'bulk_delete_country_ids[]', data: { placeholder: 'Choose countries to delete', data: @item.bulk_deleteable[:countries].to_json, multiple: true }, class: 'select2' }

- if @item.bulk_deleteable[:subject_languages].present?
%tr
%th= f.label :bulk_delete_subject_language_ids, 'Subject Languages'
%td= f.select :bulk_delete_subject_language_ids, [], {},
{ data: { placeholder: 'Choose subject languages to delete', data: @item.bulk_deleteable[:subject_languages].to_json, multiple: true }, class: 'select2' }
%td= f.select :bulk_delete_subject_language_ids, [], { include_blank: true },
{ name: 'bulk_delete_subject_language_ids[]', data: { placeholder: 'Choose subject languages to delete', data: @item.bulk_deleteable[:subject_languages].to_json, multiple: true }, class: 'select2' }

- if @item.bulk_deleteable[:content_languages].present?
%tr
%th= f.label :bulk_delete_content_language_ids, 'Content Languages'
%td= f.select :bulk_delete_content_language_ids, [], {},
{ data: { placeholder: 'Choose content languages to delete', data: @item.bulk_deleteable[:content_languages].to_json, multiple: true }, class: 'select2' }
%td= f.select :bulk_delete_content_language_ids, [], { include_blank: true },
{ name: 'bulk_delete_content_language_ids[]', data: { placeholder: 'Choose content languages to delete', data: @item.bulk_deleteable[:content_languages].to_json, multiple: true }, class: 'select2' }

- if @item.bulk_deleteable[:data_categories].present?
%tr
%th= f.label :bulk_delete_data_category_ids, 'Data Categories'
%td= f.select :bulk_delete_data_category_ids, [], {},
{ data: { placeholder: 'Choose data categories to delete', data: @item.bulk_deleteable[:data_categories].to_json, multiple: true }, class: 'select2' }
%td= f.select :bulk_delete_data_category_ids, [], { include_blank: true },
{ name: 'bulk_delete_data_category_ids[]', data: { placeholder: 'Choose data categories to delete', data: @item.bulk_deleteable[:data_categories].to_json, multiple: true }, class: 'select2' }

- if @item.bulk_deleteable[:data_types].present?
%tr
%th= f.label :bulk_delete_data_type_ids, 'Data Types'
%td= f.select :bulk_delete_data_type_ids, [], {},
{ data: { placeholder: 'Choose data types to delete', data: @item.bulk_deleteable[:data_types].to_json, multiple: true }, class: 'select2' }
%td= f.select :bulk_delete_data_type_ids, [], { include_blank: true },
{ name: 'bulk_delete_data_type_ids[]', data: { placeholder: 'Choose data types to delete', data: @item.bulk_deleteable[:data_types].to_json, multiple: true }, class: 'select2' }

0 comments on commit 991ddfb

Please sign in to comment.