玉形似乎没有发布

时间:2013-12-02 23:21:39

标签: node.js express pug

民间,   以下代码似乎没有正确提交表单。请更正

block main
    .container
        form.form-signin(name='signin', action='/auth' method='post')
            h2.form-signin-heading Please sign in
            input.form-control(type='text', placeholder='Email address', autofocus='autofocus', id='username')
            input.form-control(type='password', placeholder='Password', id='password')
            label.checkbox
                input(type='checkbox', value='remember-me')
                | Remember me
            button.btn.btn-lg.btn-primary.btn-block(type='submit') Sign in
                 

1 个答案:

答案 0 :(得分:0)

已修复,未创建

.container
        form.form-signin(action='/auth' method='post')
            h2.form-signin-heading Please sign in
            input.form-control(type='text', placeholder='Email address', autofocus='autofocus', name='username')
            input.form-control(type='password', placeholder='Password', name='password')
            label.checkbox
                input(type='checkbox', value='remember-me')
                | Remember me
            button.btn.btn-lg.btn-primary.btn-block(type='submit',name='submit') Sign in