Specifications
1. Purpose
Provide an HTML mirror of each page in the OneNote CASE TEMPLATE section. Each page is a Bootstrap card form. The user fills it in, copies it, and pastes it into the matching OneNote page. The forms replace free typing on the OneNote page. They don't replace OneNote as the record.
2. Design requirements
- Cards, forms, Bootstrap. The interface is built on Bootstrap 5.3.9 (CSS only, pinned with an SRI hash). It follows the system light or dark setting.
- One HTML page per OneNote page, with the same title, all reachable from an index.
- Copy, then paste. Each page has a Copy for OneNote button. The output uses inline styles, because OneNote ignores external CSS.
- Repeating cards. Anything that can occur more than once (persons, vehicles, locations, addresses, and so on) has add and remove controls with automatic numbering.
- Static site. No build step and no server code.
3. Data handling
- All input stays in the browser. Nothing is persisted (no cookies, local storage or similar), uploaded or sent to a server. Reloading clears the page.
- The only network request is the Bootstrap stylesheet from a public CDN. No form data is included.
- The site contains no case data. It is a template.
- The site is served from a public URL unless access control is added in front of it. That decision is open (see section 7).
4. Pages
| Page | Source of fields | Repeats |
|---|---|---|
| Case Intro | Real Case name, Case / report number, Event number, County, Date opened, Lead / team, Summary | No |
| Hot Sheet | Real Word hot sheet template, plus a location card | Persons, vehicles, locations |
| Violations | Real Code section, Date, Description, Notes | Violations |
| Vehicles | Draft fields; photo box per card | Vehicles |
| Locations | Draft fields; photo box per card | Locations |
| Social Media | Draft | Accounts |
| Flock / Vigalent | Draft | Entries |
| Subject Details | Real hot sheet person fields, plus phone; photo box per subject | Subjects, addresses |
| Notes | Draft | No |
| Warrant Info | Draft | Warrants |
Draft pages show a yellow notice. Their fields are placeholders, not copied from the real OneNote pages. The page order is the order of titles found in the template and is not confirmed.
5. Hot Sheet
Follows the department hot sheet (TIP-411 / CI / RP). The header reads "CALIFORNIA DEPARTMENT OF FISH & WILDLIFE" and "TIP-411 / CI / RP".
| Card | Fields | Photo | Starts with |
|---|---|---|---|
| Person | Name, aka, DOB, CDL, H, W, Hair, Eyes, Address, Vehicle, ALDS, Criminal History | Yes | 2 |
| Vehicle | LIC, Make, Type, Color, RO | Yes | 1 |
| Location | Address 1, Address 2, City, State, Zip, Latitude, Longitude | Yes | 1 |
| Additional Info | Desc | No | 1 |
| Additional Pictures / Screenshots | Desc, plus any number of images | Gallery | 1 |
- Photos: each person, vehicle and location card holds any number of photos. Click the empty add box then paste, drop images on it, or use Choose. Each photo has a remove button. Images are resized in the browser to at most 800 px (longest side) and re-encoded as JPEG. The empty add box shows a placeholder icon.
- Photo layout: photos stack down the left of the card beside the fields. Once the stack is as tall as the fields, further photos flow horizontally along the bottom of the card. The add box is always last. On narrow screens all photos sit in one row above the fields. The same component and behavior apply on the Vehicles, Locations and Subject Details pages.
- Copy output: for each card, a bold title, its photos (if any) in one row above a label and value table. Person Description combines H, W, Hair and Eyes into one row. Location latitude and longitude paste as one row. Photos are embedded as image data.
- Print / PDF prints the page with controls hidden.
- An optional header badge is shown if a local
assets/badge.pngexists. It is not part of the public repository.
6. Subject Details
Fields: Name, aka, DOB, DL / CDL, Phone, H, W, Hair, Eyes, Vehicle, ALDS, Known addresses (any number), and Criminal history. Each subject is one card with a photo box (person icon placeholder, same behavior as the Hot Sheet). Subjects can be added and removed.
7. Open items and limits
- Pasting embedded Hot Sheet photos into OneNote on Mac has not been tested.
- Only the photo layout logic has an automated test. The browser behavior and the OneNote paste have not been verified by hand yet; see the Tests page for the checklist.
- Six pages still use draft placeholder fields.
- A PRESERVATION ORDERS subpage under Warrant Info has been requested for the OneNote template. It does not exist as a form yet.
- Access control for the public URL has not been decided.
- The forms are one-way. Content pasted into OneNote can't be loaded back into the form.
- Browsers: current Chrome or Safari expected. Image paste depends on the browser exposing clipboard images to the page.