{% extends 'money/base.html' %}
{% block title %}Add Pockets{% endblock %}

{% block body_block %}

    {% if user.is_authenticated %}


        <form role="form" class="form-horizontal" method="post" action="/money/addPocketTransactions/">
            {% csrf_token %}
            <div class="alert alert-info" role="alert"><strong>Pocket Level Transactions</strong></div>
                <div class="row-fluid">
                <div class="span5">
                <div class="input-prepend ">
                    <span class="add-on">Date</span>
                    {{ form.PT_date }}
                </div>
                <a href="javascript:void(0)" class="todaylink ">Today</a>
                <a href="javascript:void(0)" class="nowlink ">Now</a>
                </div>
                <div class="span5 offset2 pull-right">
                <div class="input-prepend">
                    <span class="add-on">Description</span>
                    {{ form.PT_Description }}
                </div>
                </div>
                    </div>


            <hr>
            <div class="control-group controls-row">
                <div class="input-prepend">
                    <span class="add-on">Pocket From</span>
                    {{ form.PT_Pocket_From }}
                </div>

            </div>
            <div class="control-group controls-row">
                <div class="input-prepend">
                    <span class="add-on">Pocket To  &nbsp&nbsp&nbsp&nbsp</span>
                    {{ form.PT_Pocket_To }}
                </div>

            </div>
            <div class="control-group controls-row">
                <div class="input-prepend">
                    <span class="add-on">Amount &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</span>
                    {{ form.PT_Amount }}
                </div>

            </div>
        <hr>
        <input type="reset" class="btn btn-primary" name="reset" value="Reset"/>
        <input type="submit" id="addPocketTransactionSubmitButton" class="btn btn-primary pull-right" name="submit" value="Save"/>


        </form>

    {% 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 %}

{% endblock %}

