<commit_before>@(create: Boolean,
	todayUS: String,
	todayLocal: String,  
	datasetRow: com.querydsl.core.Tuple, 
	subjectsDataset: java.util.List[com.querydsl.core.Tuple],
	attachmentsDataset: java.util.List[com.querydsl.core.Tuple], 
	typeInformationList: java.util.List[com.querydsl.core.Tuple], 
	creatorList: java.util.List[com.querydsl.core.Tuple], 
	rightsList: java.util.List[com.querydsl.core.Tuple], 
	useLimitationList: java.util.List[com.querydsl.core.Tuple],
	mdFormatList: java.util.List[com.querydsl.core.Tuple],
	sdfUS: java.text.SimpleDateFormat,
	sdfLocal: java.text.SimpleDateFormat,
	subjectList: java.util.List[com.querydsl.core.Tuple],
	textSearch: String,
	supplierSearch: String,
	statusSearch: String,
	mdFormatSearch: String,
	dateStartSearch: String,
	dateEndSearch: String
)

@import play.i18n._
@import models.QMetadata.metadata
@import models.QTypeInformation.typeInformation
@import models.QCreator.creator
@import models.QRights.rights
@import models.QUseLimitation.useLimitation
@import models.QMdFormat.mdFormat
@import models.QSubject.subject
@import models.QMdAttachment.mdAttachment
@import models.QMdSubject.mdSubject
@import models.QTypeInformationLabel.typeInformationLabel
@import models.QCreatorLabel.creatorLabel
@import models.QRightsLabel.rightsLabel
@import models.QUseLimitationLabel.useLimitationLabel
@import models.QMdFormatLabel.mdFormatLabel
@import models.QSubjectLabel.subjectLabel

