添加
<div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Qwe')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-caozuotime" class="form-control datetimepicker form-control" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[qwe]" type="text" value="{:date('Y-m-d H:i:s')}"> </div> </div>
编辑
<div class="form-group"> <label class="control-label col-xs-12 col-sm-2">{:__('Qwe')}:</label> <div class="col-xs-12 col-sm-8"> <input id="c-caozuotime" class="form-control datetimepicker form-control" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[qwe]" type="text" value="{$row.qwe|datetime}"> </div> </div>
value="{:date('Y-m-d H:i:s')}"