add.html 13.6 KB
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('On')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-on" data-rule="required" class="form-control selectpicker" name="row[on]">
                {foreach name="onList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Seller_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-seller_id" data-rule="required" data-source="seller/index" data-field="title" class="form-control selectpage" name="row[seller_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Family_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-family_name" data-rule="required" class="form-control" name="row[family_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Family_mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-family_mobile" data-rule="required" class="form-control" name="row[family_mobile]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Call')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-call" data-rule="required" class="form-control" name="row[call]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" data-rule="required" class="form-control" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Portrait_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-portrait_image" data-rule="required" class="form-control" size="50" name="row[portrait_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-portrait_image" class="btn btn-danger faupload" data-input-id="c-portrait_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-portrait_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-portrait_image" class="btn btn-primary fachoose" data-input-id="c-portrait_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-portrait_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-portrait_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Die_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-die_name" class="form-control" name="row[die_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Die_sex')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-die_sex" class="form-control" name="row[die_sex]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Die_birthday')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-die_birthday" class="form-control" name="row[die_birthday]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Die_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-die_time" class="form-control"  name="row[die_time]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Happy_year')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-happy_year" class="form-control" name="row[happy_year]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Go_out')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-go_out" class="form-control" name="row[go_out]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Love_what')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-love_what" class="form-control" name="row[love_what]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hall_address')}:</label>
        <div class="col-xs-12 col-sm-8" data-toggle="addresspicker" data-input-id="c-hall_address" data-lat-id="c-hall_lat" data-lng-id="c-hall_lng">
            <input id="c-hall_address" class="form-control" name="row[hall_address]" type="text">
        </div>
    </div>
    <div class="form-group" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hall_lng')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hall_lng" class="form-control" name="row[hall_lng]" type="text">
        </div>
    </div>
    <div class="form-group" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hall_lat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hall_lat" class="form-control" name="row[hall_lat]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mourn_address')}:</label>
        <div class="col-xs-12 col-sm-8" data-toggle="addresspicker" data-input-id="c-mourn_address" data-lat-id="c-mourn_lat" data-lng-id="c-mourn_lng">
            <input id="c-mourn_address" class="form-control" name="row[mourn_address]" type="text">
        </div>
    </div>
    <div class="form-group" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mourn_lng')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mourn_lng" class="form-control" name="row[mourn_lng]" type="text">
        </div>
    </div>
    <div class="form-group" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mourn_lat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mourn_lat" class="form-control" name="row[mourn_lat]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mourn_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mourn_time" class="form-control"  name="row[mourn_time]" type="text" ">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Thank_address')}:</label>
        <div class="col-xs-12 col-sm-8" data-toggle="addresspicker" data-input-id="c-thank_address" data-lat-id="c-thank_lat" data-lng-id="c-thank_lng">
            <input id="c-thank_address" class="form-control" name="row[thank_address]" type="text">
        </div>
    </div>
    <div class="form-group" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Thank_lng')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-thank_lng" class="form-control" name="row[thank_lng]" type="text">
        </div>
    </div>
    <div class="form-group" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Thank_lat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-thank_lat" class="form-control" name="row[thank_lat]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Thank_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-thank_time" class="form-control"  name="row[thank_time]" type="text" ">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('After_images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-after_images" class="form-control" size="50" name="row[after_images]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-after_images" class="btn btn-danger faupload" data-input-id="c-after_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-after_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-after_images" class="btn btn-primary fachoose" data-input-id="c-after_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-after_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-after_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Moban_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-moban_id" data-rule="required" data-source="moban/index" class="form-control selectpage" name="row[moban_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Round_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-round_type" data-rule="required" class="form-control selectpicker" name="row[round_type]">
                {foreach name="roundTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Qrcode_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-qrcode_image" class="form-control" size="50" name="row[qrcode_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-qrcode_image" class="btn btn-danger faupload" data-input-id="c-qrcode_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-qrcode_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-qrcode_image" class="btn btn-primary fachoose" data-input-id="c-qrcode_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-qrcode_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-qrcode_image"></ul>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>