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

25 lines
1.1 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
.col-xs-2.img-story-post
img.img-responsive(src='#{user.profile.picture}')
.col-xs-10
.form-group
.col-xs-1
label.control-label.control-label-story-submission(for='name') Link
.col-xs-11
input#story-url.form-control(placeholder='Paste your link here', name='Link')
.form-group
.col-xs-1
label.control-label.control-label-story-submission(for='name') Title
.col-xs-11
input#story-title.form-control(placeholder='Type a headline for your link here', name='Title')
.spacer
.form-group
.btn.btn-big.btn-block.btn-primary#story-submit Submit
script.
$('#story-url').val(storyURL).attr('disabled', 'disabled');
$('#story-title').val(storyTitle);