Files
supermarket/internal/web/templates/prospect-new.html
T
davidandClaude Opus 5.5 7633697567 Phase 2 part 2: prospects, the review screen and the suppression list
Schema 6 adds prospect_companies, prospect_contacts (merged by domain and
email, each with its source, detail and date) and suppressions. Prospects
-> Review lists New, Accepted and Set aside: accepting a company queues an
EspoCRM Account, a person a Lead at their company, with provenance and
why they fit in the description; the page warns about records already in
the CRM as of the last sync, and shows each accepted prospect's CRM
progress. Prospects can be added by hand. The suppression list (emails
and domains) is checked on add and again before queueing, and suppressing
sets matching new prospects aside. Search finds prospects too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:51:05 -07:00

36 lines
2.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{define "content"}}{{with .Data}}
<h1>{{if .For}}Add a person at {{.For}}{{else}}Add a prospect{{end}}</h1>
<p class="lede">{{if .For}}They go into review with {{.For}}.{{else}}A company, a person at it, or both. They go into review first; nothing reaches your CRM until you accept it.{{end}}</p>
<form method="post" action="/prospects/new" class="card">
{{if .For}}<input type="hidden" name="company_id" value="{{.CompanyID}}">
{{else}}
<h2>Company</h2>
<div class="cols">
<label>Name <input name="company_name" value="{{.Company.Name}}" autocomplete="off"></label>
<label>Website <input name="website" value="{{.Company.Website}}" placeholder="example.com" autocomplete="off"></label>
<label>Industry <input name="industry" value="{{.Company.Industry}}"></label>
<label>Size <input name="size" value="{{.Company.Size}}" placeholder="e.g. 50–200 people"></label>
<label>Location <input name="location" value="{{.Company.Location}}"></label>
<label>LinkedIn page <input name="company_linkedin" value="{{.Company.LinkedIn}}" placeholder="https://www.linkedin.com/company/…"></label>
</div>
<label>Why they fit <textarea name="why" rows="2" placeholder="What makes them a good prospect">{{.Company.Why}}</textarea></label>
<h2>Person <span class="muted small">(optional)</span></h2>
{{end}}
<div class="cols">
<label>First name <input name="first_name" value="{{.Contact.FirstName}}" autocomplete="off"></label>
<label>Last name <input name="last_name" value="{{.Contact.LastName}}" autocomplete="off"></label>
<label>Job title <input name="title" value="{{.Contact.Title}}"></label>
<label>Email <input name="email" type="email" value="{{.Contact.Email}}" autocomplete="off"></label>
<label>Phone <input name="phone" value="{{.Contact.Phone}}"></label>
<label>LinkedIn profile <input name="linkedin" value="{{.Contact.LinkedIn}}" placeholder="https://www.linkedin.com/in/…"></label>
</div>
<label>Where you found them <input name="source_detail" value="{{.Contact.SourceDetail}}" placeholder="A link, an event, a referral…">
<span class="help">Kept with the prospect and written into the CRM record, so you can always say where a contact came from.</span></label>
<div class="actions">
<button type="submit">Add for review</button>
<a href="/prospects">Cancel</a>
</div>
</form>
{{end}}{{end}}