aurweb/templates/partials
Kevin Morris 85ba4a33a8 add /tu/{proposal_id} (get, post) routes
This commit ports the `/tu/?id={proposal_id}` PHP routes to
FastAPI into two individual GET and POST routes.

With this port of the single proposal view and POST logic,
several things have changed.

- The only parameter used is now `decision`, which
  must contain `Yes`, `No`, or `Abstain` as a string.
  When an invalid value is given, a BAD_REQUEST response
  is returned in plaintext: Invalid 'decision' value.
- The `doVote` parameter has been removed.
- The details section has been rearranged into a set
  of divs with specific classes that can be used for
  testing. CSS has been added to persist the layout with
  the element changes.
- Several errors that can be discovered in the POST path
  now trigger their own non-200 HTTPStatus codes.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-06-26 01:11:52 -07:00
..
tu add /tu/{proposal_id} (get, post) routes 2021-06-26 01:11:52 -07:00
account_form.html add account edit (settings) routes 2021-06-05 20:11:17 -07:00
archdev-navbar.html [FastAPI] remove unused Requests navbar item 2021-06-26 01:10:20 -07:00
body.html port over base HTML layout from PHP to FastAPI+Jinja2 2021-06-05 19:50:51 -07:00
error.html add passreset routes 2021-06-05 20:11:17 -07:00
footer.html port over base HTML layout from PHP to FastAPI+Jinja2 2021-06-05 19:50:51 -07:00
head.html port over base HTML layout from PHP to FastAPI+Jinja2 2021-06-05 19:50:51 -07:00
layout.html Jinja bugfix: add xmlns + xml:lang to <html> 2021-06-05 20:11:17 -07:00
meta.html port over base HTML layout from PHP to FastAPI+Jinja2 2021-06-05 19:50:51 -07:00
navbar.html port over base HTML layout from PHP to FastAPI+Jinja2 2021-06-05 19:50:51 -07:00
set_lang.html port over base HTML layout from PHP to FastAPI+Jinja2 2021-06-05 19:50:51 -07:00
typeahead.html aurweb.asgi: add security headers middleware 2021-06-22 20:33:45 -07:00