{% extends "base.html" %} {% from "macros.html" import date_input, datetime_input, errors_box, err %} {#- Quick capture (pages/capture.py, capture_text.py). Three states: the text box (mode form), the preview of what a finished job would file (mode preview), and a capture already filed (mode filed). Plain forms throughout: it all works with JavaScript off. Existing classes only (style.css), so no stylesheet of its own. -#} {% block title %}Quick capture{% endblock %} {% block content %} {% if mode == 'form' %}

Quick capture

Type what happened in a sentence or two: who, how, and what you still have to do. Hermit reads it and shows you what it would file. Nothing is saved until you confirm. How it works

{% if error %}{% endif %} {% if ai.available %}

One quick call to {{ model_label(ai.model_for('light')) }}, with your text and the names in your CRM.

{% else %}

Set one up under Settings, Enrichment, or file it by hand: log an interaction or add a task from the company's page (Companies), or start a new company or new contact.

{% if text %}

What you typed:

{{ text }}
{% endif %} {% endif %} {% elif mode == 'filed' %}

Already filed

This capture was filed: {{ filed.message | replace('capture: ', '', 1) }}.

Open it Capture something else

{% else %} {% set v = values %}

Check before filing

What Hermit read from your text. Untick or change anything, then file it: everything ticked is saved as one change, which you can undo in one click. Nothing has been saved yet.

{{ text }}
{% if proposal.notes %}{% endif %} {{ errors_box(errors) }}
Who

Picked another company? The list of people follows it once you file: if the person is not at the new company, Hermit asks again.

The interaction's text is what you typed, exactly as you typed it.

{% if v.tasks %}
Tasks {% for task in v.tasks %}{% set n = loop.index0 %}
{% set said = proposal.tasks[n].written if proposal.tasks and n < proposal.tasks|length else '' %} {% if said %}

due: you wrote “{{ said }}”

{% endif %} {{ err(errors, 'task ' ~ loop.index) }} {% endfor %}
{% endif %}

Start again

{% endif %} {% endblock %}