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

[wip] Search all documents - #658

Open
janno42 wants to merge 4 commits into
fsr-de:masterfrom
julkw:search_all_documents
Open

janno42 wants to merge 4 commits into
fsr-de:masterfrom
julkw:search_all_documents

Conversation

@janno42

@janno42 janno42 commented Aug 20, 2018

Copy link
Copy Markdown
Collaborator

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

@janno42 janno42 left a comment

Copy link
Copy Markdown
Collaborator Author

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
Copy Markdown
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
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

same here

Comment thread _1327/templates/base.html
<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
Copy Markdown
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

Comment thread _1327/templates/base.html
{% endif %}
{# Search form #}
<li class ="pull-right">
<a href="#" id="popover" data-placement="bottom">

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Comment thread _1327/templates/base.html
</ul>
</li>
{% endif %}
{# Search form #}

Copy link
Copy Markdown
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

Comment thread _1327/templates/base.html
$('[data-toggle="popover"]').popover()
});

$('#popover').popover({

Copy link
Copy Markdown
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