Commit graph

34 commits

Author SHA1 Message Date
Jennifer Richards 9681d9f978
fix: revert POST for document search requests (#8263)
* Revert "fix: ensure csrf cookie for searches (#8260)"

This reverts commit 622ded5d2b.

* Revert "refactor: eliminate single-use helper (#8226)"

This reverts commit 6608c9d530.

* Revert "feat: POST for document search requests (#8206)"

This reverts commit b65a37b6e8.

* test: add back test fix

* refactor: eliminate single-use helper
2024-11-22 13:30:54 -06:00
Jennifer Richards b65a37b6e8
feat: POST for document search requests (#8206)
* refactor: doc search via POST (WIP)

Changes the search view to use a POST instead of a GET. Refactors cache key computation to use cleaned data.

Still todo:
 * refactor frontpage view to match
 * refactor menubar search (?)
 * refactor stats view that uses SearchForm
 * revive or drop the "backwards compatibility" branch

* feat: convert GET search to POST

Still todo:
 * refactor frontpage view to match
 * refactor menubar search (?)
 * refactor stats view that uses SearchForm

* fix: revert frontpage changes, search works

Still todo:
 * refactor stats view that uses SearchForm

* fix: define vars in all branches

* refactor: update stats use of SearchForm

* chore: improve message

* fix: remove lint

* chore: comments re: QuerySetAny

* test: test query string search params

* style: Black

* test: refactor test_search()

* test: refactor test_search_became_rfc()

* test: use scroll_and_click helper
2024-11-14 16:05:38 -06:00
Paul Selkirk 2bec81da95
fix: Don't include csrf_token in GET-only form (#6549) 2023-11-07 09:50:23 +01:00
Robert Sparks 7f074bf37f
fix: avoid redirects in mailarchive links (#6282) 2023-09-07 10:40:20 -05:00
Lars Eggert 01abc93cce
fix: Add popup to explain colors for liaisons needing action. Rework how aria-label is supplied for several input fields. Update vnu.jar. Adjust some field styling. (#4115)
* fix: Add popup to explain colors for liaisons needing action

Also fix the search field styling while I'm here.

* Also fix some other field styling issues while I am here
2022-07-07 14:01:21 -05:00
Lars Eggert 3234f1a121
test: Validate HTML rendered during tests (#3782) 2022-04-07 13:30:38 -03:00
Lars Eggert bbf088e18b Hopefully the final check-ins.
- Legacy-Id: 19909
2022-02-08 17:29:15 +00:00
Lars Eggert ed30521e14 Many more HTML fixes.
- Legacy-Id: 19908
2022-02-03 07:49:34 +00:00
Lars Eggert a5cbf5307e More fixes
- Legacy-Id: 19835
2022-01-12 11:54:00 +00:00
Lars Eggert 5772701781 And more agenda fixes.
- Legacy-Id: 19678
2021-11-18 12:42:16 +00:00
Lars Eggert 408f45a9bf Template fixes, and changes needed to fix templates.
- Legacy-Id: 19642
2021-11-11 18:31:43 +00:00
Lars Eggert 70a306ef39 Fix search form.
- Legacy-Id: 19625
2021-11-10 19:27:20 +00:00
Lars Eggert 726b29bf74 fontawesome -> bootstrap-icons
- Legacy-Id: 19608
2021-11-10 09:28:38 +00:00
Lars Eggert 94b12af9da btn-default -> btn-primary
- Legacy-Id: 19606
2021-11-10 07:54:58 +00:00
Lars Eggert df2565096d bootstrap3 -> django_bootstrap5
Only load the module, no other changes yet.
 - Legacy-Id: 19586
2021-11-09 14:09:28 +00:00
Lars Eggert 95f2686d37 Fix search layout.
Commit ready for merge.
 - Legacy-Id: 19473
2021-10-27 12:24:19 +00:00
Lars Eggert 0c82560120 Insert a missing </button>.
Commit ready for merge.
 - Legacy-Id: 19468
2021-10-27 10:03:41 +00:00
Henrik Levkowetz 0fe23c3ae5 Merged in [17120] from rjsparks@nostrum.com:
Add links to the main website and the mailarchive to the search page.
 - Legacy-Id: 17145
Note: SVN reference [17120] has been migrated to Git commit 54fea0ff57
2019-12-10 18:50:03 +00:00
Robert Sparks 54fea0ff57 Add links to the main website and the mailarchive to the search page. Commit ready for merge.
- Legacy-Id: 17120
2019-12-03 21:57:50 +00:00
Henrik Levkowetz 65bf395996 Clarify that the document search author field accepts also author affiliation as a search term.
- Legacy-Id: 15615
2018-10-29 21:09:52 +00:00
Jean Mahoney 0ece320908 clarified description in the search form, removing the etc since you can't search on author names. Fixes issue #1159. Commit ready to merge.
- Legacy-Id: 15327
2018-07-14 15:10:53 +00:00
Mat Ford cd912600e6 Add IRTF State option to Additional Search Criteria pulldown. Commit ready for merge.
- Legacy-Id: 15012
2018-04-05 11:56:37 +00:00
Lars Eggert 76a3c8bdc0 Update vnu.jar and fix various HTML5 nits it found during a test crawl.
Commit ready for merge.
 - Legacy-Id: 13118
2017-03-25 20:21:14 +00:00
Henrik Levkowetz 5f053ad21a Cleaned up the remaining explicit url names, using dotted-paths to view
functions instead.  In all almost 700 changes.
 - Legacy-Id: 12923
2017-02-26 23:21:49 +00:00
Ole Laursen 197bc07771 Refactor search-related utilities slightly to make them more
independent of the search form, to enable them to be reused in the
community lists.

Also clean up the related code a bit, use SearchForm to handle other
document types, and fix missing ids in the HTML so that one can click
the "by" labels to hit the corresponding radio button.
 - Legacy-Id: 10729
2016-01-25 18:11:49 +00:00
Henrik Levkowetz 5d8306cfc8 Merged in [9733] from lars@netapp.com:
First round of HTML fixes identified by test-crawl --vnu.
 - Legacy-Id: 9764
Note: SVN reference [9733] has been migrated to Git commit 205df716f8bf4b7dae9e2637f3aa1ba048a158f9
2015-07-18 08:55:30 +00:00
Henrik Levkowetz ec0321e0da Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate.
- Legacy-Id: 9551
2015-04-24 20:40:01 +00:00
Henrik Levkowetz 139ebd4d27 Updated a css class name.
- Legacy-Id: 9395
2015-04-04 08:59:19 +00:00
Ole Laursen a589115ff4 Summary: Reindent all HTML files to follow the previous convention (no
tabs) and kill the scripts block in favour of just using a js block with
a script tag (which is easier to understand for context-sensitive
modes such as web-mode in Emacs). Also fix a couple of details, e.g.
missing semicolons in JS snippets.
 - Legacy-Id: 9096
2015-02-17 18:01:04 +00:00
Ole Laursen 0edbca5f76 Summary: Fix bug in document type checkboxes
- Legacy-Id: 8993
2015-02-05 15:33:09 +00:00
Lars Eggert a4daf2630c Merge branch 'lars/5.6.3-facelift' into lars/5.6.4-facelift
Conflicts:
	ietf/doc/templatetags/ietf_filters.py
	ietf/doc/views_charter.py
	ietf/templates/doc/charter/edit_notify.html
	ietf/templates/doc/charter/edit_telechat_date.html
	ietf/templates/doc/document_ballot_content.html
	ietf/templates/doc/document_history.html
	ietf/templates/doc/edit_notify.html
	ietf/templates/doc/edit_telechat_date.html
	ietf/templates/doc/notify.html
	ietf/templates/group/concluded_groups.html
 - Legacy-Id: 8429
2014-10-14 11:48:57 +00:00
Ole Laursen 7a86afe1ab Port templates to new {% url %} syntax with quotes around the first parameter
- Legacy-Id: 6877
2013-12-11 16:33:40 +00:00
Henrik Levkowetz e09667122a Added the ability to search for documents from a certain stream to the main document search form.
- Legacy-Id: 6201
2013-09-19 18:16:10 +00:00
Ole Laursen 6ac0920af0 Move idrfc/ templates to doc/ and subdirectories in doc/, move ported ballot_icon template tag, delete dead code
- Legacy-Id: 6052
2013-08-14 14:10:46 +00:00
Renamed from ietf/templates/idrfc/search_form.html (Browse further)