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.
 
 
 
 
 
 
ymww_backend/application/admin/view/warehouse/edit.html

79 lines
4.7 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">{:__('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" value="{$row.title|htmlentities}">
</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|htmlentities}">
<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">{:__('Start_time')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-start" data-rule="required" class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[start]" type="text" value="{$row.start}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-end" class="form-control datetimepicker" data-date-format="HH:mm" data-use-current="true" name="row[end]" type="text" value="{$row.end}">
</div>
</div>
<!-- <div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Before_activity_hour')}:</label>
<div class="col-xs-6 col-sm-4">
<input id="c-before_activity_hour" data-rule="required" min="0" class="form-control" name="row[before_activity_hour]" type="number" value="{$row.before_activity_hour|htmlentities}">
</div>
<span >小时不可委托上架</span>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('After_activity_hour')}:</label>
<div class="col-xs-6 col-sm-4">
<input id="c-after_activity_hour" data-rule="required" min="0" class="form-control" name="row[after_activity_hour]" type="number" value="{$row.after_activity_hour|htmlentities}">
</div>
<span >小时不可委托上架</span>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Entrusted_ratio')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-entrusted_ratio" data-rule="required" min="0" class="form-control" step="0.01" name="row[entrusted_ratio]" type="number" value="{$row.entrusted_ratio|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Entrustment_ratio')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-entrustment_ratio" data-rule="required" min="0" class="form-control" step="0.01" name="row[entrustment_ratio]" type="number" value="{$row.entrustment_ratio|htmlentities}">
</div>
</div> -->
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Limit_buy_num')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-limit_buy_num" data-rule="required" min="0" class="form-control" name="row[limit_buy_num]" type="number" value="{$row.limit_buy_num|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">
{: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>