<!-- Bootstrap table -->
<link href="<@contextPath/>/static/common/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<script src="<@contextPath/>/static/common/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="<@contextPath/>/static/common/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="<@contextPath/>/static/common/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>

<!-- 状态字段state模板 -->
<script type="text/html" id="tpl_state">
    {{if state == 1}}
    <span class="label label-primary">已启用</span>
    {{else if state == 2}}
    <span class="label label-warning">已禁用</span>
    {{else if state == 3}}
    <span class="label label-danger">已删除</span>
    {{else}}
    <span class="label label-default">未知</span>
    {{/if}}
</script>

<!-- 性别字段sex模板 -->
<script type="text/html" id="tpl_sex">
    {{if sex == 0}}
    <span class="label label-primary">女</span>
    {{else if sex == 1}}
    <span class="label label-success">男</span>
    {{else if sex == 2}}
    <span class="label label-warning">保密</span>
    {{else}}
    <span class="label label-default">未知</span>
    {{/if}}
</script>