<commit_before><%= render :partial => 'admin/shared/product_sub_menu' %>

<%= render :partial => 'admin/shared/product_tabs', :locals => {:current => "Downloadables"} %>

<div class="yui-g">

  <div class="yui-u first">
	<% form_for(:downloadable, :url => { :controller => 'downloadables', :action => 'create' }, :html => { :multipart => true }) do |f| %>
	  	<%=f.error_messages%>
	  	<fieldset>
			<legend>New downloadable file</legend>
			<% f.field_container :name do %>
				<%= f.label :name, t("filename") %> <span class="required">*</span> <br/>
				<%= f.file_field :attachment %>
		  <% end %> 
		
			<% f.field_container :title do %>
				<%= f.label t("title") %><span> <sup>Defaults to filename</sup></span><br/>
				<%= f.text_field :title %>
		  <% end %>
	
			<% f.field_container :description do %>
				<%= f.label t("description") %><br/>
				<%= f.text_field :description %>
		  <% end %>
		  
		  <% f.field_container :viewable_id do %>
  		  <% if @product.has_variants? %><commit_msg>views fixes<commit_after><%= render :partial => 'spree/admin/shared/product_sub_menu' %>

<%= render :partial => 'spree/admin/shared/product_tabs', :locals => {:current => "Downloadables"} %>

<div class="yui-g">

  <div class="yui-u first">
	<% form_for(:downloadable, :url => { :controller => 'downloadables', :action => 'create' }, :html => { :multipart => true }) do |f| %>
	  	<%=f.error_messages%>
	  	<fieldset>
			<legend>New downloadable file</legend>
			<% f.field_container :name do %>
				<%= f.label :name, t("filename") %> <span class="required">*</span> <br/>
				<%= f.file_field :attachment %>
		  <% end %> 
		
			<% f.field_container :title do %>
				<%= f.label t("title") %><span> <sup>Defaults to filename</sup></span><br/>
				<%= f.text_field :title %>
		  <% end %>
	
			<% f.field_container :description do %>
				<%= f.label t("description") %><br/>
				<%= f.text_field :description %>
		  <% end %>
		  
		  <% f.field_container :viewable_id do %>
  		  <% if @product.has_variants? %>
{'fraction_non_alphanumeric': 0.22101090188305253, 'fraction_numerical': 0.0, 'mean_word_length': 3.5472972972972974, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2361936', 'n_tokens_mistral': 856, 'n_tokens_neox': 695, 'n_words': 139}