Links to the three older single-purpose add pages were removed. Creating a record now happens on the page that shows that kind of record.
What has changed on this site, in its database and in the scripts behind it, newest first. Older history is being filled in as it is reconstructed, and each entry says whether it was recorded at the time or rebuilt later.
Showing entries for file add_entity.php. Show everything
Links to the three older single-purpose add pages were removed. Creating a record now happens on the page that shows that kind of record.
Viewing, creating and editing an entity now happen on one page. The separate add-entity page was folded in behind a "new" address, unchanged, and the view gained a "+ New entity" link.
Both halves were moved, not rewritten, and the combined page was checked by comparing its output with the two pages it replaced.
The add-entity page was superseded by the combined entities page, where creating an entity is the "new" mode. Its code moved there unchanged; the old page kept working until every link to it had been repointed.
The JSON box on the add-entity page starts empty, with the sample shown as grey placeholder text, so a pasted record no longer has to replace the sample first.
An entity can be entered as form fields or pasted as JSON. Both tabs feed the same checks, the same preview and the same single save, and the tabs keep each other up to date. Unknown keys in the JSON are refused by name, and only one entity is accepted per paste.
Confirm saves what the preview showed, never the JSON text again.
An older shared-key check on the add-entity page was retired. The page now relies on the site's sign-in and permissions, which cover viewing the form as well as saving, and it refuses to load if the sign-in system is not running.
A page for adding an entity by hand: a form, a preview, then a confirm that writes one record. It pads a CIK to ten digits, checks an LEI's format, limits the entity type to the allowed list, and warns about possible duplicates by name, CIK or LEI.
The add-entity page moved into the site's admin tools area, where access is checked by role, and now uses the site's shared page header, footer and navigation.
Its forms post back to their own address, so the move needed no change to the write path.