{% extends 'money/base.html' %}

<!--
#-- ***************************************************************************
#--
#-- version 1.00    : 1 July 2014
#-- version 2.00    :   22-Aug-2014 :   Adding Bootstrap sb-admin-2 to the base-Template and doing changes here http://startbootstrap.com/template-overviews/sb-admin-2/
#-- version 2.01    :   2-Sept-2014 :   Bootstrapping add_expenditure.html
#-- version 2.07    :   3-Sept-2014 :   Fixing Table bootstrapping
#-- version 2.09    :   4-Sept-2014 :   add_expenditure - Link for Now below datetimepicker
#-- Authors - Paarth Batra
#--
#-- ***************************************************************************
-->

{% block title %}Add Expenditure{% endblock %}

{% block body_block %}
    <div class="span12">
        {% if user.is_authenticated %}
            <div class="row">
                <form role="form"  method="post"
                      action="/money/addTypesOfExpenditures/">
                    {% csrf_token %}
                    <div class="table-responsive table-scrollable">
                    <table border=10 class="table table-striped table-bordered table-hover ">
                    {{ formset.as_table }}
                    </table>
                        </div>
                    <input type="reset" class="btn btn-primary " name="reset" value="Reset"/>
                    <input type="submit" class="btn btn-primary pull-right" name="submit" value="Save"/>
                </form>
                <!--row-->
            </div>


        {% else %}
            <h1> Dont Try to be over smart - Log in here </h1>
            <ui>
                <li><a href="/money/register/">Register</a></li>
                <li><a href="/money/login/">Login</a></li>
            </ui>
        {% endif %}

        <!--span 12-->
    </div>
{% endblock %}

