Skip to content

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.

The Event Templates screen with the template list and a template's detailsThe Event Templates screen with the template list and a template's details, phone

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 visual template editor with the toolbar, canvas and properties windowsThe visual template editor with the toolbar, canvas and properties windows, phone

The Toolbar, canvas and properties are floating windows; drag them where you like, or Reset Windows to put them back.

Elements ​

The toolbar adds:

ElementFor
Text labelHeadings and instructions
Text input, multiline inputTyped values and notes
Select dropdownA choice from a list of Options
CheckboxYes or no
Date/time inputA date and time
Event slots, UsersThe event's assignment slots and team members
ImageA picture, uploaded or from a web address
LineDividers and boxes
HistoryA list of a datapoint's past values
MapA 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.

Docs for CrewSpec 26.11.190