django-select2/tests/testapp/templates/form.html
Raony Guimarães fb3bc19595 Fix Test suite for Django 1.10+
* Fix template dir

This is necessary to make your example work!

* Fix Jquery2 url
2016-11-04 15:52:29 +01:00

25 lines
491 B
HTML

{% load staticfiles %}
<!DOCTYPE html>
<html>
<head>
{{ form.media.css }}
<style type="text/css">
select {
width: 200px;
}
</style>
</head>
<body>
<form method="post" action="">
{% csrf_token %}
{{ form }}
<input type="submit" value="Submit Form"/>
</form>
<script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
<script type="text/javascript">
window.onerror = function (msg) {
$("body").attr("JSError", msg);
}
</script>
{{ form.media.js }}
</body>