1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-10-31 10:36:53 +00:00

move register into his own component

This commit is contained in:
devfake 2015-06-23 14:32:26 +02:00
parent 01f54264e7
commit 75990b84c7
6 changed files with 29 additions and 12 deletions

View File

@ -11,7 +11,8 @@ module.exports = {
},
components: {
login: require('./login')
login: require('./../../session/components/login'),
register: require('./../../session/components/register')
},
ready: function() {

View File

@ -11,16 +11,7 @@
<div class="container-form-landing">
<form class="form-session">
<input type="text" placeholder="Username" class="field-session" autofocus>
<input type="text" placeholder="E-Mail" class="field-session">
<input type="password" placeholder="Password" class="field-session">
<div class="wrap-btn-action btn-register-action">
<input type="submit" value="Register" class="btn-action">
<i class="icon-action-load"></i>
</div>
</form>
<register></register>
<span class="choose">or</span>

View File

@ -0,0 +1,16 @@
module.exports = {
template: require('./../views/register.html'),
inherit: true,
methods: {
register: function(e) {
e.preventDefault();
console.log("bal");
return false;
}
}
};

View File

@ -0,0 +1,10 @@
<form class="form-session">
<input type="text" placeholder="Username" class="field-session" autofocus>
<input type="text" placeholder="E-Mail" class="field-session">
<input type="password" placeholder="Password" class="field-session">
<div class="wrap-btn-action btn-register-action" v-on="click: register">
<input type="submit" value="Register" class="btn-action" v-on="submit: register">
<i class="icon-action-load"></i>
</div>
</form>