{% extends 'obj_form.html' %}
{% load i18n %}


{% block subtitle %}
<ol class="breadcrumb">
        <li>{% trans '公司管理' %}</li>
        <li>{% trans '公司资料' %}</li>
</ol>
{% endblock %}

{% block form_content %}
<script>

    $(document).ready(function () {

        $('.btn-save').click(function () {
            $.SubmitForm('#obj_form form', '{{request.path}}',function (){
                $('.alert').fadeIn();
            });
        }); 
		
    })

</script>
<style>
    input[type=checkbox]{
        display: inline-block;
        width: auto;
        height: auto;
        margin-top: 10px;
    }
</style>
<div class="alert alert-success" role="alert" style="display: none">提示：保存成功！</div>
<div class="form-group">
    <label class="col-sm-2 control-label ">资料类别</label>
    <div class="col-sm-8">{{ form.category }}</div>
</div>
<div class="form-group ">
    <label class="col-sm-2 control-label ">文件类型</label>
    <div class="col-sm-8">{{ form.media_type }}
    </div>
</div>
<div class="form-group ">
    <label class="col-sm-2 control-label ">文件地址</label>
    <div class="col-sm-8">{{ form.url }}</div>
</div>
<div class="form-group ">
    <label class="col-sm-2 control-label ">备注</label>
    <div class="col-sm-8">{{ form.remark }}</div>
</div>
<div>
    <a class="btn btn-primary btn-save" type="button" style="float:right;">保存</a>
</div>
{% endblock %}