Skip to content

Commit

Permalink
Merge pull request #326 from harena-lab/development
Browse files Browse the repository at this point in the history
feat (term): new layout
  • Loading branch information
santanche authored Jan 25, 2022
2 parents c8c8160 + f16d6be commit e73c6df
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 50 deletions.
43 changes: 0 additions & 43 deletions src/adonisjs/public/user/js/user-signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,6 @@ class UserSignup {
else if (parameters.password.length == 0)
this._showFeedback('A senha é obrigatória.')
else {
/*
if (parameters.agree && parameters.agree.length > 0 && parameters.agree == 'agree') {
if (parameters.name_responsible.length == 0)
this._showFeedback('Como você concordou com o termo, precisa informar o nome do responsável no termo.')
else if (parameters.name_participant == 0)
this._showFeedback('Como você concordou com o termo, precisa repetir o nome do participante no termo.')
else if (parameters.date_agree == 0)
this._showFeedback('Como você concordou com o termo, precisa informar a data.')
else if (parameters.email_responsible == 0)
this._showFeedback('Como você concordou com o termo, precisa informar/repetir o email do responsável.')
}
*/
// if (feed.innerHTML.length == 0) {
console.log('========== creating user ==========')
const login = parameters.login.replace(/ /g, '_')
const userJson = {
Expand Down Expand Up @@ -124,37 +111,7 @@ class UserSignup {
'<span style="color:purple"><b>Importante: </b>Ainda há duas etapas extras a serem cumpridas. Você receberá um e-mail para confirmar que é o responsável. Em seguida, o participante também receberá um link para confirmar a sua concordância com a pesquisa.</span>', 'blue')
else
this._showFeedback('Usuário cadastrado com sucesso.', 'blue')
// }
}
/*
else {
console.log(user.message.username)
console.log(user.message.id)
let role = await MessageBus.i.request('link/role/post',
{
userId: user.message.id,
roleId: parameters.role
}
)
if (role.message.error) {
console.log('--- error')
console.log(role.message.error)
} else {
console.log('--- link role success')
let group = await MessageBus.i.request('link/group/post',
{
userId: user.message.id,
groupId: parameters.group
}
)
if (group.message.error) {
console.log('--- error')
console.log(group.message.error)
} else
console.log('--- link group success')
}
}
*/
}
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 12 additions & 7 deletions src/adonisjs/public/user/signup/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,22 @@
<main role="main">
<dcc-rest id="harena-create-user" bind="harena-create-user" subscribe="user/create/post"></dcc-rest>
<dcc-rest id="harena-link-term" bind="harena-link-term" subscribe="user/term/post"></dcc-rest>
<dcc-rest id="harena-link-user-role" bind="harena-link-user-role" subscribe="link/role/post"></dcc-rest>
<dcc-rest id="harena-link-user-group" bind="harena-link-user-group" subscribe="link/group/post"></dcc-rest>

<div class="d-flex flex-column vh-100 vw-100 hidden-overflow">

<div class="h-100 w-100 create-case-padding scroll-y">
<div class="home-text">
<p id="template-title">Cadastro de Usuário na Plataforma (para participação na oficina)</p>
</div>

<hr>
<div id="feedback-message-1" style="font-size:24px;color:red"></div>
<hr>
<div class="col-md-6">
<img src="images/museum-platform.png" width="927px">
<div class="home-text">
<p id="template-title">Cadastro de Usuário na Plataforma (para participação na oficina)</p>
</div>

<hr>
<div id="feedback-message-1" style="font-size:24px;color:red"></div>
<hr>
</div>

<div id="complete-form" class="row" style="padding-bottom: 70px;">

Expand Down

0 comments on commit e73c6df

Please sign in to comment.