Commit graph

4628 commits

Author SHA1 Message Date
Karl Hobley
94565bac8a Fixed snippet chooser pagination for non searchable snippets
Pagination links are generated from the search form action.

This change always puts the search form into the HTML, but removes the search box and submit button when the snippet is not searchable.

The user doesn't see the form and the pagination links work again.
2015-08-26 16:38:12 +01:00
Karl Hobley
2242244c4b Show total count of found snippets on snippet listing as well 2015-08-26 15:57:03 +01:00
Karl Hobley
7f7252bf44 Show total count of found snippets
Rather than just the number on the current page
2015-08-26 13:44:57 +01:00
Karl Hobley
19ab4cae0a Only show search box when snippet is searchable 2015-08-26 13:43:07 +01:00
Karl Hobley
5d0c4caf3b Search results messages
- Number of items matched
 - Different message when no items found
2015-08-14 15:50:48 +01:00
Karl Hobley
f9632b98d3 JavaScript for snippet chooser search 2015-08-14 15:50:48 +01:00
Karl Hobley
8ed3b79706 Use main listing template in chooser 2015-08-14 15:50:48 +01:00
Karl Hobley
aa4edc67d3 Snippets chooser pagination now fetches results.html
Instead of going through modal workflow. This is similar to how the chooser works elsewhere in wagtail
2015-08-14 15:50:48 +01:00
Karl Hobley
cc66159441 Added snippet chooser results template
So search results can be loaded with ajax
2015-08-14 15:50:47 +01:00
Karl Hobley
eddc129a69 Added search form to snippets chooser 2015-08-14 15:50:47 +01:00
Karl Hobley
d43fa39f89 Ajaxify snippet search 2015-08-14 15:50:47 +01:00
Karl Hobley
9fced68f89 Add search to snippet chooser view 2015-08-14 15:50:47 +01:00
Karl Hobley
3efbac7dfc Added search to snippet listing view 2015-08-14 15:50:47 +01:00
Karl Hobley
f8a4ff4e6a Added SearchableSnippet test model 2015-08-14 13:58:52 +01:00
Matt Westcott
371c9dc9a5 Merge branch 'kaedroho-fetch-translations' 2015-08-14 13:11:26 +02:00
Karl Hobley
ce743768f5 Fetched translations from transfex 2015-08-14 10:58:35 +01:00
Matt Westcott
a1886d4d5b fix another styleguide link missed when converting to namespaced URLs 2015-08-14 11:44:06 +02:00
Matt Westcott
e867b48446 Merge pull request #1593 from torchbox/revert-1581-multiple-page-types-in-page-chooser
Revert "Multiple page types in page chooser"
2015-08-11 18:00:25 +01:00
Matt Westcott
85707d5925 Revert "Multiple page types in page chooser" 2015-08-11 18:00:05 +01:00
Matt Westcott
31c6198afb Merge pull request #1592 from torchbox/revert-1590-fix-1581
Revert "Fix a couple of bugs in #1581"
2015-08-11 17:59:49 +01:00
Matt Westcott
90ebd2ed73 Revert "Fix a couple of bugs in #1581" 2015-08-11 17:59:38 +01:00
Karl Hobley
e1cb885de2 Merge pull request #1590 from kaedroho/fix-1581
Fix a couple of bugs in #1581
2015-08-11 17:08:44 +01:00
Karl Hobley
3550a17401 Fix crash
content_types is a dictionary of model classes => content types.

content_type__in requires a list of content types so .values() is called
2015-08-11 16:44:37 +01:00
Karl Hobley
4aabac1bdc JS changes for #1581
These got lost somehow...
2015-08-11 16:43:57 +01:00
Tom Dyson
f8d2a9f456 Merge pull request #1565 from gasman/fix/remove-menu-classes
Remove all menu-{section_name} classnames on the <body> element and menu item <li>s
2015-08-11 12:39:03 +01:00
Tom Dyson
de78b8d609 Merge pull request #1573 from kaedroho/fix-editorspicks-references
Fixed a couple of references to editors picks
2015-08-11 12:33:44 +01:00
Karl Hobley
337a979257 #1582 - Fix typo in model reference 2015-08-05 14:13:00 +01:00
Tom Dyson
7c784dec70 Merge pull request #1581 from nimasmi/multiple-page-types-in-page-chooser
Multiple page types in page chooser
2015-08-03 20:18:21 +01:00
Karl Hobley
fdb3e4905e Merge pull request #1576 from kaedroho/issue/1574
Removed references to search picks from project template
2015-08-03 20:09:52 +01:00
Nick Smith
b67426c86b Merge branch 'master' into multiple-page-types-in-page-chooser
Conflicts:
	wagtail/wagtailadmin/views/chooser.py
2015-08-03 18:11:38 +01:00
Nick Smith
38ee0991e6 Update #1533 according to feedback: docs and error message changes 2015-08-03 18:08:20 +01:00
Karl Hobley
fd821179cd Merge pull request #1580 from benebun/patch-1
Fix typo templage > template
2015-08-03 14:38:10 +01:00
Karl Hobley
30408252ff Contributor/changelog/release note for #1538 2015-08-03 14:35:58 +01:00
Benedikt Breinbauer
ea77a0f7b9 Fix typo templage > template 2015-08-03 15:35:32 +02:00
Karl Hobley
94ad915fee Merge pull request #1538 from tomchristie/rest-framework
Refactor API to REST framework.
2015-08-03 14:33:49 +01:00
Karl Hobley
62a5f4125e Removed references to search picks from project template
Fixes #1574
2015-08-03 10:19:29 +01:00
Karl Hobley
c553a122eb Merge pull request #1575 from theju/master
Update the urls to make use of namespaced URLs
2015-08-02 22:44:24 +01:00
Thejaswi Puthraya
31867e74c0 Update the urls to make use of namespaced URLs 2015-08-02 16:49:25 +00:00
Karl Hobley
9efb91d406 Fixed a couple of references to editors picks
Requires translation sources to be regenerated
2015-08-02 11:18:15 +01:00
Karl Hobley
3afeff8e15 Merge pull request #1570 from gasman/fix/remove-urlconf-check
Remove check for pre-Wagtail-0.3 urlconfs in wagtailimages
2015-08-01 12:04:50 +01:00
Matt Westcott
ea2cabca98 Release note for #1492 2015-08-01 11:22:59 +02:00
Matt Westcott
943310d097 add forgotten changelog items 2015-08-01 11:20:21 +02:00
Matt Westcott
0964a7f6b6 Merge pull request #1492 from kaedroho/es-index-chunked-rebuild
Rebuild search indices in chunks
2015-08-01 11:16:57 +02:00
Matt Westcott
f51412e764 Merge branch 'kaedroho-es-index-atomic-rebuild' 2015-08-01 11:14:08 +02:00
Matt Westcott
bd59ee93b6 Release note for #1490 2015-08-01 11:13:46 +02:00
Matt Westcott
55c3606b16 Merge branch 'es-index-atomic-rebuild' of https://github.com/kaedroho/wagtail into kaedroho-es-index-atomic-rebuild 2015-08-01 10:52:20 +02:00
Matt Westcott
955f751965 Remove check for Wagtail-0.3-style urlconfs in wagtailimages 2015-08-01 00:01:08 +02:00
Karl Hobley
1c1a9b01df Fix typos 2015-07-31 11:29:11 +01:00
Karl Hobley
f341d3c5f1 Various tweaks to update_index 2015-07-31 11:27:20 +01:00
Tim Heap
cb2146930b Refactor search index chunk updating 2015-07-31 11:27:20 +01:00