Skip to content

Instantly share code, notes, and snippets.

@taka2
Created October 28, 2008 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taka2/20364 to your computer and use it in GitHub Desktop.
Save taka2/20364 to your computer and use it in GitHub Desktop.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
<style type = "text/css">
body, th, td, input, select
{
font-size: 7pt;
}
</style>
</head>
<body>
{{user.email}}
<p>
<form action="/regist" method="post">
<table>
<tr>
<td>Kamoku:</td>
<td>
<select name = "kamoku">
{% for kamoku in kamoku_list %}
<option value = "{{kamoku.kamoku}}">{{kamoku.kamokuName}}
{% endfor %}
</select>
</td>
</tr>
<tr>
<td>Amount:</td>
<td><input type = "text" name = "kingaku" istyle = "4"></td>
</tr>
<tr>
<td>Date:</td>
<td><input type = "text" name = "date" value = "{{today}}" istyle = "4"></td>
</tr>
<tr>
<td>Memo:</td>
<td><input type = "text" name = "memo"></td>
</tr>
<tr>
<td colspan = "2"><input type="submit" value="Submit"></td>
</tr>
</table>
</form>
<p>
This Month's total income/outgo/total: {{income}}/{{outgo}}/{{total}}<br>
<p>
<table border = "1">
<tr>
<th>Category</th>
<th width = "60">Amount</th>
<th>Memo</th>
<th width = "30">Date</th>
<th>x</th>
</tr>
{% for family_budget in family_budgets %}
<tr>
<td>{{ family_budget.kamokuName|escape }}</td>
<td>{{ family_budget.kingaku }}</td>
<td>{{ family_budget.content|escape }}</td>
<td>{{ family_budget.targetDate}}</td>
<td>
<form name = "form1" action = "/delete" method = "post">
<input type = "hidden" name = "id" value = "{{ family_budget.id }}">
<input type = "submit" value = "x">
</form>
</td>
</tr>
{% endfor %}
</table>
<p>
<form name = "form2" method = "get">
<input type = "text" name = "year_month" value = "{{ thisMonth }}">
<input type = "button" value = "Download Csv" onClick = "location.href='/csv_download?year_month=' + document.form2.year_month.value">
<input type = "button" value = "Display Pie Chart" onClick = "location.href='/pie_chart?year_month=' + document.form2.year_month.value">
</form>
<a href = "/index_kamoku">Edit Kamoku List</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment