123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <form id="edit-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">{:__('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="$row.type"}selected{/in}>{$vo}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="{$row.company_id|htmlentities}">
- </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" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Info')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-info" class="form-control" name="row[info]" type="text" value="{$row.info|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Servicetype_id')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-servicetype_id" data-rule="required" data-source="servicetype/index" data-field="title" class="form-control selectpage" name="row[servicetype_id]" type="text" value="{$row.servicetype_id|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-images" class="form-control" size="50" name="row[images]" type="text" value="{$row.images|htmlentities}">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-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-images"></span>
- </div>
- <ul class="row list-inline faupload-preview" id="p-images"></ul>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Oldprice')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-oldprice" class="form-control" step="0.01" name="row[oldprice]" type="number" value="{$row.oldprice|htmlentities}">
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-num" class="form-control" step="1" name="row[num]" type="number" value="{$row.num|htmlentities}">
- </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" class="form-control" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Content_images')}:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="input-group">
- <input id="c-content_images" class="form-control" size="50" name="row[content_images]" type="textarea" value="{$row.content_images|htmlentities}">
- <div class="input-group-addon no-border no-padding">
- <span><button type="button" id="faupload-content_images" class="btn btn-danger faupload" data-input-id="c-content_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-content_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
- <span><button type="button" id="fachoose-content_images" class="btn btn-primary fachoose" data-input-id="c-content_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-content_images"></span>
- </div>
- <ul class="row list-inline faupload-preview" id="p-content_images"></ul>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
- </div>
- </div>
- <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="$row.status"}checked{/in} /> {$vo}</label>
- {/foreach}
- </div>
- </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-primary btn-embossed disabled">{:__('OK')}</button>
- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
- </div>
- </div>
- </form>
|