<commit_before>{% extends "base_no_jq.html" %}

{% block content %}

{% if form.errors %}
<div class="alert alert-error">
Your username and password didn't match. Please try again.
</div>
{% endif %}

{% if user.is_authenticated %}


<div class="page-header">
	    <h1>You are already signed in.</h1>
		    </div>



<p><a href="{% url 'logout' %}"><button class="btn-large btn"><i class="icon-road"></i> Logout</button></a>

{% if next %}
	<a href="{{ next }}"><button type="submit" name="submit" value="Login" class="btn btn-large btn-primary">Continue <i class="icon-chevron-right icon-white"></i></button></a>
{% else %}
	<a href="{% url 'home' %}"><button type="submit" name="submit" value="Login" class="btn btn-large btn-primary">Continue <i class="icon-chevron-right icon-white"></i></button></a>
{% endif %}
</p>


{% else %}

<script>
	function disableSubmitButton()
	{
		document.getElementById('submit_button').disabled = true;
		return true;
	}
</script>

<form method="post" action="{% url 'login' %}" onsubmit="return disableSubmitButton()">
{% csrf_token %}
<div class="row">
<fieldset class="well span">
<h1>Please sign in</h1>
    <div class="form-actions" style="margin-bottom: 0px;">
		<strong><p style="margin-bottom: 0px;"><span id="pass1Message" class="confirmMessage">Email</span></p></strong>
	<div class="input-prepend">
		<span class="add-on">
			<i class="icon-user"></i>
		</span>
		<input type="email" class="span" name="username" id="id_username" value="" spellcheck="false" autocomplete="off" autocapitalize="off" autocorrect="off" placeholder="Email">
	</div>
	</br>
	<strong><p style="margin-bottom: 0px;"><span id="pass1Message" class="confirmMessage">Password</span></p></strong>
	<div class="input-prepend">
		<span class="add-on">
			<i class="icon-lock"></i>
		</span>
                <input type="password" class="span" name="password" id="id_password" spellcheck="false" autocomplete="off" autocapitalize="off" autocorrect="off" placeholder="Password">
        </div>
	<p></p>
	<p><button id="submit_button" type="submit" name="submit" value="Login" class="btn btn-primary btn-large"><i class="icon-user icon-white"></i> Sign in</button></p>
	<p></p>
	<p><a class="btn btn-success" href="{% url 'register' %}?next={{ trust_root }}"><i class="icon-pencil icon-white"></i> Register</a></p>
	<p>Forgot your password? </br>
	<a href="mailto:<EMAIL>?subject=Password reset for Sensible Data&body=My student number is ">Contact us</a> with your student number.</p>
    </div>
  </fieldset>
</div>
<input type="hidden" name="next" value="{{ next }}" />
</form>

{% endif %}
{% endblock %}<commit_msg>removed login button for application login<commit_after>{% extends "base_no_jq.html" %}

{% block content %}

{% if form.errors %}
<div class="alert alert-error">
Your username and password didn't match. Please try again.
</div>
{% endif %}


{% if user.is_authenticated %}


<div class="page-header">
	    <h1>You are already signed in.</h1>
		    </div>



<p><a href="{% url 'logout' %}"><button class="btn-large btn"><i class="icon-road"></i> Logout</button></a>

{% if next %}
	<a href="{{ next }}"><button type="submit" name="submit" value="Login" class="btn btn-large btn-primary">Continue <i class="icon-chevron-right icon-white"></i></button></a>
{% else %}
	<a href="{% url 'home' %}"><button type="submit" name="submit" value="Login" class="btn btn-large btn-primary">Continue <i class="icon-chevron-right icon-white"></i></button></a>
{% endif %}
</p>


{% else %}

<script>
	function disableSubmitButton()
	{
		document.getElementById('submit_button').disabled = true;
		return true;
	}
</script>

<form method="post" action="{% url 'login' %}" onsubmit="return disableSubmitButton()">
{% csrf_token %}
<div class="row">
<fieldset class="well span">
<h1>Please sign in</h1>
    <div class="form-actions" style="margin-bottom: 0px;">
		<strong><p style="margin-bottom: 0px;"><span id="pass1Message" class="confirmMessage">Email</span></p></strong>
	<div class="input-prepend">
		<span class="add-on">
			<i class="icon-user"></i>
		</span>
		<input type="email" class="span" name="username" id="id_username" value="" spellcheck="false" autocomplete="off" autocapitalize="off" autocorrect="off" placeholder="Email">
	</div>
	</br>
	<strong><p style="margin-bottom: 0px;"><span id="pass1Message" class="confirmMessage">Password</span></p></strong>
	<div class="input-prepend">
		<span class="add-on">
			<i class="icon-lock"></i>
		</span>
                <input type="password" class="span" name="password" id="id_password" spellcheck="false" autocomplete="off" autocapitalize="off" autocorrect="off" placeholder="Password">
        </div>
	<p></p>
	<p><button id="submit_button" type="submit" name="submit" value="Login" class="btn btn-primary btn-large"><i class="icon-user icon-white"></i> Sign in</button></p>
	<p></p>
	<div id="register_button"><p><a class="btn btn-success" href="{% url 'register' %}?next={{ trust_root }}"><i class="icon-pencil icon-white"></i> Register</a></p></div>
	<p>Forgot your password? </br>
	<a href="mailto:<EMAIL>?subject=Password reset for Sensible Data&body=My student number is ">Contact us</a> with your student number.</p>
    </div>
  </fieldset>
</div>
<input type="hidden" name="next" value="{{ next }}" />
</form>
<script>
	var is_dtu_collector = false;
	if (navigator.userAgent == 'dk.dtu.imm.datacollector2013') is_dtu_collector = true;
	if (is_dtu_collector) {
		register_button = document.getElementById('register_button');
		register_button.style.display = 'none';
	}
</script>

{% endif %}
{% endblock %}
{'fraction_non_alphanumeric': 0.21539560635827826, 'fraction_numerical': 0.003929273084479371, 'mean_word_length': 5.392694063926941, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 0, '>': 183, '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': '6537716', 'n_tokens_mistral': 2021, 'n_tokens_neox': 1870, 'n_words': 432}