<!-- 继承公共的 form -->
{{extend name="public/module/form" /}}

<!-- 表单顶部操作栏 -->
{{block name="form_operate_top"}}
    <a href="{{:MyUrl('admin/answer/saveinfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> 新增</a>
    <!-- 父级内容 -->
    {__block__}
{{/block}}

<!-- 扩展 -->
{{block name="form_extend"}}
    <!-- 处理窗口 -->
    <div class="am-popup am-radius" id="my-popup-reply">
        <div class="am-popup-inner">
            <div class="am-popup-hd">
                <h4 class="am-popup-title">回复</h4>
                <span data-am-modal-close class="am-close">&times;</span>
            </div>
            <div class="am-popup-bd">
                <dl class="dl-content">
                    <dt>用户信息</dt>
                    <dd class="user-info">
                        <img src="{{$attachment_host}}/static/common/images/user-img-sm.gif" class="am-img-thumbnail am-radius am-align-left am-margin-right-xs am-margin-bottom-0" width="35" height="35" />
                        <ul class="user-base">
                            <li class="username">名称：<span>...</span></li>
                            <li class="nickname">昵称：<span>...</span></li>
                            <li class="mobile">手机：<span>...</span></li>
                            <li class="email">邮箱：<span>...</span></li>
                        </ul>
                    </dd>
                </dl>

                <form class="am-form form-validation-reply" action="{{:MyUrl('admin/answer/reply')}}" method="POST" request-type="ajax-reload" enctype="multipart/form-data">
                    <div class="am-form-group">
                        <label>回复内容</label>
                        <textarea name="reply" rows="5" class="am-radius" placeholder="回复内容格式 2~230 个字符" data-validation-message="回复内容格式 2~230 个字符" minlength="2" maxlength="230" required></textarea>
                    </div>

                    <div class="am-form-group reply-submit am-form-group-refreshing t-c">
                        <input type="hidden" name="id" value="" />
                        <button type="submit" class="am-btn am-btn-success am-radius am-btn-sm" data-am-loading="{loadingText:'处理中...'}">回复</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
{{/block}}