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




    {% block js %}
        {{ block.super }}
        $('.btn-save').click(function(){
            $.SubmitForm('#obj_form form','{{request.path}}');
        });
{#        $(".btn-delete").click(function(){#}
{#            $.ajax({#}
{#                type:'GET',#}
{#                url:"/obj/delete/"+{{ id }}+'/',#}
{#                success: function(d) {#}
{#                    alert ("data deleted successfully!");#}
{#                }#}
{#            });#}
{#        });#}


    {% endblock %}



{% block subtitle %}
<ol class="breadcrumb">
        <li>{% trans '会员管理' %}</li>
        <li>{% trans '会员等级设置' %}</li>
</ol>
{% endblock %}



{% block form_content %}
    {{ block.super }}
    <div class="form-group ">
        <label  class="col-sm-2 control-label " >会员等级:</label>
        <div class="col-sm-10">{{ form.level }}</div>
    </div>

    <div class="form-group ">
        <label  class="col-sm-2 control-label ">会员名称:</label>
        <div class="col-sm-10">{{ form.name }}</div>
    </div>

    <div class="form-group ">
        <label  class="col-sm-2 control-label " >会员积分:</label>
        <div class="col-sm-10">{{ form.integral }}</div>
    </div>
    <div class="form-group ">
        <label  class="col-sm-2 control-label " >会员图片:</label>
        <div class="col-sm-10">{{ form.photo }}</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 %}