<commit_before><h2>Edit your organisation profile</h2>

<%= error_messages(@organization) %>

<%= form_for(@organization, :url => '/organizations', :html => {:class => 'form-horizontal', :multipart => true}) do |f| %>

	<div class='control-group'>
		<%= f.label :name, :class => 'control-label' %>
		<div class='controls'>
			<%= f.text_field :name, :class => 'input-xlarge' %>
		</div>
	</div>

	<div class='control-group'>
		<%= f.label :description, :class => 'control-label' %>
		<div class='controls'>
			<%= f.text_area :description, :class => 'input-xlarge', :rows => '8', :maxlength => @organization.character_limit %>
			<span class="help-block" id="limit"><%= "Limit of #{@organization.character_limit} characters" %></span>
			<script>
			$(document).ready(function() {
				var max = <%= "#{@organization.character_limit}" %>
				$('#limit').html('<span id="remaining">'+ max +'</span> characters remaining');
				$('#organization_description').keyup(function() {
					var len = $(this).val().length;
					var rem = max - len
					$('#remaining').html(rem);
				});
			});
			</script>
		</div>
	</div>
	
	<div class='control-group'>
		<%= f.label :email, :class => 'control-label' %>
		<div class='controls'>
			<%= f.text_field :email, :class => 'input-xlarge' %>
		</div>
	</div>

	<div class='control-group'>
		<%= f.label :url, :class => 'control-label' %>
		<div class='controls'><commit_msg>Adding explanatory text to organisation edit page<commit_after><h2>Edit your organisation profile</h2>

<p class="lead">
	Please add your organisation's details which will be added to our member directory once your membership is confirmed.
</p>

<%= error_messages(@organization) %>

<%= form_for(@organization, :url => '/organizations', :html => {:class => 'form-horizontal', :multipart => true}) do |f| %>

	<div class='control-group'>
		<%= f.label :name, :class => 'control-label' %>
		<div class='controls'>
			<%= f.text_field :name, :class => 'input-xlarge', :required => 'required' %>
		</div>
	</div>

	<div class='control-group'>
		<%= f.label :description, :class => 'control-label' %>
		<div class='controls'>
			<%= f.text_area :description, :class => 'input-xlarge', :rows => '8', :maxlength => @organization.character_limit, :required => 'required' %>
			<span class="help-block" id="limit"><%= "Limit of #{@organization.character_limit} characters" %></span>
			<script>
			$(document).ready(function() {
				var max = <%= "#{@organization.character_limit}" %>
				$('#limit').html('<span id="remaining">'+ max +'</span> characters remaining');
				$('#organization_description').keyup(function() {
					var len = $(this).val().length;
					var rem = max - len
					$('#remaining').html(rem);
				});
			});
			</script>
		</div>
	</div>
	
	<div class='control-group'>
		<%= f.label :email, :class => 'control-label' %>
		<div class='controls'>
			<%= f.text_field :email, :class => 'input-xlarge' %>
		</div>
	</div>

	<div class='control-group'>
		<%= f.label :url, :class => 'control-label' %>
		<div class='controls'>
{'fraction_non_alphanumeric': 0.22586999343401182, 'fraction_numerical': 0.001969796454366382, 'mean_word_length': 4.271626297577854, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 99, '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': '4875766', 'n_tokens_mistral': 1166, 'n_tokens_neox': 997, 'n_words': 226}