{{define "budget"}}
<!DOCTYPE html>
<html>
    <head>
        <title>Budgets</title>

        {{template "head"}}
    </head>
    <body>
        <div class="container" id="head">
            Budgeteer - {{.Token.GetName}}
        </div>
        <div class="container col-lg-12" id="content">
            {{range .GetBudgets}}
            <div class="budget-item">
                <a href="budgets/{{.ID}}">{{.Name}}</a>
                <span class="time"></span>
            </div>
            {{end}}
            <div class="budget-item">
                <a href="#newbudgetmodal" data-toggle="modal" data-target="#newbudgetmodal">New Budget</a>
                <span class="time"></span>
            </div>
        </div>
        {{template "budget-new"}}
    </body>
</html>
{{end}}