{% extends "base.html" %}
+{% load i18n %}
{% block content %}
-{% if form.errors %}
- <p>Invalid credentials</p>
-{% endif %}
+<h3>
+UNRES server: ab initio simulations of protein structure <br>
+and dynamics by using the coarse-grained <a href="http://unres.pl">UNRES</a> model.
+</h3>
+<p>
+<p>
+Run a single job without login.
-<form method="post" action="{% url 'login' %}">
-{% csrf_token %}
-<table>
-<tr>
- <td>{{ form.username.label_tag }}</td>
- <td>{{ form.username }}</td>
-</tr>
-<tr>
- <td>{{ form.password.label_tag }}</td>
- <td>{{ form.password }}</td>
-</tr>
-</table>
+ <li class="list-group-item new-task-item task-item">
+ <form action="/add1/" method="post">
+ {% csrf_token %}
+ <div class="col-xs-1 form-group">
+ </div>
+ <div class="col-xs-10 form-group">
+ <input class="form-control" name="name" placeholder="Enter a new job name...">
+ </div>
+ <div class="col-xs-1 form-group">
+ <button type="submit" class="btn btn-link">
+ <span class="fa fa-check save-button"></span>
+ </button>
+ </div>
+ </form>
+ </li>
-<input type="submit" value="login" />
-<input type="hidden" name="next" value="{{ next }}" />
-</form>
-{% endblock %}
\ No newline at end of file
+<hr>
+{% if user.is_anonymous %}
+Register/login to run and save multiple jobs (optional).
+<div class="row">
+<div class="col-xs-6">
+<form method="post" action=".">
+ {% csrf_token %}
+ {{ form.as_p }}
+
+ <input type="submit" value="{% trans 'Log in' %}" />
+ <input type="hidden" name="next" value="{{ next }}" />
+</form>
+</div>
+<div class="col-xs-6">
+<p>
+<p>
+<p>{% trans "Forgot password" %}? <a href="{% url 'auth_password_reset' %}">{% trans "Reset it" %}</a>!</p>
+<p>{% trans "Not member" %}? <a href="{% url 'registration_register' %}">{% trans "Register" %}</a>!</p>
+</div>
+</div>
+{% endif %}
+<div class="col-xs-12">
+<img src="/static/LPE.png" class="img-responsive">
+</div>
+{% endblock %}