{% 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.address }}</div>
    </div>   
    <div class="form-group ">
        <label class="col-sm-2 control-label ">{% trans '联系电话:' %} </label>
        <div class="col-sm-10">{{ form.cellphone }}</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 %}
