<commit_before><%= form.fieldset do %>
  <%= form.text_field :title, :required => false %>

	<li><%= radio_button_tag 'content[list_type]', "by_tags", @content.list_type=='by_tags', :class => 'list_type' %> By Tags</li>
	<li><%= radio_button_tag 'content[list_type]', "related", @content.list_type=='related', :class => 'list_type' %> Related to a product</li>

	<div id="list_type_by_tags" class="list_type_option" style="display: none;">
	  <%= form.select :tag_ids, Breeze::Commerce::Tag.map {|c|[ c.name, c.id ] }, { :required => true, :label => "Tags"}, :class => "multiselect", :multiple => "multiple" %>

	  <p>Select product tags to list (leave empty to list all products)</p>
	</div>

	<div id="list_type_related" class="list_type_option" style="display: none;">
	 	<%= form.select :product_id, Breeze::Commerce::Product.published.unarchived.map {|c|[ c.title, c.id ] }, { :required => false, :label => "Product"} %>
	  <p>The list will show items related to the selected product.</p>
	</div>

<% end %>



<script type="text/javascript" charset="utf-8">
	  $(function() {

	    $('.multiselect').multiSelect();

	    $('#list_type_<%= @content.list_type %>').show();

	    $('input.list_type').change(function(e) {
	    	$('.list_type_option').hide();
				$( '#list_type_' + $(this).val() ).show();
		});
  });
</script>

<commit_msg>Fixed an issue which prevented editing product lists<commit_after><%= form.fieldset do %>
  <%= form.text_field :title, :required => false %>

	<li><%= radio_button_tag 'content[list_type]', "by_tags", @content.list_type=='by_tags', :class => 'list_type' %> By Tags</li>
	<li><%= radio_button_tag 'content[list_type]', "related", @content.list_type=='related', :class => 'list_type' %> Related to a product</li>

	<div id="list_type_by_tags" class="list_type_option" style="display: none;">
	  <%= form.select :tag_ids, Breeze::Commerce::Tag.all.map {|c|[ c.name, c.id ] }, { :required => true, :label => "Tags"}, :class => "multiselect", :multiple => "multiple" %>

	  <p>Select product tags to list (leave empty to list all products)</p>
	</div>

	<div id="list_type_related" class="list_type_option" style="display: none;">
	 	<%= form.select :product_id, Breeze::Commerce::Product.published.unarchived.map {|c|[ c.title, c.id ] }, { :required => false, :label => "Product"} %>
	  <p>The list will show items related to the selected product.</p>
	</div>

<% end %>



<script type="text/javascript" charset="utf-8">
	  $(function() {

	    $('.multiselect').multiSelect();

	    $('#list_type_<%= @content.list_type %>').show();

	    $('input.list_type').change(function(e) {
	    	$('.list_type_option').hide();
				$( '#list_type_' + $(this).val() ).show();
		});
  });
</script>


{'fraction_non_alphanumeric': 0.2200659099231051, 'fraction_numerical': 0.0007323324789454412, 'mean_word_length': 4.850107066381156, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2279314', 'n_tokens_mistral': 1030, 'n_tokens_neox': 942, 'n_words': 205}