<commit_before>@extends('layout/vocab_layout')

@section('content')
<section ng-controller="addVocabsCtrl" class="section swatch-white">
	<div class="container">
		<div class="row">
			<div class="col-md-12">
				<header class="section-text-shadow section-innder-shadow element-short-top element-short-bottom">
					<h1 class="hairline bordered-normal">
						@if($vocab)
						{{ $vocab->title }}
						@else
						Add a new Vocabulary
						@endif
					</h1>
				</header>
			</div>
		</div>
	</div>

	@if($vocab)
	<input type="hidden" type="text" value="{{ $vocab->id }}" id="vocab_id"/>
	<input type="hidden" type="text" value="{{ $vocab->slug }}" id="vocab_slug"/>
	@endif
	<div class="container" ng-if="!decide">
		<div class="row">
			<div class="col-md-12">
				<div class="panel swatch-gray">
					<div class="panel-heading">PoolParty Integration</div>
					<div class="panel-body">
						<div class="form-group">
							<label for="">PoolParty Search</label>
							<input type="text" class="form-control" placeholder="PoolParty ID" ng-model="project" typeahead="project as project.title for project in projects | filter:projectSearch($viewValue) | limitTo:8" typeahead-min-length="0">
							<p class="help-block">Search for a PoolParty Project to pre-fill form</p>
						</div>
						<div ng-if="project">
							<dl class="dl-horizontal">
								<dt>Title</dt> <dd>[[ project.title ]]</dd>
								<dt>PoolParty ID</dt> <dd>[[ project.id ]]</dd>
							</dl>
						</div>
					</div>
					<div class="panel-footer">
						<a href="" class="btn btn-primary" ng-click="populate(project)">Use this PoolParty</a>
					<!--	<a href="" class="btn btn-link" ng-click="skip()">Skip</a>
						<p class="help-block">Skipping will start a blank Vocabulary</p> -->
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="container" ng-if="decide">
		<form name="form.cms" novalidate>
			<div class="row">
				<div class="col-md-8">
					<div class="panel swatch-gray">
						<!-- <div class="panel-heading">Vocabulary Metadata</div> -->
						<div class="panel-body">
							<div class="form-group" ng-class="{ 'has-error' : form.cms.title.$invalid }">
								<label for="">Vocabulary Title</label>
								<input type="text" required class="form-control" ng-model="vocab.title" name="title" placeholder="Vocabulary Title">
								<p ng-show="form.cms.title.$invalid" class="help-block">Vocabulary Title is required.</p>
							</div>
							<div class="form-group">
								<label for="">Vocabulary Acronym</label>
								<input type="text" class="form-control" ng-model="vocab.acronym" name="acronym" placeholder="Vocabulary Acronym">
							</div>
							<div class="form-group" ng-class="{ 'has-error' : form.cms.description.$invalid }">
								<label for="">Vocabulary Description</label>
								<textarea class="form-control" ng-model="vocab.description" placeholder="Vocabulary Description" rows="10" required name="description"></textarea>
								<p ng-show="form.cms.description.$invalid" class="help-block">Vocabulary Description is required.</p>
							</div>
							<div class="form-group">
								<label for="">Vocabulary Licence</label>
								<select name="" id="" class="form-control" placeholder="vocab Licence" ng-options="lic for lic in licence" ng-model="vocab.licence"></select>
							</div>

							<div class="form-group" ng-class="{ 'has-error' : form.cms.creation_date.$invalid }">
								<label for="">Vocabulary Creation Date</label>
								<p class="input-group">
									<input type="text" class="form-control" name="creation_date" required ng-model="vocab.creation_date" placeholder="Vocabulary Creation Date" datepicker-popup="dd-MM-yyyy" is-open="opened" >
									<span class="input-group-btn">
										<button type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
									</span>
								</p>
								<p ng-show="form.cms.creation_date.$invalid" class="help-block">Vocabulary Creation Date is required.</p>
							</div>
							<div class="form-group">
								<label for="">Revision Cycle</label>
								<input type="text" class="form-control" ng-model="vocab.revision_cycle" placeholder="Revision Cycle"><commit_msg>fix calendar directive open status<commit_after>@extends('layout/vocab_layout')

