Permalink
Browse files

Merge pull request #170 from jedwood/password-fields

allow for password fields
  • Loading branch information...
2 parents 0377b78 + 074329f commit 7a938ac434e348be6bf1ee4cad5865f23ff47c05 @mtougeron mtougeron committed Mar 26, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 views/api.jade
View
@@ -83,7 +83,7 @@ block content
li(class='method ' + httpmethod + ' ' + secure)
div.title.clickable
- var methodLink = (endpoint.name + '-' + method.HTTPMethod + '-' + method.MethodName).replace(/\s/g, '-')
- a(href='#'+methodLink)
+ a(href='#'+methodLink)
span.http-method !{method.HTTPMethod}
span.name !{method.MethodName}
span.uri !{method.URI}
@@ -143,6 +143,9 @@ block content
if (parameter.Default)
| #{parameter.Default}
input(type='hidden', name='locations['+parameter.Name+']', value=parameter.Location || 'query')
+ - else if (parameter.Type =='password')
+ input(type='password', name='params[' + parameter.Name + ']', value=parameter.Default)
+ input(type='hidden', name='locations['+parameter.Name+']', value=parameter.Location || 'query')
- else
input(name='params[' + parameter.Name + ']', value=parameter.Default, placeholder=className)
input(type='hidden', name='locations['+parameter.Name+']', value=parameter.Location || 'query')

0 comments on commit 7a938ac

Please sign in to comment.