@main(if(create) {"Geoportaal: toevoegen metadata"} else {"Geoportaal: wijzigen metadata"}, textSearch, supplierSearch, statusSearch, 
	mdFormatSearch, dateStartSearch, dateEndSearch, routes.Assets.versioned("javascripts/add-record.js").url) {
	<div class="welkom">
		<p class="welkom">Vul de velden zo volledig mogelijk in (* = verplicht)</p>
	</div>
	
	@helper.form(action = if(create) {routes.Metadata.createSubmit(textSearch, supplierSearch, statusSearch, mdFormatSearch, dateStartSearch, dateEndSearch)} else {
		routes.Metadata.editSubmit(datasetRow.get(metadata.uuid), textSearch, supplierSearch, statusSearch, mdFormatSearch, dateStartSearch, dateEndSearch)}, 'enctype -> "multipart/form-data", 
		'class -> "form-horizontal beheer-formulier", 'id -> "js-form") {
		<div class="form-group">
			<label class="col-sm-3 control-label">Titel*</label>
			<div class="col-sm-7">
				<input class="form-control js-mandatory" id="js-title" type="text" data-toggle="tooltip" data-placement="top" data-field="titel"
				maxlength="200" title="Vul de titel in" name="title" value="@if(!create) {@datasetRow.get(metadata.title)}">
			</div>
			<div class="col-sm-2">
				<button class="btn btn-default" data-trigger="focus" data-toggle="popover" data-placement="top" type="button" tabindex="-1"
				data-content="@Messages.get("form.title.tooltip")">
					<span class="glyphicon glyphicon-info-sign"></span>
				</button>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">Omschrijving*</label>
			<div class="col-sm-7">
				<textarea class="form-control js-mandatory" id="js-description" rows="8" data-toggle="tooltip" data-placement="top" data-field="omschrijving"
				title="Vul de omschrijving in" name="description">@if(!create) {@datasetRow.get(metadata.description)}</textarea>
			</div>
			<div class="col-sm-2">
				<button class="btn btn-default" data-trigger="focus" data-toggle="popover" data-placement="top" type="button" tabindex="-1"
				data-content="@Messages.get("form.description.tooltip")">
					<span class="glyphicon glyphicon-info-sign"></span>
				</button>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">Locatie*</label>
			<div class="col-sm-7">
				<input class="form-control js-mandatory" id="js-location" type="text" data-toggle="tooltip" data-placement="top" data-field="locatie"<commit_msg>Set description on maxlength 100.000<commit_after>@(create: Boolean,
	todayUS: String,
	todayLocal: String,  
	datasetRow: com.querydsl.core.Tuple, 
	subjectsDataset: java.util.List[com.querydsl.core.Tuple],
	attachmentsDataset: java.util.List[com.querydsl.core.Tuple], 
	typeInformationList: java.util.List[com.querydsl.core.Tuple], 
	creatorList: java.util.List[com.querydsl.core.Tuple], 
	rightsList: java.util.List[com.querydsl.core.Tuple], 
	useLimitationList: java.util.List[com.querydsl.core.Tuple],
	mdFormatList: java.util.List[com.querydsl.core.Tuple],
	sdfUS: java.text.SimpleDateFormat,
	sdfLocal: java.text.SimpleDateFormat,
	subjectList: java.util.List[com.querydsl.core.Tuple],
	textSearch: String,
	supplierSearch: String,
	statusSearch: String,
	mdFormatSearch: String,
	dateStartSearch: String,
	dateEndSearch: String
)

@import play.i18n._
@import models.QMetadata.metadata
@import models.QTypeInformation.typeInformation
@import models.QCreator.creator
@import models.QRights.rights
@import models.QUseLimitation.useLimitation
@import models.QMdFormat.mdFormat
@import models.QSubject.subject
@import models.QMdAttachment.mdAttachment
@import models.QMdSubject.mdSubject
@import models.QTypeInformationLabel.typeInformationLabel
@import models.QCreatorLabel.creatorLabel
@import models.QRightsLabel.rightsLabel
@import models.QUseLimitationLabel.useLimitationLabel
@import models.QMdFormatLabel.mdFormatLabel
@import models.QSubjectLabel.subjectLabel

@main(if(create) {"Geoportaal: toevoegen metadata"} else {"Geoportaal: wijzigen metadata"}, textSearch, supplierSearch, statusSearch, 
	mdFormatSearch, dateStartSearch, dateEndSearch, routes.Assets.versioned("javascripts/add-record.js").url) {
	<div class="welkom">
		<p class="welkom">Vul de velden zo volledig mogelijk in (* = verplicht)</p>
	</div>
	
	@helper.form(action = if(create) {routes.Metadata.createSubmit(textSearch, supplierSearch, statusSearch, mdFormatSearch, dateStartSearch, dateEndSearch)} else {
		routes.Metadata.editSubmit(datasetRow.get(metadata.uuid), textSearch, supplierSearch, statusSearch, mdFormatSearch, dateStartSearch, dateEndSearch)}, 'enctype -> "multipart/form-data", 
		'class -> "form-horizontal beheer-formulier", 'id -> "js-form") {
		<div class="form-group">
			<label class="col-sm-3 control-label">Titel*</label>
			<div class="col-sm-7">
				<input class="form-control js-mandatory" id="js-title" type="text" data-toggle="tooltip" data-placement="top" data-field="titel"
				maxlength="200" title="Vul de titel in" name="title" value="@if(!create) {@datasetRow.get(metadata.title)}">
			</div>
			<div class="col-sm-2">
				<button class="btn btn-default" data-trigger="focus" data-toggle="popover" data-placement="top" type="button" tabindex="-1"
				data-content="@Messages.get("form.title.tooltip")">
					<span class="glyphicon glyphicon-info-sign"></span>
				</button>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">Omschrijving*</label>
			<div class="col-sm-7">
				<textarea class="form-control js-mandatory" id="js-description" rows="8" data-toggle="tooltip" data-placement="top" data-field="omschrijving"
				maxlength="100000" title="Vul de omschrijving in" name="description">@if(!create) {@datasetRow.get(metadata.description)}</textarea>
			</div>
			<div class="col-sm-2">
				<button class="btn btn-default" data-trigger="focus" data-toggle="popover" data-placement="top" type="button" tabindex="-1"
				data-content="@Messages.get("form.description.tooltip")">
					<span class="glyphicon glyphicon-info-sign"></span>
				</button>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">Locatie*</label>
			<div class="col-sm-7">
				<input class="form-control js-mandatory" id="js-location" type="text" data-toggle="tooltip" data-placement="top" data-field="locatie"
{'fraction_non_alphanumeric': 0.15476499610490782, 'fraction_numerical': 0.005712801869644248, 'mean_word_length': 5.958446251129178, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 79, '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': '6428640', 'n_tokens_mistral': 2757, 'n_tokens_neox': 2554, 'n_words': 438}