{% 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 subtitle-1 %}
        {% trans "产品管理" %}
    {% endblock %}
    {% block subtitle-2 %}
        {% trans "促销物料" %}
    {% endblock %}

    <span style="margin-left:10px; color:green; ">
        {% block subtitle-3 %}
            {% if form.instance.id %}
                {% trans "修改" %}
            {% else %}
                {% trans "新建" %}
            {% endif %}
        {% endblock %}

    </span>



{% block form_content %}
    {{ block.super }}
    
    
    <div class="form-group ">
        <label class="col-sm-2 control-label ">{% trans '物料编码' %} </label>
        <div class="col-sm-10">{{ form.code }}</div>
    </div>   
    <div class="form-group ">
        <label class="col-sm-2 control-label ">{% trans '物料名称' %} </label>
        <div class="col-sm-10">{{ form.name }}</div>
    </div>   
    <div class="form-group ">
        <label class="col-sm-2 control-label ">{% trans '规格型号' %} </label>
        <div class="col-sm-10">{{ form.specification }}</div>
    </div>    
    <div class="form-group ">
        <label class="col-sm-2 control-label ">{% trans '计量单位' %} </label>
        <div class="col-sm-10">{{ form.unit }}</div>
    </div>   
    <div class="form-group ">
        <label class="col-sm-2 control-label ">{% trans '备注说明' %} </label>
        <div class="col-sm-10">{{ form.remark }}</div>
    </div>    
   



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