base_info.html 4.17 KB

<form id="form_base_info">
    <div class="row">

        <div class="form-group">
            <label class="col-sm-2 control-label">促销名称&nbsp;&nbsp;<span class="red">*</span></label>
            
            <div class="col-sm-10">
                <input type="text" id="title" class="form-control" value="[[title]]" placeholder="促销名称" required/>
            </div>                     
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">促销描述 </label>
            <div class="col-sm-10">
                <textarea style="width: 400px; height: 90px;" name="description" id="description">[[description]]</textarea>
            </div>                                
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">渠道</label>                                
            <div class="col-sm-6">
                <label class="radio-inline" style="padding-left: 0">
                    <input type="checkbox" name="fitChannel" value="1">有货官网</label>
                <label class="radio-inline">
                    <input type="checkbox" name="fitChannel" value="2">iphone</label>
                <label class="radio-inline">
                    <input type="checkbox" name="fitChannel" value="3">android</label> 
                <input type="hidden" id="fitChannel" name="fitChannel" value="[[fitChannel]]" for="checkbox" placeholder="渠道" />
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">起始时间&nbsp;&nbsp;<span class="red">*</span></label>                                
            <div class="col-sm-4">
                <input id="startTime" class="form-control" jsaction="time:end:endTime" type="text" placeholder="起始时间" 
                value="[[startTimeStr]]" readonly required/>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">结束时间&nbsp;&nbsp;<span class="red">*</span></label>
            <div class="col-sm-4">
                <input id="endTime" class="form-control" jsaction="time:start:startTime"  type="text" placeholder="结束时间" 
                value="[[endTimeStr]]" readonly required/>
            </div>                               
        </div>
        
        <div class="form-group">
            <label class="col-sm-2 control-label">优先级&nbsp;&nbsp;<span class="red">*</span></label>
            <div class="col-sm-10">
                <input type="text" id="priority" name='priority' class="form-control" value="[[priority]]" required/>
            </div>
        </div>                            

        <div class="form-group">
            <label class="col-sm-2 control-label">状态 <span class="red">*</span></label>
            <div class="col-sm-4">
                <label class="radio-inline">
                    <input type="radio" name="status" value="1">启用</label>
                <label class="radio-inline">
                    <input type="radio" name="status" value="0" selected="selected">不启用</label>                                    
                <input type="hidden" id="status" name="status" value="[[status||'0']]" for="radio" required />
            </div>                                
        </div> 
        <div class="form-group">
            <label class="col-sm-2 control-label">展示状态 <span class="red">*</span></label>
            <div class="col-sm-4">
                <label class="radio-inline">
                    <input type="radio" name="showStatus" value="1">展示</label>
                <label class="radio-inline">
                    <input type="radio" name="showStatus" value="0" selected="selected">不展示</label>                                    
                <input type="hidden" id="showStatus" name="showStatus" value="[[showStatus||'0']]" for="radio" required />
            </div>                                
        </div>

    </div>

    <input type="hidden" id="id" value="[[id]]">                            

    <div class="panel-footer">
        <button class="btn btn-primary" id="save_baseinfo">保存</button>
    </div>

</form>