AutoBridge

Template Editor

The Template Editor is a powerful WYSIWYG editor for designing PDF documents. Insert dynamic fields, format text, add tables, and manage draft/publish versions.


Editor Layout

The editor interface has three main areas:

AreaPurpose
Header BarTemplate info, status toggle, save and publish buttons
Editor CanvasRich text editing area with toolbar
Fields SidebarInsert dynamic fields and payment data

Editor Toolbar

The toolbar provides comprehensive formatting options:

Text Formatting

  • Font Family — Select from available fonts
  • Font Size — Adjust text size
  • Bold, Italic, Underline — Basic text styling
  • Text Color — Change text color
  • Highlight — Add background color to text

Paragraph Formatting

  • Headings — H1 through H6 heading levels
  • Alignment — Left, center, right, justify
  • Lists — Bullet and numbered lists
  • Indentation — Increase/decrease indent

Content Elements

  • Tables — Insert and format tables
  • Images — Upload and embed images
  • Links — Add hyperlinks
  • Task Lists — Checkbox lists

Inserting Dynamic Fields

Dynamic fields pull data from permits, applications, or entities when the PDF is generated.

Using the Fields Sidebar

1

Click in the editor where you want to insert a field
2

In the Fields sidebar, expand a field group
3

Click a field to insert it at the cursor position

Drag and Drop

You can also drag fields from the sidebar directly into the editor.

Field Syntax

Fields use double curly brace syntax:

{{ field_name }}

When the PDF is generated, this placeholder is replaced with actual data.

Field Groups

Fields are organized by section based on your entity configuration:

  • Basic Information — Name, address, dates
  • Contact Details — Phone, email, applicant info
  • Custom Sections — Your configured entity sections
  • Associated Records — Related entity fields

Association Fields

For related records (like property or applicant associations):

1

Click the association field to expand it
2

Select the specific child field you need
3

The field inserts with the full path: {{ association.field_name }}

Payment Fields

The Payment tab in the sidebar provides payment-specific fields and tables.

Payment Fields

Insert individual payment values:

FieldDescription
Total AmountSum of all fees
Amount PaidTotal payments received
Balance DueRemaining amount owed
Payment DateDate of last payment
Payment MethodHow payment was made

Payment Table

Insert a complete payment details table:

1

Click the Payment tab in the sidebar
2

Click Payment Details or drag it to the editor
3

Configure which columns to display

Available columns:

ColumnDescription
DatePayment date
AmountPayment amount
StatusPayment status
Payment MethodHow payment was made
Transaction IDPayment transaction reference
Reference NumberInternal reference
Account CodeAccounting code
CurrencyPayment currency

Draft and Publish Workflow

Templates support version control with drafts and published versions.

Understanding Versions

StateDescription
DraftWorking version, not used for PDF generation
PublishedActive version used when generating PDFs

Saving Drafts

Changes are saved as drafts:

1

Make your edits in the editor
2

Click Save Draft (or it auto-saves)
3

The draft indicator shows unsaved changes

Auto-Save

The editor periodically auto-saves your draft. The save button shows "Saved" when there are no unsaved changes.

Publishing Changes

When your template is ready:

1

Ensure all changes are saved (no unsaved indicator)
2

Click Publish
3

The draft becomes the new published version

Draft Status Bar

When a draft differs from the published version, a status bar appears:

  • Discard — Revert to the published version
  • Publish — Make the draft the new published version

Discarding Changes

Discarding a draft permanently removes all unpublished changes. This cannot be undone.


Template Status

Toggle whether a template is actively used:

Active vs Inactive

StatusEffect
ActiveTemplate can be used for PDF generation
InactiveTemplate is disabled, won't generate PDFs

Toggling Status

Use the switch in the header bar:

1

Locate the status toggle (Active/Inactive)
2

Click to toggle the status
3

Changes take effect immediately

Publish Required

A template must have at least one published version before it can be activated.


Template Configuration

Click Configure to edit template metadata:

  • Template Name — Update the display name
  • Description — Modify the description
  • Department Type — Change the owning department
  • Template Type — Update the category

Entity Lock

The associated entity cannot be changed after creation. If you need a different entity, create a new template.


Headers and Footers

Templates inherit headers and footers from their department:

  • Header — Appears at the top of every page
  • Footer — Appears at the bottom of every page

To customize headers/footers, edit the department settings. See Settings.


Tips and Best Practices

Field Insertion

  • Preview fields — Hover over a field to see its placeholder syntax
  • Search fields — Use the search box to find fields quickly
  • Test data — Preview your template with sample data before publishing

Layout Design

  • Use tables for structured data like fee breakdowns
  • Consistent spacing — Use line breaks and margins consistently
  • Clear hierarchy — Use headings to organize sections

Version Management

  • Save frequently — Don't lose work; save drafts often
  • Test before publish — Preview with various data scenarios
  • Keep templates active — Only activate tested templates

Troubleshooting

Fields Not Populating

  • Verify the field exists on the entity
  • Check field name spelling in the placeholder
  • Ensure the record has data for that field

Formatting Issues

  • Clear formatting and reapply if styles look wrong
  • Check for nested tables causing layout problems
  • Remove and re-add images if they don't display

Publishing Errors

  • Ensure all required fields are filled
  • Check for invalid HTML in the editor
  • Try saving as draft first, then publishing