{% extends "base.html" %} {% block title %}{{ title }}{% endblock %} {% block page_title %}{{ title }}{% endblock %} {% block content %}
{{ (inv.ticker or inv.asset_name[:2]).upper()[:2] }}
{{ inv.asset_name }}
{% if inv.ticker %}{{ inv.ticker }} · {% endif %} {{ inv.shares|float|round(4) }} shares held {% if inv.current_price %} · Current: {{ inv.current_price | currency }}{% endif %}
{{ form.hidden_tag() }}
{{ form.transaction_type.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.transaction_type(class="form-select", id="txnType") }}
{{ form.shares.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.shares(class="form-control" + (" is-invalid" if form.shares.errors else ""), placeholder="0.00", id="sharesInput") }} {% for e in form.shares.errors %}
{{ e }}
{% endfor %}
{{ form.price_per_share.label(class="form-label fw-medium", style="font-size:13px;") }}
{{ current_user.currency_symbol }} {{ form.price_per_share(class="form-control", placeholder="0.0000", id="priceInput") }} {% if inv.ticker %} {% endif %}
{{ form.fees.label(class="form-label fw-medium", style="font-size:13px;") }}
{{ current_user.currency_symbol }} {{ form.fees(class="form-control", placeholder="0.00") }}
{{ form.date.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.date(class="form-control") }}
Estimated Total {{ current_user.currency_symbol }}0.00
{{ form.notes.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.notes(class="form-control", placeholder="Optional notes") }}
{{ form.submit(class="btn btn-primary") }} Cancel
{% endblock %} {% block extra_js %} {% endblock %}