<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>显示可选项目</title>
    <script type="text/javascript" src="{{ url_for("static",filename="vue.js") }}"></script>
</head>

<body>



    <form action="/scence" method="post" >
        <h1>请输入项目名</h1>
        <input name="projectname" />
{#        <h1>请输入测试namespace</h1>#}
{#        <input name="namespace">#}
        {% for index in data %}
            {% for k,v in index.items() %}
                <h1>项目名：{{ k }}（{{ v|length }}）</h1>
                <input value="{{ k }}" name="{{ k }}" hidden="hidden" />

                {% for ii in v %}
                    <input type="checkbox" name="{{ k }}"  value="{{ ii }}" />{{ ii }}
                    <br/>
                {% endfor %}
            {% endfor %}
        {% endfor %}
    <br/>
        <button type="submit">提交</button>
    </form>




{#    <script type="text/javascript">#}
{#		new Vue(#}
{#            {#}
{#                el:"#rootid",#}
{#                data:{#}
{#                    listvalue:[],#}
{#                    valuess:""#}
{#                },#}
{#                methods:{#}
{#                    handleClick:function () {#}
{#                        this.listvalue.push(this.valuess)#}
{#                        alert(this.listvalue)#}
{#                    }#}
{#                }#}
{#            }#}
{#        )#}
{#	</script>#}



</body>
</html>