mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[fix][#36] remembering results download categories
This commit is contained in:
		
							parent
							
								
									ced6a94591
								
							
						
					
					
						commit
						84fc0c0e6d
					
				
					 1 changed files with 7 additions and 18 deletions
				
			
		| 
						 | 
					@ -20,30 +20,19 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <div id="apis">
 | 
					        <div id="apis">
 | 
				
			||||||
        {{ _('Download results') }}
 | 
					        {{ _('Download results') }}
 | 
				
			||||||
 | 
					        {% for output_type in ('csv', 'json', 'rss') %}
 | 
				
			||||||
        <form method="post" action="/">
 | 
					        <form method="post" action="/">
 | 
				
			||||||
            <div class="left">
 | 
					            <div class="left">
 | 
				
			||||||
            <input type="hidden" name="q" value="{{ q }}" />
 | 
					            <input type="hidden" name="q" value="{{ q }}" />
 | 
				
			||||||
            <input type="hidden" name="format" value="csv" />
 | 
					            <input type="hidden" name="format" value="{{ output_type }}" />
 | 
				
			||||||
 | 
					            {% for category in selected_categories %}
 | 
				
			||||||
 | 
					            <input type="hidden" name="category_{{ category }}" value="1"/>
 | 
				
			||||||
 | 
					            {% endfor %}
 | 
				
			||||||
            <input type="hidden" name="pageno" value="{{ pageno }}" />
 | 
					            <input type="hidden" name="pageno" value="{{ pageno }}" />
 | 
				
			||||||
            <input type="submit" value="csv" />
 | 
					            <input type="submit" value="{{ output_type }}" />
 | 
				
			||||||
            </div>
 | 
					 | 
				
			||||||
        </form>
 | 
					 | 
				
			||||||
        <form method="post" action="/">
 | 
					 | 
				
			||||||
            <div class="left">
 | 
					 | 
				
			||||||
            <input type="hidden" name="q" value="{{ q }}" />
 | 
					 | 
				
			||||||
            <input type="hidden" name="format" value="json" />
 | 
					 | 
				
			||||||
            <input type="hidden" name="pageno" value="{{ pageno }}" />
 | 
					 | 
				
			||||||
            <input type="submit" value="json" />
 | 
					 | 
				
			||||||
            </div>
 | 
					 | 
				
			||||||
        </form>
 | 
					 | 
				
			||||||
        <form method="post" action="/">
 | 
					 | 
				
			||||||
            <div class="">
 | 
					 | 
				
			||||||
            <input type="hidden" name="q" value="{{ q }}" />
 | 
					 | 
				
			||||||
            <input type="hidden" name="format" value="rss" />
 | 
					 | 
				
			||||||
            <input type="hidden" name="pageno" value="{{ pageno }}" />
 | 
					 | 
				
			||||||
            <input type="submit" value="rss" />
 | 
					 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
        </form>
 | 
					        </form>
 | 
				
			||||||
 | 
					        {% endfor %}
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue