Skip to content

Commit

Permalink
added textarea to example
Browse files Browse the repository at this point in the history
  • Loading branch information
Caolan McMahon committed Jun 20, 2010
1 parent 50c1b7f commit a8bef2d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
18 changes: 13 additions & 5 deletions example/page.jsont
Expand Up @@ -9,19 +9,27 @@
label {
position: relative;
width: 200px;
top: 2px;
top: 6px;
}
.required label {
font-weight: bold;
}
.field {
border-bottom: 1px dashed #ccc;
padding: 15px 5px 20px 5px;
padding: 10px 5px 15px 5px;
position: relative;
}
.field input, .field select {
position: absolute;
left: 175px;
.field input, .field select, .field textarea {
margin: -20px 0 0 175px;
width: 180px;
}
.field textarea {
margin-top: -15px;
}
.field input[type='checkbox'] {
position: relative;
margin-left: 32px;
top: 4px;
}
.error {
background: #ffcccc;
Expand Down
1 change: 1 addition & 0 deletions example/run.js
Expand Up @@ -42,6 +42,7 @@ http.createServer(function(req, res){
else callback();
}]
}),
notes: fields.string({widget: widgets.textarea()}),
spam_me: fields.boolean()
});

Expand Down

0 comments on commit a8bef2d

Please sign in to comment.