<commit_before>{include file='inc_head.txt' nav_tab='edit'}

<div class="container">
	<div class="row">
		<h2>Edit <span id="wof_name">{$wof_name|@escape}</span></h2>
	</div>
	<div class="row">
		<form action="{$cfg.abs_root_url}edit/" method="post" id="edit-form" data-crumb-save="{$crumb_save|@escape}">
		  {$crumb_save_fallback|crumb_input}
		  <input type="hidden" name="method" value="wof.save">
		  <input type="hidden" name="access_token" value="{$site_token|@escape}">
			<input type="hidden" name="wof_id" value="{$wof_id|@escape}">
			<div id="map"></div>
			<div id="where"></div>
			<div class="row">
				<div id="edit-properties" class="col-md-8 col">
					<h3>Properties</h3>
					<div class="headroom">
						{include file="inc_json_schema_field.txt" property=$schema_fields.properties.properties context='properties'}
					</div>
					<button type="submit" class="btn btn-primary">Save</button>
				</div>
				<div id="edit-sidebar" class="col-md-4 col">
					<h3>Hierarchy</h3>
					<input type="hidden" name="properties.wof:parent_id" value="{$wof_parent_id|@escape}">
					<input type="hidden" name="properties.wof:hierarchy" value="{$wof_hierarchy|@escape}">
					<div id="parent" class="headroom"></div>
					<div id="hierarchy"></div>
					<h3 class="headroom">Options</h3>
					<div id="edit-buttons">
						<button type="submit" class="btn btn-success" id="btn-current">This is <strong>current</strong></button>
						<button type="submit" class="btn btn-danger" id="btn-deprecated">This is <strong>deprecated</strong></button>
						<button type="submit" class="btn btn-info" id="btn-funky">This is <strong>funky</strong></button>
					</div>
					<ul id="edit-options">
						<li><a href="{$cfg.abs_root_url}id/{$wof_id|@escape}.geojson">Raw GeoJSON</a></li>
						<li><a href="{$cfg.abs_root_url}id/{$wof_id|@escape}.geojson?download=1">Download GeoJSON</a></li>
					</ul>
				</div>
			</div>
		</form>
		<div id="edit-status"></div>
		{include file='inc_log.txt'}
	</div>
</div>

{include file='inc_foot.txt'}<commit_msg>add a caveat about the options buttons<commit_after>{include file='inc_head.txt' nav_tab='edit'}

<div class="container">
	<div class="row">
		<h2>Edit <span id="wof_name">{$wof_name|@escape}</span></h2>
	</div>
	<div class="row">
		<form action="{$cfg.abs_root_url}edit/" method="post" id="edit-form" data-crumb-save="{$crumb_save|@escape}">
		  {$crumb_save_fallback|crumb_input}
		  <input type="hidden" name="method" value="wof.save">
		  <input type="hidden" name="access_token" value="{$site_token|@escape}">
			<input type="hidden" name="wof_id" value="{$wof_id|@escape}">
			<div id="map"></div>
			<div id="where"></div>
			<div class="row">
				<div id="edit-properties" class="col-md-8 col">
					<h3>Properties</h3>
					<div class="headroom">
						{include file="inc_json_schema_field.txt" property=$schema_fields.properties.properties context='properties'}
					</div>
					<button type="submit" class="btn btn-primary">Save</button>
				</div>
				<div id="edit-sidebar" class="col-md-4 col">
					<h3>Hierarchy</h3>
					<input type="hidden" name="properties.wof:parent_id" value="{$wof_parent_id|@escape}">
					<input type="hidden" name="properties.wof:hierarchy" value="{$wof_hierarchy|@escape}">
					<div id="parent" class="headroom"></div>
					<div id="hierarchy"></div>
					<h3 class="headroom">Options</h3>
					<div id="edit-buttons">
						<button type="submit" class="btn btn-success" id="btn-current">This is <strong>current</strong></button>
						<button type="submit" class="btn btn-danger" id="btn-deprecated">This is <strong>deprecated</strong></button>
						<button type="submit" class="btn btn-info" id="btn-funky">This is <strong>funky</strong></button>
					</div>

					<div class="caveat" style="margin-top:.5em;">
					<small>For now, you will still need to click the <span style="font-weight:700;">save</span> button below for these changes to stick.</small>
					</div>

					<ul id="edit-options">
						<li><a href="{$cfg.abs_root_url}id/{$wof_id|@escape}.geojson">Raw GeoJSON</a></li>
						<li><a href="{$cfg.abs_root_url}id/{$wof_id|@escape}.geojson?download=1">Download GeoJSON</a></li>
					</ul>
				</div>
			</div>
		</form>
		<div id="edit-status"></div>
		{include file='inc_log.txt'}
	</div>
</div>

{include file='inc_foot.txt'}
{'fraction_non_alphanumeric': 0.21129032258064517, 'fraction_numerical': 0.005990783410138249, 'mean_word_length': 4.780292942743009, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 143, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5296330', 'n_tokens_mistral': 1830, 'n_tokens_neox': 1570, 'n_words': 263}