Files
freeCodeCamp/views/stories/submit-story.jade

29 lines
1.4 KiB
Plaintext
Raw Normal View History

.spacer
.col-xs-12
script.
var storyURL = !{JSON.stringify(storyURL)};
var storyTitle = !{JSON.stringify(storyTitle)};
form.form-horizontal.control-label-story-submission#story-submission-form
2015-03-07 16:48:57 -08:00
.col-xs-12
.form-group
2015-03-07 16:48:57 -08:00
.col-xs-12.col-md-1
label.control-label.control-label-story-submission(for='name') Link
2015-03-07 16:48:57 -08:00
.col-xs-12.col-md-11
input#story-url.form-control(placeholder='Paste your link here', name='Link')
.form-group
2015-03-07 16:48:57 -08:00
.col-xs-12.col-md-1
label.control-label.control-label-story-submission(for='name') Title
2015-03-07 16:48:57 -08:00
.col-xs-12.col-md-11
2015-03-07 17:38:47 -08:00
input#story-title.form-control(placeholder='Type a headline for your link here', name='Title', autofocus)
.form-group
2015-03-07 16:48:57 -08:00
.col-xs-12.col-md-1
label.control-label.control-label-story-submission(for='name') Description
.col-xs-12.col-md-11
textarea#description-box.form-control(name="comment-box", rows=5, placeholder="Start off the discussion with a description of your post")
.spacer
.form-group
button.btn.btn-big.btn-block.btn-primary#story-submit Submit
script.
$('#story-url').val(storyURL).attr('disabled', 'disabled');
$('#story-title').val(storyTitle);