<commit_before><fieldset>
	<legend>Asset Details</legend>
	{{#if date}}
		<div class="form-group">
			<label for="date">Date</label>
			<input type="date" class="form-control" id="date" name="date" value="{{formatDate date 'YYYY-MM-DD'}}" required>
		</div>
	{{/if}}
	<div class="form-group">
		<label for="title">Title</label>
		<input type="text" class="form-control" name="title" id="title" value="{{title}}" required>
	</div>
	<div class="form-group">
		<label for="description">Description</label>
		<textarea class="form-control" name="description" id="description" required>{{description}}</textarea>
	</div>
	<!--<div class="form-group">
		<label for="map_size">Map Size</label>
		<input type="number" class="form-control" name="map_size" id="map_size" value="{{map_size}}">
	</div>-->
</fieldset>
<fieldset>
	<legend>Attributes</legend>
	<div class="form-group">
		<div class="checkbox">
			<label><input type="checkbox" name="public" id="public" value="true" {{#if public}}checked{{/if}}> Public</label>
		</div>
	</div>
	<div class="form-group">
		<div class="radio">
			<label><input type="radio" name="type" id="type_sitrep" value="sitrep" {{#eq type "sitrep"}}checked{{/eq}} required> Situation Report</label>
		</div>
		<div class="radio">
			<label><input type="radio" name="type" id="type_map" value="map" {{#eq type "map"}}checked{{/eq}}> Map</label>
		</div>
	</div>
</fieldset>
<fieldset>
	<legend>Geo Data</legend>
	<div class="form-group">
		<label for="longitude">Longitude</label>
		<input type="number" class="form-control" name="longitude" id="longitude" value="{{longitude}}">
	</div>
	<div class="form-group">
		<label for="latitude">Latitude</label>
		<input type="number" class="form-control" name="latitude" id="latitude"  value="{{latitude}}">
	</div>
</fieldset>
<!--<fieldset>
	<legend>Thumbnail</legend>
	<div class="form-group">
		<label for="thumbnail_id">Thumbnail ID</label>
		<input type="text" class="form-control" name="thumbnail_id" id="thumbnail_id" value="{{thumbnail_id}}">
	</div>
	<strong>or</strong>
	<div class="form-group">
		<label for="thumbnail">Upload Thumbnail</label>
		<input type="file" class="form-control" name="thumbnail" id="thumbnail" accept="image/*">
	</div>
</fieldset>-->
<fieldset>
	<legend>File</legend>
	<!--<div class="form-group">
		<label for="filename">Filename</label>
		<input type="text" class="form-control" name="filename" id="filename" value="{{filename}}">
	</div>
	<strong>or</strong>-->
	<div class="form-group">
		<label for="file">Upload File</label>
		{{#if file}}<p>(<em>Current: {{file}}</em>)</p>{{/if}}
		<input type="file" class="form-control" name="file" id="file" size="50">
	</div>
	<strong>or</strong>
	<div class="form-group">
		<label for="link">URL</label>
		<input type="text" class="form-control" name="link" id="link" data-rule-url="true"  value="{{link}}">
	</div>
</fieldset>
<fieldset>
	<legend>Tags</legend>
	<div class="form-group">
		<label for="sector">Sector(s)</label>
		<select class="form-control" id="sector" name="sector" required multiple>
			{{#each opts.sectors}}
				<option value="{{this}}"
				{{#each ../sector}}
					{{#eq this ../this}}
						selected
					{{/eq}}
				{{/each}}
				>{{this}}</option>
			{{/each}}
		</select>
	</div>	
	<div class="form-group">
		<label for="extent">Extent(s)</label>
		<select class="form-control" id="extent" name="extent" required multiple>
			{{#each opts.extents}}
				<option value="{{this}}"
				{{#each ../extent}}
					{{#eq this ../this}}<commit_msg>Adding thumbnail to Edit Asset modal, closing #23<commit_after><fieldset>
	<legend>Asset Details</legend>
	{{#if date}}
		<div class="form-group">
			<label for="date">Date</label>
			<input type="date" class="form-control" id="date" name="date" value="{{formatDate date 'YYYY-MM-DD'}}" required>
		</div>
	{{/if}}
	<div class="form-group">
		<label for="title">Title</label>
		<input type="text" class="form-control" name="title" id="title" value="{{title}}" required>
	</div>
	<div class="form-group">
		<label for="description">Description</label>
		<textarea class="form-control" name="description" id="description" required>{{description}}</textarea>
	</div>
	<!--<div class="form-group">
		<label for="map_size">Map Size</label>
		<input type="number" class="form-control" name="map_size" id="map_size" value="{{map_size}}">
	</div>-->
</fieldset>
<fieldset>
	<legend>Attributes</legend>
	<div class="form-group">
		<div class="checkbox">
			<label><input type="checkbox" name="public" id="public" value="true" {{#if public}}checked{{/if}}> Public</label>
		</div>
	</div>
	<div class="form-group">
		<div class="radio">
			<label><input type="radio" name="type" id="type_sitrep" value="sitrep" {{#eq type "sitrep"}}checked{{/eq}} required> Situation Report</label>
		</div>
		<div class="radio">
			<label><input type="radio" name="type" id="type_map" value="map" {{#eq type "map"}}checked{{/eq}}> Map</label>
		</div>
	</div>
</fieldset>
<fieldset>
	<legend>Geo Data</legend>
	<div class="form-group">
		<label for="longitude">Longitude</label>
		<input type="number" class="form-control" name="longitude" id="longitude" value="{{longitude}}">
	</div>
	<div class="form-group">
		<label for="latitude">Latitude</label>
		<input type="number" class="form-control" name="latitude" id="latitude"  value="{{latitude}}">
	</div>
</fieldset>
<!--<fieldset>
	<legend>Thumbnail</legend>
	<div class="form-group">
		<label for="thumbnail_id">Thumbnail ID</label>
		<input type="text" class="form-control" name="thumbnail_id" id="thumbnail_id" value="{{thumbnail_id}}">
	</div>
	<strong>or</strong>
	<div class="form-group">
		<label for="thumbnail">Upload Thumbnail</label>
		<input type="file" class="form-control" name="thumbnail" id="thumbnail" accept="image/*">
	</div>
</fieldset>-->
<fieldset>
	<legend>File</legend>
	<!--<div class="form-group">
		<label for="filename">Filename</label>
		<input type="text" class="form-control" name="filename" id="filename" value="{{filename}}">
	</div>
	<strong>or</strong>-->
	<div class="form-group">
		{{#if file}}<p><b>Current:</b> <em>{{file}}</em></p>{{/if}}
		{{#if thumbnail}}<p><img src="/api/asset/{{_id}}/thumbnail/200"></p>{{/if}}
		<label for="file">{{#if file}}Replace{{else}}Upload{{/if}} File</label>
		<input type="file" class="form-control" name="file" id="file" size="50">
	</div>
	<strong>or</strong>
	<div class="form-group">
		<label for="link">URL</label>
		<input type="text" class="form-control" name="link" id="link" data-rule-url="true"  value="{{link}}">
	</div>
</fieldset>
<fieldset>
	<legend>Tags</legend>
	<div class="form-group">
		<label for="sector">Sector(s)</label>
		<select class="form-control" id="sector" name="sector" required multiple>
			{{#each opts.sectors}}
				<option value="{{this}}"
				{{#each ../sector}}
					{{#eq this ../this}}
						selected
					{{/eq}}
				{{/each}}
				>{{this}}</option>
			{{/each}}
		</select>
	</div>	
	<div class="form-group">
		<label for="extent">Extent(s)</label>
		<select class="form-control" id="extent" name="extent" required multiple>
			{{#each opts.extents}}
				<option value="{{this}}"
				{{#each ../extent}}
					{{#eq this ../this}}
{'fraction_non_alphanumeric': 0.24036722770899985, 'fraction_numerical': 0.0012519126443177077, 'mean_word_length': 5.506787330316742, 'pattern_counts': {'":': 0, '<': 256, '<?xml version=': 0, '>': 254, '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': '7132652', 'n_tokens_mistral': 2801, 'n_tokens_neox': 2557, 'n_words': 500}