{% 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.invtype }}</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 '计量单位:' %} </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-1">{{ form.is_default }}</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 %}
