Djangoプロジェクトの初期設定を追加。環境変数に基づく設定をsettings.pyに実装し、ASGIおよびWSGI設定ファイルを作成。expensesアプリを追加し、基本的なURLルーティングとテンプレートを整備。作業ログをdiary.mdに追記。
This commit is contained in:
17
templates/expenses/csv_upload.html
Normal file
17
templates/expenses/csv_upload.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}CSV取込{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section>
|
||||
<h2>CSV取込</h2>
|
||||
<div>
|
||||
<p>ここにDrag & Dropエリアを配置予定。</p>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
<input type="file" name="csv_file">
|
||||
<button type="submit">アップロード</button>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
27
templates/expenses/expense_list.html
Normal file
27
templates/expenses/expense_list.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}明細編集{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section>
|
||||
<h2>明細編集</h2>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>利用日</th>
|
||||
<th>利用先</th>
|
||||
<th>金額</th>
|
||||
<th>店舗区分</th>
|
||||
<th>経費区分</th>
|
||||
<th>会社/家計</th>
|
||||
<th>備考</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="7">データはここに表示されます。</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
{% endblock %}
|
||||
27
templates/expenses/monthly_report.html
Normal file
27
templates/expenses/monthly_report.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}月次レポート{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section>
|
||||
<h2>月次レポート</h2>
|
||||
<form method="get">
|
||||
<label>
|
||||
年月
|
||||
<input type="month" name="target_month">
|
||||
</label>
|
||||
<button type="submit">表示</button>
|
||||
</form>
|
||||
<div>
|
||||
<h3>店舗別合計</h3>
|
||||
<p>集計結果をここに表示。</p>
|
||||
</div>
|
||||
<div>
|
||||
<h3>経費区分別合計</h3>
|
||||
<p>集計結果をここに表示。</p>
|
||||
</div>
|
||||
<div>
|
||||
<p>未分類件数の警告をここに表示。</p>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
17
templates/expenses/monthly_report_pdf.html
Normal file
17
templates/expenses/monthly_report_pdf.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!doctype html>
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>月次レポートPDF</title>
|
||||
<style>
|
||||
body { font-family: sans-serif; }
|
||||
h1, h2 { margin: 0 0 8px; }
|
||||
table { width: 100%; border-collapse: collapse; }
|
||||
th, td { border: 1px solid #333; padding: 6px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>月次レポート</h1>
|
||||
<p>PDF出力用テンプレートです。</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user