Skip to content

Commit

Permalink
update admin
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekkumarweb committed Jan 21, 2017
1 parent 648c4de commit 203c2b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ exports = module.exports = function (app) {
}
new User.model(data).save().then((usr)=>{
res.json({status: true, user: usr, message: "Registered"})
request('https://nvision.org.in/admin/user/'+usr.userid);
// request('https://nvision.org.in/admin/user/'+usr.userid);
}, err=>{res.json({status: false, message: "User already exists"})})
})

Expand Down
8 changes: 8 additions & 0 deletions templates/views/adminuser.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<h1>Team registration</h1>
<p class="result"></p>
<form method="POST">
<button type="button" class="btn btn-danger clear">Clear</button>
<div class="form-group">
<label for="name">Name : </label>
<input type="text" name="name" id="name" class="form-control" required>
Expand Down Expand Up @@ -76,6 +77,13 @@ <h1>Team registration</h1>
}
})
});
$(".clear").click(function(){
$(".result").html("");
$("#name").val("");
$("#college").val("");
$("#email").val("");
$("#phone").val("");
})
});
</script>

Expand Down

0 comments on commit 203c2b7

Please sign in to comment.