{% extends "template.html" %}
{% block title%}{{title}}{% endblock %}
{% block breadcrumbs %}{{block.super}}<li>{{title}}</li>{% endblock %}
{% block content %}
<form method="POST" id="calculator-form">
    {% if description %}
        <div style="font-style: italic">{{description}}</div>
    {% endif %}
    <table border="0">
    {{form.as_table}}
    <tr><td colspan="2"><input type="submit" value="Calculate"/></td></tr>
    </table>
</form>
{% if result %}
<table border="0">
    {% for k,v in result %}
    <tr><td><b>{{k}}</b></td><td>{{v}}</td></tr>
    {% endfor %}
</table>
{% endif %}
{% endblock %}

