django-select2/tests/testapp/templates/form.html

26 lines
491 B
HTML
Raw Normal View History

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