<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>增加</title>

 <link rel="stylesheet" href="/static/layui/css/layui.css">
</head>
<body>
<a href="device">返回设备信息页</a>
<div class="layui-main">
    <div class="site-content">
        <br><br>
       <h1 class="site-h1">添加信息</h1>
<br><br>
    <form class="layui-form" action="insert_gen?type=device" method="post">
        <div class="layui-form-item">
                <label class="layui-form-label">设备号</label>
                {% if mark=='0' %}
                    <div class="layui-input-block">
                        <input type="text" name="province" value="" required lay-verify="required" placeholder="请输入"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                {% else %}
                    <div class="layui-input-block">
                        <input type="text" name="province" value="{{ detail.shebeihao }}" required
                               lay-verify="required" placeholder="请输入"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                {% endif %}

            </div>
            <div class="layui-form-item">

                <label class="layui-form-label">设备类型</label>
                {% if mark=='0' %}
                    <div class="layui-input-block">
                        <input type="text" name="city" required lay-verify="required" placeholder="请输入"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                {% else %}
                    <div class="layui-input-block">
                        <input type="text" name="city" value="{{ detail.shebeileixing}}" required lay-verify="required"
                               placeholder="请输入"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                {% endif %}
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">是否使用</label>
                {% if mark=='0' %}
                    <div class="layui-input-block">
                        <input type="text" name="number" required lay-verify="required" placeholder="请输入"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                {% else %}
                    <div class="layui-input-block">
                        <input type="text" name="number" value="{{ detail.shifoushiyong}}" required lay-verify="required"
                               placeholder="请输入"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                {% endif %}

            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">用于哪个患者</label>
                {% if mark=='0' %}
                    <div class="layui-input-block">
                        <input type="text" name="belong" required lay-verify="required" placeholder="请输入"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                {% else %}
                    <div class="layui-input-block">
                        <input type="text" name="belong" value="{{ detail.yongyunagehuanzhe_huanzhehao_ }}" required lay-verify="required"
                               placeholder="请输入"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                {% endif %}
            </div>


        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
    </div>
</div>
<script src="/static/layui/layui.js"></script>
<script>
    layui.use('form', function () {
        var form = layui.form;
    });
</script>
</body>
</html>