<commit_before>@section('css')
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.6.5/css/bootstrap-select.min.css">
<link rel="stylesheet" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
@endsection

<div class="container">
	<div class="row">
		<div class="form-group col-xs-4">
			{!! Form::text('nin', null, 
				array('required', 
					  'class'=>'form-control', 
					  'placeholder'=> trans('manager.contacts.form.nin.label') )) !!}
		</div>
		<div class="form-group col-xs-7">
			{!! Form::email('email', null, 
				array('class'=>'form-control', 
					  'placeholder'=> trans('manager.contacts.form.email.label') )) !!}
		</div>
	</div>
	<div class="row">
		<div class="form-group col-xs-5">
			{!! Form::select('gender', ['M' => trans('manager.contacts.form.gender.male.label'), 'F' => trans('manager.contacts.form.gender.female.label')], 'M', ['class'=>'selectpicker'] ) !!}
		</div>
		<div class="form-group col-xs-6">
			{!! Form::date('birthdate', null, 
				array('required', 
					  'class'=>'form-control',
					  'id'=>'birthdate',
					  'placeholder'=> trans('manager.contacts.form.birthdate.label'),
					  'title'=> trans('manager.contacts.form.birthdate.label') )) !!}
		</div>
	</div>
	<div class="row">
		<div class="form-group col-xs-6">
			{!! Form::text('firstname', null, 
				array('required', 
					  'class'=>'form-control', 
					  'placeholder'=> trans('manager.contacts.form.firstname.label') )) !!}
		</div>
		<div class="form-group col-xs-5">
			{!! Form::text('lastname', null, 
				array('required', 
					  'class'=>'form-control', 
					  'placeholder'=> trans('manager.contacts.form.lastname.label') )) !!}
		</div>
	</div>
	<div class="row">
		<div class="form-group col-xs-4">
			{!! Form::select('mobile_country', Location::lists(), Location::get()->countryCode, ['class'=>'selectpicker'] ) !!}
		</div>
		<div class="form-group col-xs-7">
			{!! Form::text('mobile', null, 
				array('class'=>'form-control', 
					  'placeholder'=> trans('manager.contacts.form.mobile.label') )) !!}
		</div>
	</div>
	<div class="row">
		<div class="form-group col-xs-11">
			{!! Form::textarea('notes', null, 
				array('required', 
					  'class'=>'form-control', 
					  'placeholder'=> trans('manager.contacts.form.notes.label') )) !!}
		</div>
	</div>
	<div class="row">
		<div class="notes form-group col-xs-11">
			{!! Button::primary($submitLabel)->submit() !!}
		</div>
	</div>
</div>

@section('scripts')
	<script src="//code.jquery.com/jquery-1.10.2.js"></script>
	<script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>

	<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.6.5/js/bootstrap-select.min.js"></script>

	<script>
	$(document).ready(function(){ 
	  $("#birthdate").datepicker( { dateFormat: 'yy-mm-dd'} );
	  $('option[value="M"]').data("icon", "ion-male");
	  $('option[value="F"]').data("icon", "ion-female");
	  $('selectpicker').addClass('dropupAuto');
	  $('selectpicker').selectpicker();<commit_msg>Make Contact notes field optional<commit_after>@section('css')
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.6.5/css/bootstrap-select.min.css">
<link rel="stylesheet" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
@endsection

<div class="container">
	<div class="row">
		<div class="form-group col-xs-4">
			{!! Form::text('nin', null, 
				array('required', 
					  'class'=>'form-control', 
					  'placeholder'=> trans('manager.contacts.form.nin.label') )) !!}
		</div>
		<div class="form-group col-xs-7">
			{!! Form::email('email', null, 
				array('class'=>'form-control', 
					  'placeholder'=> trans('manager.contacts.form.email.label') )) !!}
		</div>
	</div>
	<div class="row">
		<div class="form-group col-xs-5">
			{!! Form::select('gender', ['M' => trans('manager.contacts.form.gender.male.label'), 'F' => trans('manager.contacts.form.gender.female.label')], 'M', ['class'=>'selectpicker'] ) !!}
		</div>
		<div class="form-group col-xs-6">
			{!! Form::date('birthdate', null, 
				array('required', 
					  'class'=>'form-control',
					  'id'=>'birthdate',
					  'placeholder'=> trans('manager.contacts.form.birthdate.label'),
					  'title'=> trans('manager.contacts.form.birthdate.label') )) !!}
		</div>
	</div>
	<div class="row">
		<div class="form-group col-xs-6">
			{!! Form::text('firstname', null, 
				array('required', 
					  'class'=>'form-control', 
					  'placeholder'=> trans('manager.contacts.form.firstname.label') )) !!}
		</div>
		<div class="form-group col-xs-5">
			{!! Form::text('lastname', null, 
				array('required', 
					  'class'=>'form-control', 
					  'placeholder'=> trans('manager.contacts.form.lastname.label') )) !!}
		</div>
	</div>
	<div class="row">
		<div class="form-group col-xs-4">
			{!! Form::select('mobile_country', Location::lists(), Location::get()->countryCode, ['class'=>'selectpicker'] ) !!}
		</div>
		<div class="form-group col-xs-7">
			{!! Form::text('mobile', null, 
				array('class'=>'form-control', 
					  'placeholder'=> trans('manager.contacts.form.mobile.label') )) !!}
		</div>
	</div>
	<div class="row">
		<div class="form-group col-xs-11">
			{!! Form::textarea('notes', null, 
				array('class'=>'form-control', 
					  'placeholder'=> trans('manager.contacts.form.notes.label') )) !!}
		</div>
	</div>
	<div class="row">
		<div class="notes form-group col-xs-11">
			{!! Button::primary($submitLabel)->submit() !!}
		</div>
	</div>
</div>

@section('scripts')
	<script src="//code.jquery.com/jquery-1.10.2.js"></script>
	<script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>

	<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.6.5/js/bootstrap-select.min.js"></script>

	<script>
	$(document).ready(function(){ 
	  $("#birthdate").datepicker( { dateFormat: 'yy-mm-dd'} );
	  $('option[value="M"]').data("icon", "ion-male");
	  $('option[value="F"]').data("icon", "ion-female");
	  $('selectpicker').addClass('dropupAuto');
	  $('selectpicker').selectpicker();
{'fraction_non_alphanumeric': 0.2494407158836689, 'fraction_numerical': 0.010546500479386385, 'mean_word_length': 4.088617886178862, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 135, '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': '1208988', 'n_tokens_mistral': 2534, 'n_tokens_neox': 2234, 'n_words': 294}