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



{% block js %}
    {{ block.super }}
    $('.btn-save').click(function(){
        $.SubmitForm('#obj_form form','{{request.path}}');
    });


    $('#id_dt').datepicker({dateFormat: "yy-mm-dd"})
    $('.id_customize').hide()
    $('#id_customize').prop('checked',true)

{% 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 ">节日名称:</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.dt }}</div>
    </div>
    <div class="form-group id_customize">
        <label class="col-sm-2 control-label ">是否自定义:</label>
        <div class="col-sm-10">{{ form.customize }}</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="submit" style="float:right;">{% trans '保存' %}</a>
    </div>
{% endblock %}


