aurweb/templates
Kevin Morris 1c031638c6
feat(FastAPI): add /pkgbase/{name}/request (post)
This change implements the FastAPI version of the
/pkgbase/{name}/request form's action.

Changes from PHP:

- Additional errors are now displayed for the **merge_into** field,
  which are only displayed when the Merge type is selected.
    - If the **merge_into** field is empty, a new error is displayed:
      'The "Merge into" field must not be empty.'
    - If the **merge_into** field is given the name of a package base
      which does not exist, a new error is displayed:
      "The package base you want to merge into does not exist."
    - If the **merge_into** field is given the name of the package
      base that a request is being created for, a new error is
      displayed: "You cannot merge a package base into itself."
- When an error is encountered, users are now brought back to
  the request form which they submitted and an error is displayed
  at the top of the page.
- If an invalid type is provided, users are returned to a BAD_REQUEST
  status rendering of the request form.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-10-02 22:46:49 -07:00
..
account add /accounts/ (get, post) routes 2021-07-01 11:08:56 -07:00
errors Adding route tests 2021-06-05 19:52:56 -07:00
packages feat(FastAPI): add /pkgbase/{name}/comments/{id}/pin (post) 2021-10-02 16:59:38 -07:00
partials feat(FastAPI): add Requests navigation item 2021-10-02 22:43:01 -07:00
pkgbase feat(FastAPI): add /pkgbase/{name}/request (post) 2021-10-02 22:46:49 -07:00
tos [FastAPI] add /tos routes (get, post) 2021-06-24 19:12:49 -07:00
tu /tu/{proposal_id}: Do not show voters if there are none 2021-06-26 04:43:00 -07:00
addvote.html add /addvote/ (get, post) routes 2021-07-01 11:08:44 -07:00
dashboard.html fix(FastAPI): voted/notified query efficiency 2021-09-19 00:34:08 -07:00
home.html [FastAPI] Modularize homepage and add side panel 2021-08-17 19:58:32 -07:00
index.html routers.html: add authenticated dashboard to homepage 2021-08-17 21:59:13 -07:00
login.html implement login + logout routes and templates 2021-06-05 20:11:17 -07:00
packages.html feat(FastAPI): add /packages (get) search 2021-09-19 12:44:19 -07:00
passreset.html add passreset routes 2021-06-05 20:11:17 -07:00
pkgbase.html add /pkgbase/{name} route 2021-07-27 20:48:40 -07:00
register.html add user registration routes 2021-06-05 20:11:17 -07:00
requests.html feat(FastAPI): added /requests (get) route 2021-10-02 22:43:48 -07:00