Templates
Administration → Event Templates designs the custom forms and dashboards that appear as tabs on events, such as a dive log or a search checklist. You need template/edit/all.


How templates work
- A template is a page of elements, such as labels, text boxes, checkboxes and maps, placed freely on a canvas.
- Input elements store their values in datapoints: named values, such as
dive_depth, kept for each event. Every change is recorded, so the event's Timeline can chart it. - A template shows on every event that has one of its Associated Tags. Editors can also add it to any event by hand.
Creating a template
Select + and give it a Template Name (required, up to 100 characters), a Description and its Associated Tags. The Template JSON holds the design; start with the default and use the visual editor.
Edit changes the name, description, tags or JSON. Copy copies the JSON, for example to reuse it in another team. Delete asks you to confirm and can't be undone.
The visual editor
Select Visual Editor to design the template. Changes save automatically; the header shows Unsaved changes and Saving... while it catches up, and you can close the editor once it's done.


The Toolbar, canvas and properties are floating windows; drag them where you like, or Reset Windows to put them back.
Elements
The toolbar adds:
| Element | For |
|---|---|
| Text label | Headings and instructions |
| Text input, multiline input | Typed values and notes |
| Select dropdown | A choice from a list of Options |
| Checkbox | Yes or no |
| Date/time input | A date and time |
| Event slots, Users | The event's assignment slots and team members |
| Image | A picture, uploaded or from a web address |
| Line | Dividers and boxes |
| History | A list of a datapoint's past values |
| Map | A map of the event's area |
Select an element to change it in the properties window: its text, Datapoint, Default Value, font, colors, alignment and border. Visible in Mobile View decides whether it appears when the template is shown as a single column.
Drag elements to move them. Show Grid and Snap to Grid help line them up; change the grid size with the buttons beside them. Move Element Up and Move Element Down change which element is in front, and the order elements appear in on phones.
Undo, redo, copy, paste, nudging and more have keyboard shortcuts.
Datapoints
Manage Datapoints lists your team's datapoints. Create one with a Datapoint Name (letters, numbers, underscores and hyphens), a Type (Text, Number, Boolean, Date/Time or Point, a map location) and a description. Built-in system datapoints, recorded by CrewSpec itself, aren't listed and can't be edited.
The same datapoint can be used in several templates, so values are shared between them.
Deleting a datapoint deletes its values everywhere
Deleting a datapoint permanently removes all its current and past values from every event.
Template settings
With nothing selected, the properties window shows Template Settings:
- Minimum Width and Minimum Height: the size the template is designed for. On smaller screens it switches to a single column.
- Tab Index: where the template's tab appears on events. The built-in tabs are Overview 10, Users 20, Resources 30, Sub Events 40, Attachments 50 and Timeline 60; for example, 25 places it after Users. -1 puts it last.