<commit_before>- form_for @resource_page, :html => { :multipart => true } do |f|
	= error_messages_for :resource_page
	%p
		= f.label :name
		%br/
		= f.text_field :name
		
	%p
		= f.label :description
		%br/
		= f.text_area :description
	
	%p
		= f.label :publication_status
		%br/
		= f.select :publication_status, ResourcePage::publication_states.collect { |c| c }

	%h2 Attachments
	#attachments
		= render :partial => @resource_page.attached_files
	
	%p
		%strong Attach Files:
	#new-attachments-form
		= render :partial => 'attached_file_form'
			
	%p
		= link_to_function "Attach another file", "resourcePage.attachAnotherFile()"
	%p
		= f.submit
		
:javascript
	var resourcePage = resourcePage || {};
	resourcePage.attachAnotherFile = function() {
		var newDiv = new Element('div');
		newDiv.innerHTML = "#{render(:partial => 'attached_file_form').gsub('"', '\"').gsub("\n", "")}";
		$('new-attachments-form').insert(newDiv);
	}<commit_msg>Update "publication status" dropdown for ResPages<commit_after>- form_for @resource_page, :html => { :multipart => true } do |f|
	= error_messages_for :resource_page
	%p
		= f.label :name
		%br/
		= f.text_field :name
		
	%p
		= f.label :description
		%br/
		= f.text_area :description
	
	%p
		= f.label :publication_status
		%br/
		= f.select :publication_status, ResourcePage.publication_states.map {|s| s.to_s}

	%h2 Attachments
	#attachments
		= render :partial => @resource_page.attached_files
	
	%p
		%strong Attach Files:
	#new-attachments-form
		= render :partial => 'attached_file_form'
			
	%p
		= link_to_function "Attach another file", "resourcePage.attachAnotherFile()"
	%p
		= f.submit
		
:javascript
	var resourcePage = resourcePage || {};
	resourcePage.attachAnotherFile = function() {
		var newDiv = new Element('div');
		newDiv.innerHTML = "#{render(:partial => 'attached_file_form').gsub('"', '\"').gsub("\n", "")}";
		$('new-attachments-form').insert(newDiv);
	}
{'fraction_non_alphanumeric': 0.15751295336787566, 'fraction_numerical': 0.0010362694300518134, 'mean_word_length': 4.190860215053763, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '7378136', 'n_tokens_mistral': 759, 'n_tokens_neox': 690, 'n_words': 141}