{% extends "base.html" %}
{% load static %}

{% block content %}
<h2>Calculator</h2>
<div>
  Enter date in %Y-%m-%d format. For example for january 5th 2016 type 2016-01-05.
</div>
<form action="" method="post">
  {% csrf_token %}
  {% for field in form %}
  <div class="fieldWrapper">
    {{ field.errors }}
    {{ field.label_tag }} {{ field }}
    {% if field.help_text %}
    <p class="help">{{ field.help_text|safe }}</p>
    {% endif %}
  </div>
  {% endfor %}
  <input type="submit" value="Submit"/>
</form>
{% if  working_days%}
<h3>{{ working_days }} working days</h3>
{% endif %}
{% endblock content %}

