add.html 16.4 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">{:__('Card_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card_ids" data-rule="required" data-source="activity_card/index" data-field="title"
                   data-multiple="true" class="form-control selectpage" name="row[card_ids]" type="text" value="">
        </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">{:__('Sport_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-sport_image" class="form-control" size="50" name="row[sport_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-sport_image" class="btn btn-danger faupload"
                                  data-input-id="c-sport_image"
                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                  data-multiple="false" data-preview-id="p-sport_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-sport_image" class="btn btn-primary fachoose"
                                  data-input-id="c-sport_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-sport_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-sport_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sport_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-sport_type" data-rule="required" class="form-control selectpicker" name="row[sport_type]">
                {foreach name="sportTypeList" item="vo"}
                <option value="{$key}" {in name="key" value="" }selected{
                /in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group" id="web1" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sport_web')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sport_web" data-rule="" class="form-control" name="row[sport_web]" type="text">
        </div>
    </div>
    <div class="form-group" id="goods1">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sport_goods_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sport_Goods_id" data-rule="" data-source="Goods/index" data-field="title"
                   class="form-control selectpage" data-multiple="false" name="row[sport_Goods_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Eat_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-eat_image" class="form-control" size="50" name="row[eat_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-eat_image" class="btn btn-danger faupload"
                                  data-input-id="c-eat_image"
                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                  data-multiple="false" data-preview-id="p-eat_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-eat_image" class="btn btn-primary fachoose"
                                  data-input-id="c-eat_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-eat_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-eat_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Eat_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-eat_type" data-rule="required" class="form-control selectpicker" name="row[eat_type]">
                {foreach name="eatTypeList" item="vo"}
                <option value="{$key}" {in name="key" value="" }selected{
                /in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group" id="web2" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Eat_web')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-eat_web" data-rule="" class="form-control" name="row[eat_web]" type="text">
        </div>
    </div>
    <div class="form-group" id="goods2">
        <label class="control-label col-xs-12 col-sm-2">{:__('Eat_goods_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-eat_Goods_id" data-rule="" data-source="Goods/index" data-field="title"
                   class="form-control selectpage" data-multiple="false" name="row[eat_Goods_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Body_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-body_image" class="form-control" size="50" name="row[body_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-body_image" class="btn btn-danger faupload"
                                  data-input-id="c-body_image"
                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                  data-multiple="false" data-preview-id="p-body_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-body_image" class="btn btn-primary fachoose"
                                  data-input-id="c-body_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-body_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-body_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Body_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-body_type" data-rule="required" class="form-control selectpicker" name="row[body_type]">
                {foreach name="eatTypeList" item="vo"}
                <option value="{$key}" {in name="key" value="" }selected{
                /in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group" id="web3" style="display:none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Body_web')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-body_web" data-rule="" class="form-control" name="row[body_web]" type="text">
        </div>
    </div>
    <div class="form-group" id="goods3">
        <label class="control-label col-xs-12 col-sm-2">{:__('Body_goods_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-body_Goods_id" data-rule="" data-source="Goods/index" data-field="title"
                   class="form-control selectpage" data-multiple="false" name="row[body_Goods_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Season_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-season_image" class="form-control" size="50" name="row[season_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-season_image" class="btn btn-danger faupload"
                                  data-input-id="c-season_image"
                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                  data-multiple="false" data-preview-id="p-season_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-season_image" class="btn btn-primary fachoose"
                                  data-input-id="c-season_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-season_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-season_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Season_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-season_type" data-rule="required" class="form-control selectpicker" name="row[season_type]">
                {foreach name="seasonTypeList" item="vo"}
                <option value="{$key}" {in name="key" value="" }selected{
                /in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group" id="web4" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Season_web')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-season_web" data-rule="" class="form-control" name="row[season_web]" type="text">
        </div>
    </div>
    <div class="form-group" id="goods4">
        <label class="control-label col-xs-12 col-sm-2">{:__('Season_goods_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-season_Goods_id" data-rule="" data-source="Goods/index" data-field="title"
                   class="form-control selectpage" data-multiple="false" name="row[season_Goods_id]" type="text"
                   value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Work_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-work_image" class="form-control" size="50" name="row[work_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-work_image" class="btn btn-danger faupload"
                                  data-input-id="c-work_image"
                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                  data-multiple="false" data-preview-id="p-work_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-work_image" class="btn btn-primary fachoose"
                                  data-input-id="c-work_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-work_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-work_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Work_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-work_type" data-rule="required" class="form-control selectpicker" name="row[work_type]">
                {foreach name="workTypeList" item="vo"}
                <option value="{$key}" {in name="key" value="" }selected{
                /in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group" id="web5" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Work_web')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-work_web" data-rule="" class="form-control" name="row[work_web]" type="text">
        </div>
    </div>
    <div class="form-group" id="goods5">
        <label class="control-label col-xs-12 col-sm-2">{:__('Work_goods_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-work_Goods_id" data-rule="" data-source="Goods/index" data-field="title" data-multiple="false"
                   class="form-control selectpage" name="row[work_Goods_id]" type="text" value="">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Face_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-face_image" class="form-control" size="50" name="row[work_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-face_image" class="btn btn-danger faupload"
                                  data-input-id="c-work_image"
                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                  data-multiple="false" data-preview-id="p-work_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-face_image" class="btn btn-primary fachoose"
                                  data-input-id="c-work_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-work_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-face_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Face_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-face_type" data-rule="required" class="form-control selectpicker" name="row[work_type]">
                {foreach name="workTypeList" item="vo"}
                <option value="{$key}" {in name="key" value="" }selected{
                /in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group" id="web6" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Face_web')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-face_web" data-rule="" class="form-control" name="row[work_web]" type="text">
        </div>
    </div>
    <div class="form-group" id="goods6">
        <label class="control-label col-xs-12 col-sm-2">{:__('Face_goods_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-face_Goods_id" data-rule="" data-source="Goods/index" data-field="title" data-multiple="false"
                   class="form-control selectpage" name="row[work_Goods_id]" type="text" value="">
        </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>