{% extends "base.html" %} {% import "_fields.html" as fm %} {% import "_journal.html" as jn %} {% block main %}

{{ o.code }} {{ r.kind }}

Label

Of {{ r.owner }}. {{ r.state_label }} {{ r.place }}{% if r.chip %} {{ r.chip[1] }}{% endif %}

The original

What it is
{{ o.what }}
Kind
{{ r.kind }}
{% if r.contract_code %}
Contract
{{ r.contract_code }}
{% endif %}
Received
{{ received }}, from {{ o.received_from }}, taken in by {{ o.received_by }}
Belongs in
{{ o.location }}

Where it is now

{%- if errors %}
Correct what is marked; nothing was saved yet.
{%- endif %}
{{ fm.select("state", "State", form.state, states, err=errors.state, blank="Choose", req=true) }}
{{ fm.text("location", "Where it lies", form.location, err=errors.location, list="locations", ph="Office, safe, tray 2") }}
{{ fm.text("holder", "With whom", form.holder, err=errors.holder, list="holders") }}
{{ fm.text("due_on", "Back by, or goes back to the client by", due_on, err=errors.due_on, type="date") }}
{{ fm.text("returned_to", "Returned to", form.holder if form.state == "returned" else "", err=errors.holder) }}
{{ fm.text("note", "Note", form.note, err=errors.note, cls="wide", ph="Such as: filed with the extension application") }}
{% for l in locations %}{% endfor %} {% for h in holders %}{% endfor %}

History

The journal
{% if history %}{{ jn.list(history) }}{% else %}

Nothing yet.

{% endif %}
{% endblock %}