{layout name="layout"}
<div class="card">
    <div class="card-body">
        <form class="form-horizontal" action="__SELF__" method="post">
            <input type="hidden" name="id" value="{$row.id|null}" />
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">用户</label>
                <div class="col-xs-12 col-sm-8 col-md-6">
                    <input type="text" value="{$row.user.username}"  class="form-control" readonly />
                </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 col-md-6">
                    <?php
                        $imgs = explode(',',$row['files']);
                    ?>
                    <ul class="list-inline clearfix lyear-uploads-pic">
                        {volist name="imgs" id="img"}
                        <li class="col-xs-4 col-sm-3 col-md-2 previewitem">'
                            <figure class="btn-preview">'
                                <img src="{$img|cdnurl}" width="120" data-url="{$img|cdnurl}" alt="图片一" class="img-sm img-center img-responsive">'
                            </figure>'
                        </li>
                        {/volist}
                    </ul>
                </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 col-md-6">
                    {volist name="statusList" id="rvo"}
                    <label class="lyear-radio radio-primary radio-inline">
                        <input type="radio" name="status" {if $row.status == $key} checked{/if} value="{$key}">
                        <span>{$rvo}</span>
                    </label>
                    {/volist}
                </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 col-md-6">
                    <textarea name="memo" class="form-control">{$row.memo|null}</textarea>
                </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 col-md-6 layer-footer">
                    <button type="submit" class="btn btn-primary m-r-5">提交</button>
                    <button type="reset" class="btn btn-warning m-r-5">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>