<commit_before><#include "inc/common.ftl">

<#assign page={"title": rc.getMessage("checklist_title1")+ " - " + rc.getMessage("site_title"), "cssList": [rc.getContextUrl("/styles/vascan.css")], "cssPrintList": [rc.getContextUrl("/styles/print.css")], "javaScriptIncludeList": ["http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js", rc.getContextUrl("/js/jquery.scrollTo.js"), rc.getContextUrl("/js/vascan.js"), rc.getContextUrl("/js/vascan/checklist.js")]}>

<#assign currentPage="checklist"/>

<#include "inc/header.ftl">
<#include "inc/menu.ftl">

<h1>${rc.getMessage("checklist_title1")}</h1>
<form id="checklist_box" class="round custom_form" method="get">
	<ul class="custom_list" id="checklist_header">
		<li class="round big_button selected" id="selection_button">${rc.getMessage("checklist_msg1")}</li>
		<li class="round big_button" id="display_button">${rc.getMessage("checklist_msg2")}</li>
	</ul>

	<div id="selection_criteria" class="checklist_content">
		<p class="alignright">${rc.getMessage("checklist_msg4")}
		<input type="hidden" name="lang" value="${rc.getLocale().getLanguage()}" />
		<select name="habit">
			<option <#attempt>${habit.all}<#recover></#attempt> value="all">${rc.getMessage("checklist_option5")}</option>
			<option <#attempt>${habit.tree}<#recover></#attempt> value="tree">${rc.getMessage("habitus_tree")}</option>
			<option <#attempt>${habit.shrub}<#recover></#attempt> value="shrub">${rc.getMessage("habitus_shrub")}</option>
			<option <#attempt>${habit.herb}<#recover></#attempt> value="herb">${rc.getMessage("habitus_herb")}</option>
			<option <#attempt>${habit.vine}<#recover></#attempt> value="vine">${rc.getMessage("habitus_vine")}</option>
		</select>
		</p>

		<p>${rc.getMessage("checklist_msg3")}</p>
		<p>
			<select name="taxon" id="search_term">
				<option name="0" value="0">- ${rc.getMessage("checklist_msg9")} -</option>
			<#list data.taxons as taxon>
				<option ${taxon.selected} name="${taxon.id?c}" value="${taxon.id?c}">${taxon.calname} (${rc.getMessage("rank_"+taxon.rank?lower_case)})</option>
			</#list>
			</select>
		<p>
		
		<p>${rc.getMessage("checklist_msg5")}
		<select name="combination">
			<option <#attempt>${combination.anyof}<#recover></#attempt> value="anyof">${rc.getMessage("checklist_option2")}</option>
			<option <#attempt>${combination.allof}<#recover></#attempt> value="allof">${rc.getMessage("checklist_option1")}</option>
			<option <#attempt>${combination.only}<#recover></#attempt> value="only">${rc.getMessage("checklist_option3")}</option>
			<option <#attempt>${combination.only_ca}<#recover></#attempt>value="only_ca">${rc.getMessage("checklist_option4")}</option>
		</select>
		${rc.getMessage("checklist_msg6")}</p>
		
		<!-- regions -->
		<div id="checklist_distribution">
			<ul class="custom_list round canada">
				<li><span>${rc.getMessage("region_canada")}</span><input <#attempt>${data.territory.CANADA}<#recover></#attempt> type="checkbox" id="canada" /></li>
			</ul>
			<ul class="custom_list round pacific">
				<li><span><input type="checkbox" class="region"/>${rc.getMessage("region_pacific")}</span>${rc.getMessage("province_BC")}<input <#attempt>${data.territory.BC}<#recover></#attempt> type="checkbox" name="province" class="province" value="BC" /></li>
			</ul>
			<ul class="custom_list round prairies">
				<li><span><input type="checkbox" class="region"/>${rc.getMessage("region_prairies")}</span>${rc.getMessage("province_AB")}<input <#attempt>${data.territory.AB}<#recover></#attempt> type="checkbox" name="province" class="province" value="AB" /></li>
				<li><span></span>${rc.getMessage("province_SK")}<input <#attempt>${data.territory.SK}<#recover></#attempt> type="checkbox" name="province" class="province" value="SK" /></li>
				<li><span></span>${rc.getMessage("province_MB")}<input <#attempt>${data.territory.MB}<#recover></#attempt> type="checkbox" name="province" class="province" value="MB" /></li>
			</ul>
			<ul class="custom_list round central">
				<li><span><input type="checkbox" class="region"/>${rc.getMessage("region_central")}</span>${rc.getMessage("province_ON")}<input <#attempt>${territory.ON}<#recover></#attempt> type="checkbox" name="province" class="province" value="ON" /></li>
				<li><span></span>${rc.getMessage("province_QC")}<input <#attempt>${data.territory.QC}<#recover></#attempt> type="checkbox" name="province" class="province" value="QC" /></li>
			</ul>
			<ul class="custom_list round atlantic">
				<li><span><input type="checkbox" class="region"/>${rc.getMessage("region_atlantic")}</span>${rc.getMessage("province_NB")}<input <#attempt>${territory.NB}<#recover></#attempt> type="checkbox" name="province" class="province" value="NB" /></li>
				<li><span></span>${rc.getMessage("province_PE")}<input <#attempt>${data.territory.PE}<#recover></#attempt> type="checkbox" name="province" class="province" value="PE" /></li>
				<li><span></span>${rc.getMessage("province_NS")}<input <#attempt>${data.territory.NS}<#recover></#attempt> type="checkbox" name="province" class="province" value="NS" /></li>
				<li><span></span>${rc.getMessage("province_NL_N")}<input <#attempt>${data.territory.NL_N}<#recover></#attempt> type="checkbox" name="province" class="province" value="NL_N" /></li>
				<li><span></span>${rc.getMessage("province_NL_L")}<input <#attempt>${data.territory.NL_L}<#recover></#attempt> type="checkbox" name="province" class="province" value="NL_L" /></li>
				<li><span></span>${rc.getMessage("province_PM")}<input <#attempt>${data.territory.PM}<#recover></#attempt> type="checkbox" name="province" class="province" value="PM"/></li>
			</ul>
			<ul class="custom_list round arctic">
				<li><span><input type="checkbox" class="region">${rc.getMessage("region_arctic")}</span>${rc.getMessage("province_YT")}<input <#attempt>${territory.YT}<#recover></#attempt> type="checkbox" name="province" class="province" value="YT"/></li>
				<li><span></span>${rc.getMessage("province_NT")}<input <#attempt>${data.territory.NT}<#recover></#attempt> type="checkbox" name="province" class="province" value="NT"/></li>
				<li><span></span>${rc.getMessage("province_NU")}<input <#attempt>${data.territory.NU}<#recover></#attempt> type="checkbox" name="province" class="province" value="NU"/></li>
				<li><span></span>${rc.getMessage("province_GL")}<input <#attempt>${data.territory.GL}<#recover></#attempt> type="checkbox" name="province" class="province" value="GL"/></li>
			</ul>
		
			<!-- map -->
			<div class="map">
				  <object id="map" width="410" height="410" data="${rc.getContextUrl("/images/distribution_checklist.svg")}" type="image/svg+xml">${rc.getMessage("checklist_msg7")}</object>
			</div>
		</div>
		<p>${rc.getMessage("checklist_msg8")}</p><commit_msg>Fixed checklist builder for some provinces when page reloaded<commit_after><#include "inc/common.ftl">

<#assign page={"title": rc.getMessage("checklist_title1")+ " - " + rc.getMessage("site_title"), "cssList": [rc.getContextUrl("/styles/vascan.css")], "cssPrintList": [rc.getContextUrl("/styles/print.css")], "javaScriptIncludeList": ["http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js", rc.getContextUrl("/js/jquery.scrollTo.js"), rc.getContextUrl("/js/vascan.js"), rc.getContextUrl("/js/vascan/checklist.js")]}>

<#assign currentPage="checklist"/>

<#include "inc/header.ftl">
<#include "inc/menu.ftl">

<h1>${rc.getMessage("checklist_title1")}</h1>
<form id="checklist_box" class="round custom_form" method="get">
	<ul class="custom_list" id="checklist_header">
		<li class="round big_button selected" id="selection_button">${rc.getMessage("checklist_msg1")}</li>
		<li class="round big_button" id="display_button">${rc.getMessage("checklist_msg2")}</li>
	</ul>

	<div id="selection_criteria" class="checklist_content">
		<p class="alignright">${rc.getMessage("checklist_msg4")}
		<input type="hidden" name="lang" value="${rc.getLocale().getLanguage()}" />
		<select name="habit">
			<option <#attempt>${habit.all}<#recover></#attempt> value="all">${rc.getMessage("checklist_option5")}</option>
			<option <#attempt>${habit.tree}<#recover></#attempt> value="tree">${rc.getMessage("habitus_tree")}</option>
			<option <#attempt>${habit.shrub}<#recover></#attempt> value="shrub">${rc.getMessage("habitus_shrub")}</option>
			<option <#attempt>${habit.herb}<#recover></#attempt> value="herb">${rc.getMessage("habitus_herb")}</option>
			<option <#attempt>${habit.vine}<#recover></#attempt> value="vine">${rc.getMessage("habitus_vine")}</option>
		</select>
		</p>

		<p>${rc.getMessage("checklist_msg3")}</p>
		<p>
			<select name="taxon" id="search_term">
				<option name="0" value="0">- ${rc.getMessage("checklist_msg9")} -</option>
			<#list data.taxons as taxon>
				<option ${taxon.selected} name="${taxon.id?c}" value="${taxon.id?c}">${taxon.calname} (${rc.getMessage("rank_"+taxon.rank?lower_case)})</option>
			</#list>
			</select>
		<p>
		
		<p>${rc.getMessage("checklist_msg5")}
		<select name="combination">
			<option <#attempt>${combination.anyof}<#recover></#attempt> value="anyof">${rc.getMessage("checklist_option2")}</option>
			<option <#attempt>${combination.allof}<#recover></#attempt> value="allof">${rc.getMessage("checklist_option1")}</option>
			<option <#attempt>${combination.only}<#recover></#attempt> value="only">${rc.getMessage("checklist_option3")}</option>
			<option <#attempt>${combination.only_ca}<#recover></#attempt>value="only_ca">${rc.getMessage("checklist_option4")}</option>
		</select>
		${rc.getMessage("checklist_msg6")}</p>
		
		<!-- regions -->
		<div id="checklist_distribution">
			<ul class="custom_list round canada">
				<li><span>${rc.getMessage("region_canada")}</span><input <#attempt>${data.territory.CANADA}<#recover></#attempt> type="checkbox" id="canada" /></li>
			</ul>
			<ul class="custom_list round pacific">
				<li><span><input type="checkbox" class="region"/>${rc.getMessage("region_pacific")}</span>${rc.getMessage("province_BC")}<input <#attempt>${data.territory.BC}<#recover></#attempt> type="checkbox" name="province" class="province" value="BC" /></li>
			</ul>
			<ul class="custom_list round prairies">
				<li><span><input type="checkbox" class="region"/>${rc.getMessage("region_prairies")}</span>${rc.getMessage("province_AB")}<input <#attempt>${data.territory.AB}<#recover></#attempt> type="checkbox" name="province" class="province" value="AB" /></li>
				<li><span></span>${rc.getMessage("province_SK")}<input <#attempt>${data.territory.SK}<#recover></#attempt> type="checkbox" name="province" class="province" value="SK" /></li>
				<li><span></span>${rc.getMessage("province_MB")}<input <#attempt>${data.territory.MB}<#recover></#attempt> type="checkbox" name="province" class="province" value="MB" /></li>
			</ul>
			<ul class="custom_list round central">
				<li><span><input type="checkbox" class="region"/>${rc.getMessage("region_central")}</span>${rc.getMessage("province_ON")}<input <#attempt>${data.territory.ON}<#recover></#attempt> type="checkbox" name="province" class="province" value="ON" /></li>
				<li><span></span>${rc.getMessage("province_QC")}<input <#attempt>${data.territory.QC}<#recover></#attempt> type="checkbox" name="province" class="province" value="QC" /></li>
			</ul>
			<ul class="custom_list round atlantic">
				<li><span><input type="checkbox" class="region"/>${rc.getMessage("region_atlantic")}</span>${rc.getMessage("province_NB")}<input <#attempt>${data.territory.NB}<#recover></#attempt> type="checkbox" name="province" class="province" value="NB" /></li>
				<li><span></span>${rc.getMessage("province_PE")}<input <#attempt>${data.territory.PE}<#recover></#attempt> type="checkbox" name="province" class="province" value="PE" /></li>
				<li><span></span>${rc.getMessage("province_NS")}<input <#attempt>${data.territory.NS}<#recover></#attempt> type="checkbox" name="province" class="province" value="NS" /></li>
				<li><span></span>${rc.getMessage("province_NL_N")}<input <#attempt>${data.territory.NL_N}<#recover></#attempt> type="checkbox" name="province" class="province" value="NL_N" /></li>
				<li><span></span>${rc.getMessage("province_NL_L")}<input <#attempt>${data.territory.NL_L}<#recover></#attempt> type="checkbox" name="province" class="province" value="NL_L" /></li>
				<li><span></span>${rc.getMessage("province_PM")}<input <#attempt>${data.territory.PM}<#recover></#attempt> type="checkbox" name="province" class="province" value="PM"/></li>
			</ul>
			<ul class="custom_list round arctic">
				<li><span><input type="checkbox" class="region">${rc.getMessage("region_arctic")}</span>${rc.getMessage("province_YT")}<input <#attempt>${data.territory.YT}<#recover></#attempt> type="checkbox" name="province" class="province" value="YT"/></li>
				<li><span></span>${rc.getMessage("province_NT")}<input <#attempt>${data.territory.NT}<#recover></#attempt> type="checkbox" name="province" class="province" value="NT"/></li>
				<li><span></span>${rc.getMessage("province_NU")}<input <#attempt>${data.territory.NU}<#recover></#attempt> type="checkbox" name="province" class="province" value="NU"/></li>
				<li><span></span>${rc.getMessage("province_GL")}<input <#attempt>${data.territory.GL}<#recover></#attempt> type="checkbox" name="province" class="province" value="GL"/></li>
			</ul>
		
			<!-- map -->
			<div class="map">
				  <object id="map" width="410" height="410" data="${rc.getContextUrl("/images/distribution_checklist.svg")}" type="image/svg+xml">${rc.getMessage("checklist_msg7")}</object>
			</div>
		</div>
		<p>${rc.getMessage("checklist_msg8")}</p>
{'fraction_non_alphanumeric': 0.24788213627992634, 'fraction_numerical': 0.00427255985267035, 'mean_word_length': 7.804150453955901, 'pattern_counts': {'":': 8, '<': 491, '<?xml version=': 0, '>': 491, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2355706', 'n_tokens_mistral': 5267, 'n_tokens_neox': 4748, 'n_words': 553}