$(document).ready(function() {
//Register review form submition function
- $("#show_publications").click(function() {
+ $("#show_publications").click(function() {
if($(".publications_autre").css('display') == 'none') {
$(".publications_autre").show();
}
}
});
+ $("#btnrechercheavance").click(function() {
+ if($("#rechercheavancee").css('display') == 'none') {
+ $("#rechercheavancee").show();
+ }
+ else {
+ $("#rechercheavancee").hide();
+ }
+ return false;
+ });
+
// Activer le datepicker sur les input de classe "date"
$.datepicker.setDefaults($.datepicker.regional['fr']);
$('input:text.date')
<form method="get" action="">
<table>
{% with search_form as form %}
- {% include "render_form.html" %}
+ {% include "render_search_form.html" %}
{% endwith %}
<tr><th></th><td><input type="submit" class="bouton" value="Rechercher" /></td></tr>
</table>
--- /dev/null
+{% load form_tags %}
+
+{% form_field form.q %}
+
+<tr><td colspan="2"><a href="#" id="btnrechercheavance">Recherche avancée</a></td></tr>
+<tbody id="rechercheavancee" style="display:none;">
+{% for field in form %}
+ {% if field.name != 'q' %}{% include "render_field.html" %}{% endif %}
+{% endfor %}
+</tbody>
<form action="" method="get">
<table>
- {{ search_form.as_table }}
+ {% with search_form as form %}
+ {% include "render_search_form.html" %}
+ {% endwith %}
<tr><th></th><td><input type="submit" value="Rechercher" /></td></tr>
</table>
</form>
<form action="" method="get">
<table>
- {{ search_form.as_table }}
+ {% with search_form as form %}
+ {% include "render_search_form.html" %}
+ {% endwith %}
<tr><th></th><td><input type="submit" value="Rechercher" /></td></tr>
</table>
</form>
<form action="" method="get">
<table>
- {{ search_form.as_table }}
+ {% with search_form as form %}
+ {% include "render_search_form.html" %}
+ {% endwith %}
<tr><th></th><td><input type="submit" name="action" value="Rechercher" /></td></tr>
</table>
</form>
<form action="" method="get">
<table>
- {{ search_form.as_table }}
+ {% with search_form as form %}
+ {% include "render_search_form.html" %}
+ {% endwith %}
<tr><th></th><td><input type="submit" value="Rechercher" /></td></tr>
</table>
</form>
<form method="get" action="">
<table id="repertoire_recherche">
- {{search_form.as_table}}
- <tr><th></th><td><input type="submit" class="bouton" value="Rechercher" /></td></tr>
+ {% with search_form as form %}
+ {% include "render_search_form.html" %}
+ {% endwith %}
+ <tr><th></th><td><input type="submit" class="bouton" value="Rechercher" /></td></tr>
</table>
</form>