<commit_before><section class="overlay" ng-if="showCreateModal" ng-click="closeCreateModal()"></section>

<section data-ng-controller="ListFormsController as ctrl" data-ng-init="findAll()" class="container">
	<br>
	<div class="row">
		<div ng-click="openCreateModal()" class="col-xs-6 col-xs-offset-3 col-sm-4 col-sm-offset-1 col-md-3 col-md-offset-1 form-item create-new">
			<div class="title-row col-xs-12">
				<h4 class="fa fa-plus fa-6"></h4>
			</div>
			<div class="col-xs-12 details-row">
				
				<small class="list-group-item-text">
					Create a new form
				</small>

			</div>	
		</div>

		<form name="forms.createForm" class="col-xs-6 col-xs-offset-3 col-sm-4 col-sm-offset-1 col-md-3 col-md-offset-1 form-item create-new new-form" ng-if="showCreateModal">
			<div class="title-row row">
				    <div class="col-xs-5 field-title text-left"> Name </div>
				    <div class="col-xs-12 field-input">
						<input type="text" name="title" required ng-model="formTitle" ng-pattern="/^[a-zA-Z0-9 \-.]*$/" ng-minlength="4"/>
				    </div>
			</div>
			<div class="details-row row">			
			    <div class="col-xs-5 field-title text-left"> Language </div>
			    <div class="col-xs-12 field-input">
				    <div class="button custom-select">
						<select style="color:black;" name="language" required ng-model="formLanguage" ng-init="formLanguage = user.language">
							<option ng-repeat="language in languages" value="{{language}}">
								{{language}}
							</option>
				        </select>      
				    </div>
			    </div>
			</div>
			<div class="details-row submit row">			
			    <div class="col-xs-12 field-title text-center">
			    	<button class="btn btn-primary" ng-disabled="forms.createForm.$invalid" ng-click="createNewForm()">
			    		Create Form
			    	</button>
			    </div>
			</div>		
		</form>

		<div data-ng-repeat="form in myforms" 
            ng-style="{ 'background-color': form.design.colors.backgroundColor }"
            class="col-xs-6 col-xs-offset-3 col-sm-4 col-sm-offset-1 col-md-3 col-md-offset-1 form-item container">

			<div class="row">
				<span class="pull-right"> 
					<i style="cursor:pointer;" class="fa fa-trash-o" ng-click="removeForm($index)"></i>
					<i style="cursor:pointer;" class="fa fa-files-o" ng-click="duplicateForm($index)"></i>
				</span>
			</div>

			<div class="row">
			<a data-ng-href="#!/forms/{{form._id}}/admin/create"  class="title-row col-xs-12">
				<h4 class="list-group-item-heading" data-ng-bind="form.title"></h4>
			</a>
			</div>

			<div class="row footer">
				<div class="col-xs-12 details-row">
					
					<small class="list-group-item-text"><commit_msg>added color to form listings<commit_after><section class="overlay" ng-if="showCreateModal" ng-click="closeCreateModal()"></section>

<section data-ng-controller="ListFormsController as ctrl" data-ng-init="findAll()" class="container">
	<br>
	<div class="row">
		<div ng-click="openCreateModal()" class="col-xs-6 col-xs-offset-3 col-sm-4 col-sm-offset-1 col-md-3 col-md-offset-1 form-item create-new">
			<div class="title-row col-xs-12">
				<h4 class="fa fa-plus fa-6"></h4>
			</div>
			<div class="col-xs-12 details-row">
				
				<small class="list-group-item-text">
					Create a new form
				</small>

			</div>	
		</div>

		<form name="forms.createForm" class="col-xs-6 col-xs-offset-3 col-sm-4 col-sm-offset-1 col-md-3 col-md-offset-1 form-item create-new new-form" ng-if="showCreateModal">
			<div class="title-row row">
				    <div class="col-xs-5 field-title text-left"> Name </div>
				    <div class="col-xs-12 field-input">
						<input type="text" name="title" required ng-model="formTitle" ng-pattern="/^[a-zA-Z0-9 \-.]*$/" ng-minlength="4"/>
				    </div>
			</div>
			<div class="details-row row">			
			    <div class="col-xs-5 field-title text-left"> Language </div>
			    <div class="col-xs-12 field-input">
				    <div class="button custom-select">
						<select style="color:black;" name="language" required ng-model="formLanguage" ng-init="formLanguage = user.language">
							<option ng-repeat="language in languages" value="{{language}}">
								{{language}}
							</option>
				        </select>      
				    </div>
			    </div>
			</div>
			<div class="details-row submit row">			
			    <div class="col-xs-12 field-title text-center">
			    	<button class="btn btn-primary" ng-disabled="forms.createForm.$invalid" ng-click="createNewForm()">
			    		Create Form
			    	</button>
			    </div>
			</div>		
		</form>

		<div data-ng-repeat="form in myforms" 
            ng-style="{ 'background-color': form.design.colors.backgroundColor, 'color': form.design.colors.answerColor }"
            class="col-xs-6 col-xs-offset-3 col-sm-4 col-sm-offset-1 col-md-3 col-md-offset-1 form-item container">

			<div class="row">
				<span class="pull-right"> 
					<i style="cursor:pointer;" class="fa fa-trash-o" ng-click="removeForm($index)"></i>
					<i style="cursor:pointer;" class="fa fa-files-o" ng-click="duplicateForm($index)"></i>
				</span>
			</div>

			<div class="row">
			<a data-ng-href="#!/forms/{{form._id}}/admin/create"  
                ng-style="{ 'color': form.design.colors.answerColor }"
                class="title-row col-xs-12">
				<h4 class="list-group-item-heading" data-ng-bind="form.title"></h4>
			</a>
			</div>

			<div class="row footer">
				<div class="col-xs-12 details-row">
					
					<small class="list-group-item-text">
{'fraction_non_alphanumeric': 0.19408740359897173, 'fraction_numerical': 0.015424164524421594, 'mean_word_length': 2.8990694345025054, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 123, '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': '6739424', 'n_tokens_mistral': 2251, 'n_tokens_neox': 1866, 'n_words': 364}