mirror of
https://github.com/exane/not-gwent-online
synced 2024-11-23 19:36:53 +00:00
move register into his own component
This commit is contained in:
parent
01f54264e7
commit
75990b84c7
@ -11,7 +11,8 @@ module.exports = {
|
||||
},
|
||||
|
||||
components: {
|
||||
login: require('./login')
|
||||
login: require('./../../session/components/login'),
|
||||
register: require('./../../session/components/register')
|
||||
},
|
||||
|
||||
ready: function() {
|
||||
|
@ -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>
|
||||
|
||||
|
@ -7,5 +7,4 @@ module.exports = {
|
||||
methods: {
|
||||
|
||||
}
|
||||
|
||||
};
|
16
site/client/app/modules/session/components/register.js
Normal file
16
site/client/app/modules/session/components/register.js
Normal 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;
|
||||
}
|
||||
}
|
||||
};
|
10
site/client/app/modules/session/views/register.html
Normal file
10
site/client/app/modules/session/views/register.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user