<commit_before><!--

This template renders a form, with use of the autoform package. It acts either as a insert form
or as a edit form.

================================================================================================
Params:
================================================================================================
id			- Pass the id attribute of the html form tag.
doc			- The document being edited.
type 		- Type of form; insert, update or remove.

-->

<template name="ReportForm">
	{{#autoForm collection="Reports" id=this.id type=this.type doc=this.doc style="margin: 0 20px;"}}

		<h2>Om prosjektet</h2>

		<fieldset>
		    <legend>Generelt</legend>
		    {{> afQuickField name='project.name' id="name" placeholder="schemaLabel"}}
		   	{{> afQuickField name='project.projectNumber' id="project-num" placeholder="schemaLabel"}}
		   	{{> afQuickField name='project.sector' id="sector" placeholder="schemaLabel"}}

		</fieldset>

		<fieldset>
			<legend>Lokasjon</legend>
			<p>Velg ett sted med dobbel museklikk. Fjern sted med enkelt museklikk</p>
			{{>MapView state='reportLocationPicker'}}

			{{> afQuickField name='project.location.name' id="location" placeholder="schemaLabel"}}
		</fieldset>

		<fieldset>
			<legend>Prosjektbeskrivelse</legend>
			{{> afQuickField name='project.projectDescription.short' id="project-desc-short" placeholder="schemaLabel" rows="5"}}<commit_msg>Fixed map instructions. It was the oposite of what it actually is.<commit_after><!--

This template renders a form, with use of the autoform package. It acts either as a insert form
or as a edit form.

================================================================================================
Params:
================================================================================================
id			- Pass the id attribute of the html form tag.
doc			- The document being edited.
type 		- Type of form; insert, update or remove.

-->

<template name="ReportForm">
	{{#autoForm collection="Reports" id=this.id type=this.type doc=this.doc style="margin: 0 20px;"}}

		<h2>Om prosjektet</h2>

		<fieldset>
		    <legend>Generelt</legend>
		    {{> afQuickField name='project.name' id="name" placeholder="schemaLabel"}}
		   	{{> afQuickField name='project.projectNumber' id="project-num" placeholder="schemaLabel"}}
		   	{{> afQuickField name='project.sector' id="sector" placeholder="schemaLabel"}}

		</fieldset>

		<fieldset>
			<legend>Lokasjon</legend>
			<p>Velg ett sted med enkelt museklikk. Fjern sted med dobbelt museklikk</p>
			{{>MapView state='reportLocationPicker'}}

			{{> afQuickField name='project.location.name' id="location" placeholder="schemaLabel"}}
		</fieldset>

		<fieldset>
			<legend>Prosjektbeskrivelse</legend>
			{{> afQuickField name='project.projectDescription.short' id="project-desc-short" placeholder="schemaLabel" rows="5"}}
{'fraction_non_alphanumeric': 0.255024255024255, 'fraction_numerical': 0.004158004158004158, 'mean_word_length': 5.473094170403588, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 49, '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': '1775806', 'n_tokens_mistral': 925, 'n_tokens_neox': 813, 'n_words': 214}