diff --git a/views/site_files/new_page.slim b/views/site_files/new_page.slim index 60c001b3..7e164370 100644 --- a/views/site_files/new_page.slim +++ b/views/site_files/new_page.slim @@ -1,25 +1,23 @@ -- if @errors +.content-Base + + - if @errors + div.alert.alert-error + h3 There were errors, please correct: + - @errors.each do |error| + h5 = error + + h1.txt-Center Create new HTML page + .row - .span8.offset2 - div.alert.alert-error - h3 There were errors, please correct: - - @errors.each do |error| - h5 = error - -.row - .span12.text-center - h1 Create new HTML page - -.row - .span12.text-center - form method="POST" action="/site_files/create_page" enctype="multipart/form-data" - input name="csrf_token" type="hidden" value="#{csrf_token}" - h4 What's the name of your page? - h4: input type="text" name="pagefilename" autocapitalize="off" autocorrect="off".html - p: input.btn.btn-success.btn-large type="submit" value="Create Page" - -.row - .span6.offset3 - h5 Note: We will automatically scrub any characters not matching: a-z A-Z 0-9 _ - . - h5 Page must not already exist. - h5 If you want to make this the index page (and an index page doesn't exist), name it index.html. \ No newline at end of file + .span12.text-center + form method="POST" action="/site_files/create_page" enctype="multipart/form-data" + input name="csrf_token" type="hidden" value="#{csrf_token}" + h4 What's the name of your page? + h4: input type="text" name="pagefilename" autocapitalize="off" autocorrect="off".html + p: input.btn-Action type="submit" value="Create Page" + + .row + .span6.offset3 + h5 Note: We will automatically scrub any characters not matching: a-z A-Z 0-9 _ - . + h5 Page must not already exist. + h5 If you want to make this the index page (and an index page doesn't exist), name it index.html. \ No newline at end of file