summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-09-15 15:07:41 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-09-15 15:07:41 +0200
commit8efa55cf66445c30e1791867d8698ff4cec4af89 (patch)
treefb09c04b3738c62c041bd98d773ab4bbfeb9ec48
parentf52fde1b7ab332039126315760e1d884c52221d3 (diff)
downloadIshtar-8efa55cf66445c30e1791867d8698ff4cec4af89.tar.bz2
Ishtar-8efa55cf66445c30e1791867d8698ff4cec4af89.zip
Searches: 6 to 9 visible fileds by default - Operation numeric index in Finds search panel (refs #3215)
-rw-r--r--archaeological_finds/forms.py2
-rw-r--r--ishtar_common/templates/blocks/form_flex_snippet.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index 6c6f41457..81299869f 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -219,6 +219,8 @@ class FindSelect(TableSelect):
base_finds__context_record__parcel__town = get_town_field()
base_finds__context_record__operation__year = forms.IntegerField(
label=_(u"Year"))
+ base_finds__context_record__operation__operation_code = forms.IntegerField(
+ label=_(u"Operation's number (index by year)"))
base_finds__context_record__operation__code_patriarche = \
forms.IntegerField(
label=_(u"Code PATRIARCHE"),
diff --git a/ishtar_common/templates/blocks/form_flex_snippet.html b/ishtar_common/templates/blocks/form_flex_snippet.html
index 97ac37b44..65c38d36e 100644
--- a/ishtar_common/templates/blocks/form_flex_snippet.html
+++ b/ishtar_common/templates/blocks/form_flex_snippet.html
@@ -7,7 +7,7 @@
{% if forloop.counter0 == 0 %}
<ul class='form-flex head-form'>
{% endif %}
-{% if forloop.counter0 == 6 %}
+{% if forloop.counter0 == 9 %}
</ul>
<p class='center'><a href='#' onclick='show_hide_flex(".tail-form");return false'>{% trans "Show / hide advanced search" %}</a></p>
<ul class='form-flex tail-form hidden'>