<commit_before><div class="bank_partner_form">
	<%= form_for([:admin, @bank_partner]) do |b_p_builder|%>

	<div class="field">
		<%= b_p_builder.label :name, "Bank Partner Name:" %>
		<%= b_p_builder.text_field :name %>
	</div>

	<div class="field">
	    <%= b_p_builder.label "Select Associated Cards" %><br>
		<%= b_p_builder.collection_check_boxes(:card_ids, Card.all, :id, :name)  do |box| %>
		  <%= box.label class: "label_checkbox" do %>
		   <%= box.check_box + box.text %>
		  <% end %>
		<% end %>

	    <div class="bank_partner_new_cards">
		    <p>Add a new card</p>
		  	<%= b_p_builder.fields_for(:cards, @card) do |card_form| %>
		  	<%= card_form.label :name, "Card Name:" %>
		  	<%= card_form.text_field :name %><br>

		  	<%= card_form.label :credit_needed, "Credit Needed:" %>
		  	<%= card_form.text_field :credit_needed %><br>

		  	<%= card_form.label "Business Card:" %>
		  	<%= card_form.check_box :c_type %><br>

		  	<%= card_form.label :bonus, "Bonus Info:" %><br>
		  	<%= card_form.text_area :bonus %><br>

		  	<%= card_form.label :apr, "APR Raite:" %>
		  	<%= card_form.text_field :apr %><br>

		  	<%= card_form.label :balance_transfer_apr,  "Balance Transfer APR %:"%>
		  	<%= card_form.number_field :balance_transfer_apr %><br>

		  	<%= card_form.label :balance_transfer_period, "Balance Transfer Period (Months):"%>
		  	<%= card_form.number_field :balance_transfer_period %><br>

		  	<%= card_form.label :anual_fee, "Anual Fee $"%>
		  	<%= card_form.number_field :anual_fee %><br>

		  	<%= card_form.label :corp_url, "Corp URL:" %><br>
		  	<%= card_form.text_area :corp_url %><br>
		    
		    <%= card_form.label :category, "Select Category:"%>
		  	<%= card_form.collection_select(:category_id, Category.all, :id, :title, :include_blank => true ) %><br>
		  	<% end %>
		</div>
	</div>	

    <%= b_p_builder.submit %>
	<% end %>
</div><commit_msg>fixed bank_partner form in admin scope<commit_after><div class="bank_partner_form">
	<%= form_for([:admin, @bank_partner]) do |b_p_builder|%>

	<div class="field">
		<%= b_p_builder.label :name, "Bank Partner Name:" %>
		<%= b_p_builder.text_field :name %>
	</div>

	<div class="field">
	    <%= b_p_builder.label "Select Associated Cards" %><br>
		<%= b_p_builder.collection_check_boxes(:card_ids, Card.all, :id, :name)  do |box| %>
		  <%= box.label class: "label_checkbox" do %>
		   <%= box.check_box + box.text %>
		  <% end %>
		<% end %>

	    <div class="bank_partner_new_cards">
		    <p>Add a new card</p>
		  	<%= b_p_builder.fields_for(:cards, @card) do |card_builder| %>
		  	<%= card_builder.label :name, "Card Name:" %>
		  	<%= card_builder.text_field :name %><br>

		  	<%= card_builder.label :credit_needed, "Credit Needed:" %>
		  	<%= card_builder.text_field :credit_needed %><br>

		  	<%= card_builder.label "Business Card:" %>
		  	<%= card_builder.check_box :c_type %><br>

		  	<%= card_builder.label :bonus, "Bonus Info:" %><br>
		  	<%= card_builder.text_area :bonus %><br>

		  	<%= card_builder.label :apr, "APR Raite:" %>
		  	<%= card_builder.text_field :apr %><br>

		  	<%= card_builder.label :balance_transfer_apr,  "Balance Transfer APR %:"%>
		  	<%= card_builder.number_field :balance_transfer_apr %><br>

		  	<%= card_builder.label :balance_transfer_period, "Balance Transfer Period (Months):"%>
		  	<%= card_builder.number_field :balance_transfer_period %><br>

		  	<%= card_builder.label :anual_fee, "Anual Fee $"%>
		  	<%= card_builder.number_field :anual_fee %><br>

		  	<%= card_builder.label :corp_url, "Corp URL:" %><br>
		  	<%= card_builder.text_area :corp_url %><br>
		    
		    <%= card_form.label :category, "Select Category:"%>
		  	<%= card_form.collection_select(:category_id, Category.all, :id, :title, :include_blank => true ) %><br>
		  	<% end %>
		</div>
	</div>	

    <%= b_p_builder.submit %>
	<% end %>
</div>
{'fraction_non_alphanumeric': 0.19018087855297158, 'fraction_numerical': 0.0, 'mean_word_length': 3.7908415841584158, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 117, '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': '5206888', 'n_tokens_mistral': 1732, 'n_tokens_neox': 1473, 'n_words': 266}