Skip to main content

Templates

The Templates module provides call quick templates and call note autofills that streamline call creation. It is managed by the TemplatesController.

Call Quick Templates

Template List

Authorization: Department_View policy

Displays all call quick templates for the department.

Creating Templates

Authorization: Department_Update policy

FieldRequiredDescription
Call NameEither name or nature requiredPre-filled call name
Call NatureEither name or nature requiredPre-filled call nature/description
Call PriorityNoPre-selected priority
Call TypeNoPre-selected call type

Templates enable one-click creation of common call types by pre-filling the dispatch form.

Editing Templates

Authorization: Department_Update policy

Same fields as creation. Validates department ownership.

Deleting Templates

Authorization: Department_Update policy

Validates department ownership before deletion.

Template API

The GetTemplate endpoint returns the full template as JSON, used by the dispatch UI to populate form fields.

Call Note Autofills

Autofill List

Authorization: Department_View policy

Lists all call note autofills ordered by their sort position.

Creating Autofills

Authorization: Department_Update policy

FieldRequiredDescription
NameYesAutofill button label
DataYesText to insert into call notes
SortAutoDisplay order

Editing Autofills

Authorization: Department_Update policy

Modify name, data text, and sort order.

Deleting Autofills

Authorization: Department_Update policy

Validates department ownership.

Interactions with Other Modules

ModuleInteraction
DispatchTemplates pre-fill call form; autofills insert into call notes
TypesCall types and priorities used in template configuration