diff options
Diffstat (limited to 'src/templates/goals.html')
-rw-r--r-- | src/templates/goals.html | 75 |
1 files changed, 38 insertions, 37 deletions
diff --git a/src/templates/goals.html b/src/templates/goals.html index b5dbe42..e30aa62 100644 --- a/src/templates/goals.html +++ b/src/templates/goals.html @@ -8,44 +8,45 @@ </head> <body> - <h1>{{name}}'s Budget</h1> - <div> - <a href="/ledger"><button>Ledger</button></a> - <a href="/summary"><button>Summary</button></a> - <a href="/goals"><button class="bold">Goals</button></a> - <a href="/expected"><button>Expected</button></a> - <a href="/about"><button>About</button></a> - </div> - - <form method="post" action="/goals"> - <input name="name" placeholder="name"> - <input name="total" placeholder="total" type="number" step="0.01"> - <input type="submit" value="Add"> - </form> - <form method="post" action="/allocate"> - <span>Allocate funds</span> - <select name="name"> + <div class="main"> + <h1>{{name}}'s Budget</h1> + <form method="post" action="/goals"> + <input name="name" placeholder="name"> + <input name="total" placeholder="total" type="number" step="0.01"> + <input type="submit" value="Add"> + </form> + <form method="post" action="/allocate"> + <span>Allocate funds</span> + <select name="name"> + {{#each goals}} + <option value="{{this.name}}"> + {{ this.name }} + </option> + {{/each}} + </select> + <input name="amount" placeholder="amount" type="number"> + <input type="submit" value="Add"> + </form> + <table> + <tr> + <th></th> + <th>Name</th> + <th>Amount</th> + <th>Total</th> + <th>Remaining</th> + </tr> {{#each goals}} - <option value="{{this.name}}"> - {{ this.name }} - </option> + <tr> + <td class="table-index">{{this.index}}</td> + <td>{{this.name}}</td> + <td>{{this.amount}}</td> + <td>{{this.total}}</td> + <td>{{this.remaining}}</td> + </tr> {{/each}} - </select> - <input name="amount" placeholder="amount" type="number"> - <input type="submit" value="Add"> - </form> - <table> - <tr><th></th><th>Name</th><th>Amount</th><th>Total</th><th>Remaining</th></tr> - {{#each goals}} - <tr> - <td class="table-index">{{this.index}}</td> - <td>{{this.name}}</td> - <td>{{this.amount}}</td> - <td>{{this.total}}</td> - <td>{{this.remaining}}</td> - </tr> - {{/each}} - </table> + </table> + </div> + {{>navigation}} </body> -</html> +</html>
\ No newline at end of file |