You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
5.0 KiB
84 lines
5.0 KiB
<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">{:__('商品类型')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
{:build_radios('row[goods_type]', ['1'=>__('商品')], $row.goods_type)}
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Owner_id')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-owner_id" data-rule="" data-source="user/user/selectpage" data-primary-key="id" data-field="nickname" data-max-select-limit="1000"data-multiple="false" class="form-control selectpage" name="row[owner_id]" type="text" value="{$row.owner_id}" data-order-by="id" data-format-item="{nickname} - <img class='img-sm img-center img-circle' src='{avatar}'> - {mobile}" readonly>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('现价')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-price" data-rule="" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price}">
|
|
</div>
|
|
</div>
|
|
<!-- <div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('商品形态')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
{:build_radios('row[goods_form]', ['1'=>__('虚拟商品'), '0'=>__('委托订单商品')], $row.goods_form)}
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('定时上架(虚拟商品)')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-on_time" data-rule="" class="form-control datetimepicker" data-date-format="HH:mm:ss" data-use-current="true" name="row[on_time]" type="text" value="{$row.on_time}">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('定时下架(虚拟商品)')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-off_time" data-rule="" class="form-control datetimepicker" data-date-format="HH:mm:ss" data-use-current="true" name="row[off_time]" type="text" value="{$row.off_time}">
|
|
</div>
|
|
</div> -->
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('所属仓库')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<input id="c-warehouse_id" data-source="warehouse/selectpage" data-primary-key="id" data-field="title" data-max-select-limit="1000"data-multiple="false" class="form-control selectpage" name="row[warehouse_id]" type="text" value="{$row.warehouse_id}" data-order-by="id desc" >
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
|
|
<div class="col-xs-12 col-sm-8">
|
|
<div class="input-group">
|
|
<input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image}">
|
|
<div class="input-group-addon no-border no-padding">
|
|
<span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
|
|
<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-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-image"></span>
|
|
</div>
|
|
<ul class="row list-inline faupload-preview" id="p-image"></ul>
|
|
</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 editor" rows="5" name="row[content]" cols="50">{$row.content}</textarea>
|
|
</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">
|
|
{:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row.status)}
|
|
</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>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|