Created
November 13, 2014 22:02
-
-
Save w495/6284d21ba7406c658075 to your computer and use it in GitHub Desktop.
Alternative version of https://github.com/DXist/django-daterange-filter/blob/master/daterange_filter/templates/daterange_filter/filter.html designed specially for django-grappelli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load i18n %} | |
{% load i18n admin_urls admin_static admin_list %} | |
{{ spec.form.media }} | |
{% block extrahead %} | |
<style> | |
.calendarbox { | |
margin-left: -200px; | |
z-index: 2000; | |
} | |
.daterange_form p{ | |
float:left; | |
width: 40%; | |
} | |
.daterange_form input.grp-button-time { | |
width: 20%; | |
height: auto; | |
} | |
</style> | |
{% endblock %} | |
{% block javascripts %} | |
<script type="text/javascript" charset="utf-8"> | |
(function($) { | |
$(document).ready(function() { | |
grappelli.initDateAndTimePicker(); | |
setTimeout(grappelli.initDateAndTimePicker, 1000); | |
}); | |
})(grp.jQuery); | |
</script> | |
{% endblock %} | |
<form class='daterange_form' method="GET" action="" accept-charset="utf-8" enctype="text/plain"> | |
{{ spec.form.as_p }} | |
<input type="submit" class="grp-button-time" value="{% trans "Search" %}"> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment