added # matches on show persons page, and fixed issue with search OPT being hardcoded and not using those in the DB
This commit is contained in:
@@ -43,13 +43,6 @@
|
||||
<div class="col-1">
|
||||
<form id="_{{s[0]}}" method="POST" action="{{url_for('search')}}">
|
||||
<input type="hidden" name="search_term" value="AI:{{s[0]}}">
|
||||
<input type="hidden" name="noo" value="Oldest">
|
||||
<input type="hidden" name="grouping" value="None">
|
||||
<input type="hidden" name="how_many" value="50">
|
||||
<input type="hidden" name="offset" value="0">
|
||||
<input type="hidden" name="size" value="128">
|
||||
<input type="hidden" name="folders" value="False">
|
||||
<input type="hidden" name="cwd" value="/">
|
||||
<a href="javascript:$('#_{{s[0]}}').submit()">{{s[0]}}</a></form>
|
||||
</div>
|
||||
<div class="col-1"><center>{{s[1]}}</center></div>
|
||||
|
||||
@@ -2,13 +2,24 @@
|
||||
|
||||
{% block main_content %}
|
||||
<h3>Show All People</h3>
|
||||
|
||||
<table id="person_table" class="table table-striped table-sm" data-toolbar="#toolbar" data-search="true">
|
||||
<thead>
|
||||
<tr class="table-primary"><th>Tag</th><th>Firstname(s)</th><th>Surname</th><th></th></tr>
|
||||
<tr class="table-primary"><th>Tag</th><th>Faces Matched</th><th>Firstname(s)</th><th>Surname</th><th></th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for person in persons %}
|
||||
<tr><td><a href="{{url_for('person', id=person.id )}}">{{person.tag}}</td><td>{{person.firstname}}</td>
|
||||
<tr><td><a href="{{url_for('person', id=person.id )}}">{{person.tag}}</td>
|
||||
<td>
|
||||
{% if person.num_matches %}
|
||||
<form id="_{{person.tag}}" method="POST" action="{{url_for('search')}}">
|
||||
<input type="hidden" name="search_term" value="AI:{{person.tag}}">
|
||||
<a href="javascript:$('#_{{person.tag}}').submit()">{{person.num_matches}} matches</a></form>
|
||||
{% else %}
|
||||
No matches
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{person.firstname}}</td>
|
||||
<td>{{person.surname}}</td>
|
||||
<td>
|
||||
{% for refimg in person.refimg %}
|
||||
|
||||
Reference in New Issue
Block a user