{{if eq .Phase "choose"}}<h2>Choose a live customer</h2><p>Select the customer whose details belong in this agreement.</p>{{range .Cards}}<p><a rst-btn href="/contracts/prepare?flow={{$.Flow}}&card={{.Card.ID}}">{{.Title}} →</a></p>{{else}}<p>No customer cards are available.</p>{{end}}{{end}}
6
{{if eq .Phase "fields"}}<h2>{{.Card.Title}}</h2><p>Choose the fields to use. Notes and call entries are not included automatically.</p><form method="post" action="/contracts/review" rst-stack><input type="hidden" name="flow" value="{{.Flow}}"><input type="hidden" name="card" value="{{.Card.Card.ID}}"><input type="hidden" name="revision" value="{{.Card.Card.Revision}}">
{{if eq .Phase "review"}}<h2>Approve these details for your contract</h2><dl rst-detail>{{range .Release.Fields}}<dt>{{.Label}}</dt><dd>{{.Value}}</dd>{{end}}</dl><p>Destination: <strong>{{.Destination}}</strong><br>Importer and signer: <strong>{{.Importer}}</strong><br>Source revision: {{.Release.Revision}}</p><p>This authorises these selected values for one contract you sign yourself. Docs must issue it within 30 minutes. Later edits or deletion in Fichas will not retract this approved copy. There is no external-recipient access in this pilot.</p><p>Issued demo records are available for seven days. Existing encrypted backups follow the app’s backup policy; deletion from this screen cannot recall downloaded copies or guarantee backup erasure.</p><form method="post" action="/contracts/approve"><input type="hidden" name="payload" value="{{.Payload}}"><input type="hidden" name="signature" value="{{.Signature}}"><button rst-btn="primary">Approve these details</button></form>{{end}}
10
{{if eq .Phase "send"}}<h2>Your details are approved.</h2><p>Continue to Docs to review the imported fields and write the agreement.</p><form method="post" action="{{.Destination}}/contracts/receive"><input type="hidden" name="payload" value="{{.Payload}}"><input type="hidden" name="signature" value="{{.Signature}}"><button rst-btn="primary">Continue to Docs →</button></form>{{end}}