{% extends 'web_template/index.html' %}
|
{% load i18n %}
|
{% load static %}
|
{% load problemparser %}
|
{% block stylesheets %}
|
{{ block.super }}
|
<link rel="stylesheet" type="text/css" href="{% static 'datatables/media/css/dataTables.bootstrap.min.css' %}">
|
<link rel="stylesheet" type="text/css" href="{% static 'exam/draggable.css' %}">
|
{% endblock %}
|
{% block page_name %}
|
{% trans 'Create new exam' %}
|
{% endblock %}
|
{% block page_description %}
|
{% endblock %}
|
{%block content %}
|
<div class="box">
|
<div class="box-header">
|
<h3 class="box-title">Exam Form</h3>
|
</div>
|
<!-- /.box-header -->
|
<div class="box-body">
|
<form method="POST" class="post-form" url='{% url 'examnew' %}'>{% csrf_token %}
|
{{ form.as_p }}
|
<input type="hidden" id="user" name="user" value="{{ user.id }}">
|
<button type="submit" class="save btn btn-default">Save</button>
|
</form>
|
</div>
|
</div
|
{% endblock %}
|
|
{% block extra_foot %}
|
{{ block.super }}
|
<script src='{% static 'bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js' %}'></script>
|
<script>
|
|
$(function () {
|
$('#id_date').datepicker({
|
autoclose: true,
|
format: "dd.mm.yyyy"
|
})
|
});
|
</script>
|
|
{% endblock %}
|