Going somewhere.
This commit is contained in:
1 parent
0d0337a6aa
commit
f140b50be4
17 files changed
+211
-20
No files matched your search
@@ -0,0 +1,3 @@
|
||||
{% for account in accounts %}
|
||||
<option value="{{ account.id }}">{{ account.id }}</option>
|
||||
{% endfor %}
|
||||
@@ -0,0 +1,42 @@
|
||||
<div class="uk-margin">
|
||||
<label class="uk-form-label"> Emitter Account
|
||||
<select class="uk-select"
|
||||
name="event.EmitSecurities.emitter_account"
|
||||
id="event.EmitSecurities.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.EmitSecurities.emitter_account').options[document.getElementById('event.EmitSecurities.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.EmitSecurities.payee_accounts"
|
||||
id="onetwothree"
|
||||
multiple>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="uk-margin">
|
||||
<label class="uk-form-label"> Amount
|
||||
<input class="uk-input"
|
||||
type="number"
|
||||
min="1"
|
||||
placeholder="100 000" aria-label="Default"
|
||||
name="event.EmitSecurities.amount"
|
||||
required>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
{%include "partials/actions/submit_button.html"%}
|
||||
Reference in new issue
Block a user