{% extends "admin.html" %}

{% block main %}
<div class="container">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="homeworkName">
                    发布新作业
                </h4>
            </div>
            <div class="modal-body">
                <!--上传信息表格-->
                <form id="upload" enctype='multipart/form-data' method='POST'>
                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text">作业名称</span>
                        </div>
                        <label for="name"></label>
                        <input type="text" class="form-control" id="name" name="name">
                    </div>

                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text">作业描述</span>
                        </div>
                        <label for="describe"></label>
                        <input type="text" class="form-control" id="describe" name="describe" style="height:50px;width100px;">
                    </div>
                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text">截止时间</span>
                        </div>
                        <label for="deadline"></label>
                        <input type="text" class="form-control" id="deadline" name="deadline">
                    </div>
                    <div class="modal-footer">
                        <button type="button" onclick="publish()" class="btn btn-primary">提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $('.form_datetime').datetimepicker({
        //language:  'fr',
        language: 'zh-CN',
        //format : 'yyyy-mm-dd hh:ii:ss',//日期格式。可以将日期格式，定成年月日时分秒。
        format: 'yyyy-mm-dd hh:00:00',//日期格式。可以将日期格式，定成年月日时，分秒为0。
        weekStart: 1,
        todayBtn: 1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 2,
        forceParse: 0,
        showMeridian: 1
    });
</script>
{% endblock %}
