51 lines
1.6 KiB
HTML
51 lines
1.6 KiB
HTML
<input type="hidden"
|
|
name="event.EmitSecurities.id"
|
|
value="7876">
|
|
|
|
<input type="hidden"
|
|
name="event.EmitSecurities.emitter"
|
|
value="{{ user.id }}">
|
|
|
|
<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"%}
|