<div ms-controller="RecordDetails">
    <div style="margin-bottom:5px;">
        <ul class="tabWarp" style="padding-left: 10px; width: 99%;">
            <li class="hover" style="padding:0px 5px;width:auto;min-width:90px;">{{Detailsmodel.RecordTag}}</li>
        </ul>
    </div>
    <table width="100%" border="0" cellspacing="1" cellpadding="0" id="info">
        <tbody>
            <tr ms-if="Show==0 && Detailsmodel.RecordContent">
                <td colspan="2">
                    <div style="height: 425px; width: 98%; margin-top: 20px; margin-left: 20px;">
                        {{Detailsmodel.RecordContent|html}}  
                    </div>
                </td>
            </tr>
            <tr ms-if="Show==0 && !Detailsmodel.RecordContent">
                <td colspan="2" class="tipContent" style="text-align:center;vertical-align:middle;height:500px;font-size:18px;">
                    暂无记事内容！
                </td>
            </tr>
            <tr ms-if="Show==1">
                <td style="width: 50px;" align="right">标题 ：
                </td>
                <td height="25" width="50px;" align="left">
                    <input type="text" style="width: 200px;" ms-duplex="Detailsmodel.RecordTag" />&nbsp;&nbsp;<span class="tipico">&nbsp;&nbsp;</span><a style="color: gray;">修改标题左侧菜单同步修改，如要多菜单修改到客户记事设置功能修改</a>
                </td>

            </tr>
            <tr ms-if="Show==1">
                <td width="50px;" align="right">内容 ：
                </td>
                <td>
                    <textarea id="RecordContent" rows="2" cols="20" style="height: 400px; width: 98%;" ms-duplex="Detailsmodel.RecordContent"></textarea>
                </td>
            </tr>
            <tr>
                <td align="right"></td>
                <td align="right">
                    <input type="hidden" ms-duplex="Detailsmodel.Id" />
                    <input type="hidden" ms-duplex="Detailsmodel.CoustomId" />
                    <input type="hidden" ms-duplex="Detailsmodel.CreateId" />
                    <input type="hidden" ms-duplex="Detailsmodel.CreateName" />
                    <input type="hidden" ms-duplex="Detailsmodel.CreateDate" />
                    <input type="hidden" ms-duplex="Detailsmodel.UpdateId" />
                    <input type="hidden" ms-duplex="Detailsmodel.UpdateDate" />
                    <input type="hidden" ms-duplex="Detailsmodel.UpdateName" />
                    <input type="hidden" ms-duplex="Detailsmodel.RecordName" />
                    <input type="button" ms-if="Show==0" class="btn btn-primary" value="编辑" ms-click="EditDetails">
                    <input type="button" ms-if="Show==1" class="btn btn-primary" value="提交" ms-click="formSubmit">
                    <input type="button" ms-if="Show==1" class="btn btn-primary" value="取消" ms-click="cancelEdit">
                </td>
            </tr>
        </tbody>
    </table>
</div>
