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
commit95002d6c80e0f13bd7066be4555a8d6742ea0f4b (patch)
treefb09c04b3738c62c041bd98d773ab4bbfeb9ec48
parent4b7ee2dcb97a3b01670949a8de5ee6029c270f04 (diff)
downloadIshtar-95002d6c80e0f13bd7066be4555a8d6742ea0f4b.tar.bz2
Ishtar-95002d6c80e0f13bd7066be4555a8d6742ea0f4b.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'>