More things before going to fix my backyard.
This commit is contained in:
1 parent
a980b1a9b1
commit
fe32c526eb
15 files changed
+199
-71
No files matched your search
@@ -53,6 +53,7 @@ CREATE TABLE IF NOT EXISTS accounts
|
||||
version INTEGER NOT NULL CHECK ( version >= 0 ),
|
||||
security INTEGER NOT NULL,
|
||||
account_type TEXT NOT NULL,
|
||||
label TEXT NOT NULL,
|
||||
|
||||
amount INTEGER NOT NULL,
|
||||
timestamp DATETIME NOT NULL,
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>id</th>
|
||||
<th>Label</th>
|
||||
<th>Amount</th>
|
||||
<th>Account Type</th>
|
||||
<th>Last Update</th>
|
||||
@@ -21,6 +22,7 @@
|
||||
<tr>
|
||||
<td><a href="/accounts/{{ account.id }}"><span uk-icon="info"></span></a></td>
|
||||
<td>{{ account.id }}</td>
|
||||
<td>{{ account.label }}</td>
|
||||
<td>{{ account.amount }}</td>
|
||||
<td style="font-variant: small-caps;">{{ account.account_type | replace("_", " ") | lower}}</td>
|
||||
<td>{{ account.last_update }}</td>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<form>
|
||||
<fieldset class="uk-fieldset">
|
||||
|
||||
<legend class="uk-legend">Create new item</legend>
|
||||
<br>
|
||||
<div class="uk-margin">
|
||||
<select name="event_type"
|
||||
class="uk-select"
|
||||
@@ -21,6 +21,7 @@
|
||||
<option value="create_security">Create Security</option>
|
||||
<option value="create_account">Create Account</option>
|
||||
<option value="emit_securities">Emit Securities</option>
|
||||
<option value="create_wire_transfer">Create Wire Transfer</option>
|
||||
</select>
|
||||
</div>
|
||||
<input type="hidden" name="initiator" value="bob le chef">
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
Ledger
|
||||
</a>
|
||||
<ul class="uk-navbar-nav">
|
||||
{% set nav_bar_items = [{'id': 'overview', 'label': 'Overview'},
|
||||
{% set nav_bar_items = [{'id': 'users', 'label': 'Users'},
|
||||
{'id': 'accounts', 'label': 'Accounts'},
|
||||
{'id': 'securities', 'label': 'Securities'},
|
||||
{'id': 'actions', 'label': 'Actions'}]%}
|
||||
|
||||
@@ -6,7 +6,17 @@
|
||||
<option value="{{ sec.id }}">{{ sec.name }} ({{ sec.symbol }}) </option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="uk-margin">
|
||||
<label class="uk-form-label"> Label
|
||||
<input class="uk-input"
|
||||
type="text"
|
||||
placeholder="For Bribes"
|
||||
aria-label="Default"
|
||||
name="event.CreateNewAccount.label"
|
||||
required>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
|
||||
<input type="hidden"
|
||||
name="event.CreateWireTransfer.drawer_user_id"
|
||||
value="{{ user.id }}">
|
||||
|
||||
|
||||
<div class="uk-margin">
|
||||
<label class="uk-form-label"> Drawer Account
|
||||
<select class="uk-select"
|
||||
name="event.CreateWireTransfer.emitter_account"
|
||||
id="event.CreateWireTransfer.emitter_account"
|
||||
hx-get="/partials/actions/accounts-by-security-selectors"
|
||||
hx-trigger="change,load"
|
||||
hx-target="#onetwothree"
|
||||
hx-vals="js:{'sec-id': document.getElementById('event.CreateWireTransfer.emitter_account').options[document.getElementById('event.CreateWireTransfer.emitter_account').selectedIndex].getAttribute('data-sec-id')}"
|
||||
hx-swap="innerHtml">
|
||||
{% for account in emitter_accounts %}
|
||||
<option value="{{ account.id }}" data-sec-id="{{ account.security.id }}">
|
||||
{{ account.security.name }} ({{ account.security.symbol }})
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="uk-margin">
|
||||
<label class="uk-form-label"> Payee Accounts
|
||||
<select class="uk-select"
|
||||
name="event.CreateWireTransfer.payee_account"
|
||||
id="onetwothree">
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="uk-margin">
|
||||
<label class="uk-form-label"> Amount
|
||||
<input class="uk-input"
|
||||
type="number"
|
||||
step="1"
|
||||
placeholder="100 000"
|
||||
aria-label="Default"
|
||||
name="event.CreateWireTransfer.amount"
|
||||
required>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
{%include "partials/actions/submit_button.html"%}
|
||||
@@ -1,4 +1,4 @@
|
||||
{% set active_navbar_item = 'overview' %}
|
||||
{% set active_navbar_item = 'users' %}
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
Reference in new issue
Block a user