feat(postcards): add notes field to postcards with edit, detail, and truncated list display

This commit is contained in:
2026-07-06 21:07:28 +08:00
parent f6db3a4f55
commit 68c88a7910
6 changed files with 16 additions and 0 deletions

View File

@@ -33,6 +33,9 @@
<input type="date" name="receive_time" id="input-receive" value="{{ postcard.receive_time.strftime('%Y-%m-%d') if postcard and postcard.receive_time else '' }}">
</div>
<label>备注</label>
<textarea name="notes" rows="3" placeholder="可选备注信息">{{ postcard.notes if postcard else '' }}</textarea>
<div class="form-actions">
<button type="submit" class="btn btn-primary">保存</button>
<a href="/profiles/{{ profile.id }}/postcards" class="btn">取消</a>