Poweradmin\Application\Presenter
Classes
Shapes change requests for the list, review and edit-page templates.
The zone editor's view model: maps the facts the controller has already resolved (zone, permissions, preferences, listing) onto the variables edit.html reads. Everything derived for the page - editability flags, record locks, the comment conflict, the offered record types - is computed here from those inputs alone.
Prepares the zone-list owner and group cells: the first entries stay visible, the rest collapse into a "+N more" tooltip label.
Which users a zone-owner picker offers, and which one it shows again after a refused submit. Whether the caller may pick other users is decided by the permission layer and passed in.
Describes the page-number list for a Pagination object, with ellipses around the current page.
Maps a refused record write to the record form input it should highlight.
Decorates the zone editor's record rows with the display fields the template expects, and with whether each row may be edited.
Puts a zone-editor submission that was refused as stale back into the freshly read record listing, so the warning does not also cost the operator their edits.
Labels the record search rows for the search page. The gateways return
disabled as a bool; the translated Yes/No goes into disabled_label.
Attaches the labelled SOA breakdown to record rows so the templates can show it.
Describes the 0-9, a-z, IDN and "Show all" filter links on the forward zone list page.