-
Notifications
You must be signed in to change notification settings - Fork 44
implement post token UI #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor changes only :)
view/tokens/new.pug
Outdated
doctype html | ||
html | ||
head | ||
title Create new token |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title New Token
view/tokens/app.js
Outdated
toggleVisibility(successInfo, true); | ||
toggleVisibility(tokenInfo, true); | ||
successInfo.innerHTML = 'Token generated from ' + res.body.name + | ||
'. Please save this token, you will not see this token again!'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about something like this:
<b>Copy and paste your new token somewhere safe--you will not be able to see it again!</b>
Token name: ________
Token value: __________________
#successInfo | ||
#tokenInfo | ||
.form-group | ||
input.form-control(type='text', autofocus, name="name", maxlength='60' placeholder='Enter token name' required) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you get back the token value, can we put a little more vertical space and maybe even a horizontal line between the new token that gets returned and the form fields where you enter a name to create yet another new token?
@iamigo Updated style. Screenshots are attached. |
@@ -0,0 +1,34 @@ | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls add copyright to file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Comments @shriramshankar ? |
} | ||
#formGroup.show { | ||
margin: 20px 0; | ||
} No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a new line at the end of the file. Sorry for nit picking.
@shriramshankar waiting for review |
@iamigo left a comment yesterday. Ok, to merge if we do not want to take care of that. |
Creating this for Anny since she can't login to github right now