DrCr/drcr/templates/general_journal/general_journal_edit.html

89 lines
2.7 KiB
HTML
Raw Normal View History

{# DrCr: Web-based double-entry bookkeeping framework
Copyright (C) 2022 Lee Yingtong Li (RunasSudo)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
#}
{% extends 'base.html' %}
{% block title %}{{ 'Edit' if transaction else 'New' }} general journal transaction{% endblock %}
{% block content %}
<h1 class="h2 my-4">{{ 'Edit' if transaction else 'New' }} general journal transaction</h1>
<form method="POST">
<table class="table">
<thead>
<tr>
<th>Date</th>
<th colspan="2">Description</th>
<th>Dr</th>
<th>Cr</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="date" name="dt" class="form-control"></td>
<td colspan="2"><input type="text" name="description" value="" class="form-control"></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td>
<div class="input-group">
<select class="form-select" name="sign" style="flex-grow:0;min-width:5em">
<option value="dr" selected>Dr</option>
{#<option value="cr">Cr</option>#}
{# FIXME: Multiple postings, etc. #}
</select>
<input type="text" name="account" class="form-control">
</div>
</td>
<td>
<div class="input-group">
<div class="input-group-text">$</div>
2022-12-24 19:45:34 +11:00
<input type="text" name="amount" value="" class="form-control">
</div>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td>
<div class="input-group">
<select class="form-select" name="sign" style="flex-grow:0;min-width:5em">
{#<option value="dr">Dr</option>#}
<option value="cr" selected>Cr</option>
</select>
<input type="text" name="account" class="form-control">
</div>
</td>
<td></td>
<td>
<div class="input-group">
<div class="input-group-text">$</div>
2022-12-24 19:45:34 +11:00
<input type="text" name="amount" value="" class="form-control">
</div>
</td>
</tr>
</tbody>
</table>
<div class="d-flex justify-content-end">
<button type="submit" class="btn btn-primary">Save</button>
</div>
</form>
{% endblock %}