Company page: delete asks in a dialog, not on a page of its own #854

Closed
opened 2026-10-10 16:01:25 +00:00 by tiagoagueda · 1 comment
Owner

Deleting a company should confirm in a dialog on the company page.

What exists today

  • CompanyDeleteView (jobs/views.py:666+) shows partials/confirm_delete.html with what goes with it (counts, #217).
  • <c-dialog tone="alert" action=…> (templates/cotton/dialog.html) is the house dialog: role="alertdialog", a POST form with CSRF, a popover without scripts. Used by profile.html:336, server/plugins.html:134, server/design.html.

What would change

  • Delete opens an alert dialog posting to company_delete, listing the same consequences — computed for the detail view.
  • The page stays as the no-script and direct-link fallback.

Decisions

  • Other deletes (listings, applications, contacts) use pages too; recommended: this one first, the rest after, with a shared component.

Checked against main at 8c3d03570. From the maintainer's improvements list of 2026-10-07.

Deleting a company should confirm in a dialog on the company page. ## What exists today - `CompanyDeleteView` (`jobs/views.py:666+`) shows `partials/confirm_delete.html` with what goes with it (counts, #217). - `<c-dialog tone="alert" action=…>` (`templates/cotton/dialog.html`) is the house dialog: `role="alertdialog"`, a POST form with CSRF, a popover without scripts. Used by `profile.html:336`, `server/plugins.html:134`, `server/design.html`. ## What would change - *Delete* opens an alert dialog posting to `company_delete`, listing the same consequences — computed for the detail view. - The page stays as the no-script and direct-link fallback. ## Decisions - **Other deletes** (listings, applications, contacts) use pages too; recommended: this one first, the rest after, with a shared component. Checked against `main` at `8c3d03570`. From the maintainer's improvements list of 2026-10-07.
tiagoagueda added this to the 0.6.0 milestone 2026-10-10 16:01:25 +00:00
Author
Owner

Fixed in 343314576 on main.

Fixed in 343314576 on main.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Postulo/postulo#854
No description provided.