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


    {% block js %}
        {{ block.super }}
        $('.btn-save').click(function(){      
            $.SubmitForm('#obj_form form','{{request.path}}');
        });   
    {% endblock %}   



{% block form_content %}
    {{ block.super }}    
    <div class="form-group ">
        <label class="col-sm-2 control-label ">菜单标题</label>
        <div class="col-sm-10">{{ form.title }}</div>
    </div>   

    <div class="form-group ">
        <label class="col-sm-2 control-label ">上级菜单</label>
        <div class="col-sm-10" style='margin-top:8px;'>{{form.instance.parent.title}}</div>
    </div>

    <div class="form-group ">
        <label class="col-sm-2 control-label ">菜单图标</label>
        <div class="col-sm-10">{{ form.icon }}</div>
    </div>
    
    <div class="form-group ">
        <label class="col-sm-2 control-label ">URL地址</label>
        <div class="col-sm-10">{{ form.url }}</div>
    </div>
    
    <div class="form-group ">
        <label class="col-sm-2 control-label ">顺序序号</label>
        <div class="col-sm-10">{{ form.priority }}</div>
    </div>
    <div class="form-group ">
        <label class="col-sm-2 control-label ">备注说明</label>
        <div class="col-sm-10">{{ form.remark }}</div>
    </div>

    
    <div>
        <a class="btn btn-primary btn-save" type="button" style="float:right;">{% trans '保存' %}</a>
    </div>
{% endblock %}