@section('content')
<section ng-controller="addVocabsCtrl" class="section swatch-white">
	<div class="container">
		<div class="row">
			<div class="col-md-12">
				<header class="section-text-shadow section-innder-shadow element-short-top element-short-bottom">
					<h1 class="hairline bordered-normal">
						@if($vocab)
						{{ $vocab->title }}
						@else
						Add a new Vocabulary
						@endif
					</h1>
				</header>
			</div>
		</div>
	</div>

	@if($vocab)
	<input type="hidden" type="text" value="{{ $vocab->id }}" id="vocab_id"/>
	<input type="hidden" type="text" value="{{ $vocab->slug }}" id="vocab_slug"/>
	@endif
	<div class="container" ng-if="!decide">
		<div class="row">
			<div class="col-md-12">
				<div class="panel swatch-gray">
					<div class="panel-heading">PoolParty Integration</div>
					<div class="panel-body">
						<div class="form-group">
							<label for="">PoolParty Search</label>
							<input type="text" class="form-control" placeholder="PoolParty ID" ng-model="project" typeahead="project as project.title for project in projects | filter:projectSearch($viewValue) | limitTo:8" typeahead-min-length="0">
							<p class="help-block">Search for a PoolParty Project to pre-fill form</p>
						</div>
						<div ng-if="project">
							<dl class="dl-horizontal">
								<dt>Title</dt> <dd>[[ project.title ]]</dd>
								<dt>PoolParty ID</dt> <dd>[[ project.id ]]</dd>
							</dl>
						</div>
					</div>
					<div class="panel-footer">
						<a href="" class="btn btn-primary" ng-click="populate(project)">Use this PoolParty</a>
					<!--	<a href="" class="btn btn-link" ng-click="skip()">Skip</a>
						<p class="help-block">Skipping will start a blank Vocabulary</p> -->
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="container" ng-if="decide">
		<form name="form.cms" novalidate>
			<div class="row">
				<div class="col-md-8">
					<div class="panel swatch-gray">
						<!-- <div class="panel-heading">Vocabulary Metadata</div> -->
						<div class="panel-body">
							<div class="form-group" ng-class="{ 'has-error' : form.cms.title.$invalid }">
								<label for="">Vocabulary Title</label>
								<input type="text" required class="form-control" ng-model="vocab.title" name="title" placeholder="Vocabulary Title">
								<p ng-show="form.cms.title.$invalid" class="help-block">Vocabulary Title is required.</p>
							</div>
							<div class="form-group">
								<label for="">Vocabulary Acronym</label>
								<input type="text" class="form-control" ng-model="vocab.acronym" name="acronym" placeholder="Vocabulary Acronym">
							</div>
							<div class="form-group" ng-class="{ 'has-error' : form.cms.description.$invalid }">
								<label for="">Vocabulary Description</label>
								<textarea class="form-control" ng-model="vocab.description" placeholder="Vocabulary Description" rows="10" required name="description"></textarea>
								<p ng-show="form.cms.description.$invalid" class="help-block">Vocabulary Description is required.</p>
							</div>
							<div class="form-group">
								<label for="">Vocabulary Licence</label>
								<select name="" id="" class="form-control" placeholder="vocab Licence" ng-options="lic for lic in licence" ng-model="vocab.licence"></select>
							</div>

							<div class="form-group" ng-class="{ 'has-error' : form.cms.creation_date.$invalid }">
								<label for="">Vocabulary Creation Date</label>
								<p class="input-group">
									<input type="text" class="form-control" name="creation_date" required ng-model="vocab.creation_date" placeholder="Vocabulary Creation Date" datepicker-popup="dd-MM-yyyy" is-open="$parent.opened" >
									<span class="input-group-btn">
										<button type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
									</span>
								</p>
								<p ng-show="form.cms.creation_date.$invalid" class="help-block">Vocabulary Creation Date is required.</p>
							</div>
							<div class="form-group">
								<label for="">Revision Cycle</label>
								<input type="text" class="form-control" ng-model="vocab.revision_cycle" placeholder="Revision Cycle">
{'fraction_non_alphanumeric': 0.18756610647549654, 'fraction_numerical': 0.0025854977083088495, 'mean_word_length': 3.502645502645503, 'pattern_counts': {'":': 0, '<': 217, '<?xml version=': 0, '>': 223, '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': '2226905', 'n_tokens_mistral': 3607, 'n_tokens_neox': 2735, 'n_words': 567}