Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

[wip] Search all documents #658

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

janno42
Copy link
Collaborator

@janno42 janno42 commented Aug 20, 2018

reopened from #656, there are some open issues here.
i will add some review comments.

Copy link
Collaborator Author

@janno42 janno42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all changes from the commit "fixes to the pr" should be squashed into the two commits before.
also, the "add tests" commit should optimally be splitted into one naming the forms and the other one adding the actual tests for this feature.

class Migration(migrations.Migration):

replaces = [('information_pages', '0004_auto_20180813_2050'), ('information_pages', '0005_auto_20180813_2102')]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a squashed migration although that's not necessary because both 0004 and 0005 didn't exist before. please create a plain new migration instead.

class Migration(migrations.Migration):

replaces = [('minutes', '0010_auto_20180813_2050'), ('minutes', '0011_auto_20180813_2102')]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

<a href="#" id="popover" data-placement="bottom">
<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
</a>
<div id="popover-content" class="hide">
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the indentation here is wrong

@@ -95,6 +95,18 @@
</ul>
</li>
{% endif %}
{# Search form #}
<li class ="pull-right">
<a href="#" id="popover" data-placement="bottom">
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -95,6 +95,18 @@
</ul>
</li>
{% endif %}
{# Search form #}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add some javascript that automatically focuses the search text field on opening the popover

$('[data-toggle="popover"]').popover()
});

$('#popover').popover({
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you combine these two method calls into one?

@janno42 janno42 changed the title Search all documents [wip] Search all documents Sep 9, 2018
@janno42 janno42 mentioned this pull request Dec 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants