Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MJU-POPS
ckanext-dgu
Commits
f10878fb
Commit
f10878fb
authored
Apr 20, 2015
by
Tom Mortimer-Jones
Browse files
[1252] Change form to div to avoid it being submitted by spiders
parent
8f65e5c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
ckanext/dgu/theme/templates/package/search.html
View file @
f10878fb
...
...
@@ -35,7 +35,7 @@
<div
class=
"module-content"
>
<a
href=
"#"
class=
"visible-sm visible-xs btn btn-primary btn-sm show-facets"
>
Show Search Facets
»
</a>
{% block form %}
<
form
class=
"form-inline pull-right"
id=
"search-sort-by"
>
<
div
class=
"form-inline pull-right"
id=
"search-sort-by"
>
{% macro sort_option(text, value, selected, disabled=False) %}
<option
value=
"{{value}}"
{%
if
selected
%}
selected=
"selected"
{%
endif
%}{%
if
disabled
%}
disabled=
"disabled"
{%
endif
%}
>
{{text}}
</option>
{% endmacro %}
...
...
@@ -51,7 +51,7 @@
<a
class=
"feed-icon"
href=
"{{ h.url(controller='feed', action='custom') }}?{{ c.search_url_params }}"
>
<i
class=
"icon-rss-sign"
></i>
</a>
</
form
>
</
div
>
{% endblock %}
{% if not c.query_error %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment