<commit_before>{% extends "dst/base.html" %}
{% load i18n  %}
{% block content %}

<form name="factorform" method="post">
{{ formset.management_form }}    
<div class="span-18">
	<div class="push-1 span-12 append-5">
		<p>
			The first step in using the Sanitation Decision Support tool is to provide answers on the questions below
			, which together provide information on your specific situation. You can select more than one answer in each 
			group. You can click on an answer to get additional information. 
		</p>
	</div>

	<div class="push-1 span-8 first">
        {% for form, factor, change in zipped_formlist %}
            {% if change %}
                {% if not forloop.first %}
                </ul>
                {% endif %}
                <h2><a href="{% url factor_help 'factor' factor.id %}" class="fancy">{{factor.factor|capfirst}}</a></h2>
                <ul style="list-style-type:none;">
            {% endif %}

			<li>
                {{form.id}}{{form.criterion}}{{form.applicable}}
                <a class="small fancy" href="{% url factor_help 'criterion' form.instance.criterion.id %}" target="_blank">{{form.instance.criterion|capfirst}}</a>
            </li>
        {% endfor %}
        </ul>
	</div>
    
	<div class="push-1 span-8 last">
		<h2>Help</h2>
		- <a href="{% url help %}" class="fancy">Why use the tool?</a><br><br />
		- <a href="{% url demo %}" class="fancy">Demonstration</a>
	</div>

	{% if help_item %}
	    <h3>Item info</h3>
	    <p style="font-weight:bold">{{help_item.info_heading}}</p>
	    <p>{{help_item.info_text}}</p>
	{% endif %}

</div>
</form>
<div class="push-1 span-16 append-1 first last">
	<p style="text-align:center;">
		<a class="red awesome" style="margin-right:10px; float:left;"
			href="{% url reset_all %}">{% trans 'Reset' %}</a>
		<a class="grey awesome" style="margin-right:10px; float:left;"
			href="{% url start %}">{% trans '&larr; Back' %}</a>
		<a class="aqua awesome" href="javascript:document.factorform.submit();" 
			onclick="this.blur();" style="margin-left:10px; float:right;">{% trans 'Continue &rarr;' %}</a>
	</p>
</div>
{% endblock content %}
{% block js %}
{{block.super}}
<script type="text/javascript" src="{{MEDIA_URL}}fancybox/fancybox.js"></script>
{% endblock js %}

{% block jquery_ready %}
{{block.super}}
jQ("a.fancy").fancybox();
{% endblock jquery_ready %}	


<commit_msg>Removed back button on first page.<commit_after>{% extends "dst/base.html" %}
{% load i18n  %}
{% block content %}

<form name="factorform" method="post">
{{ formset.management_form }}    
<div class="span-18">
	<div class="push-1 span-12 append-5">
		<p>
			The first step in using the Sanitation Decision Support tool is to provide answers on the questions below
			, which together provide information on your specific situation. You can select more than one answer in each 
			group. You can click on an answer to get additional information. 
		</p>
	</div>

	<div class="push-1 span-8 first">
        {% for form, factor, change in zipped_formlist %}
            {% if change %}
                {% if not forloop.first %}
                </ul>
                {% endif %}
                <h2><a href="{% url factor_help 'factor' factor.id %}" class="fancy">{{factor.factor|capfirst}}</a></h2>
                <ul style="list-style-type:none;">
            {% endif %}

			<li>
                {{form.id}}{{form.criterion}}{{form.applicable}}
                <a class="small fancy" href="{% url factor_help 'criterion' form.instance.criterion.id %}" target="_blank">{{form.instance.criterion|capfirst}}</a>
            </li>
        {% endfor %}
        </ul>
	</div>
    
	<div class="push-1 span-8 last">
		<h2>Help</h2>
		- <a href="{% url help %}" class="fancy">Why use the tool?</a><br><br />
		- <a href="{% url demo %}" class="fancy">Demonstration</a>
	</div>

	{% if help_item %}
	    <h3>Item info</h3>
	    <p style="font-weight:bold">{{help_item.info_heading}}</p>
	    <p>{{help_item.info_text}}</p>
	{% endif %}

</div>
</form>
<div class="push-1 span-16 append-1 first last">
	<p style="text-align:center;">
		<a class="red awesome" style="margin-right:10px; float:left;"
			href="{% url reset_all %}">{% trans 'Reset' %}</a>
		<a class="aqua awesome" href="javascript:document.factorform.submit();" 
			onclick="this.blur();" style="margin-left:10px; float:right;">{% trans 'Continue &rarr;' %}</a>
	</p>
</div>
{% endblock content %}
{% block js %}
{{block.super}}
<script type="text/javascript" src="{{MEDIA_URL}}fancybox/fancybox.js"></script>
{% endblock js %}

{% block jquery_ready %}
{{block.super}}
jQ("a.fancy").fancybox();
{% endblock jquery_ready %}	



{'fraction_non_alphanumeric': 0.19288469781397344, 'fraction_numerical': 0.011573081868838405, 'mean_word_length': 3.1410825199645074, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 99, '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': '6319662', 'n_tokens_mistral': 1739, 'n_tokens_neox': 1535, 'n_words': 387}