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

{% block css %}
    {{ block.super }}    
   
{% endblock %}



{% 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 %}   

    


{% block form_content %}
    {{ block.super }}
    
    <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.code }}</div>
    </div>      
    <div class="form-group ">
        <label class="col-sm-2 control-label ">{% trans '计量类别:' %} </label>
        <div class="col-sm-10">{{ form.measure }}</div>
    </div>
    <div class="form-group ">
      <label class="col-sm-2 control-label ">{% trans '规格(例如:1*4*6):' %} </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 %}
