Skip to content
Browse files

Added warning notice that page hasn't been saved

  • Loading branch information...
1 parent 920c1af commit a801a4a214e03eb4f27a72cfc5c599686fda068b Glenn Murray committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/views/preview/_show.html.haml
4 app/views/preview/_show.html.haml
@@ -1,3 +1,5 @@
= javascript_include_tag 'page_preview'
-%p.buttons{:style => 'float: left; padding-right: 5px;' }
%input{:type=>'submit', :id => 'show-preview', :value => 'Preview', :class => 'button', :onclick => 'return preview(this)'}
+%div#preview-notice{:style => 'display:none; background-color:#fe0;border:3px solid #ff5; color:black;margin:5px 20px -10px 20px; padding: 0.75em;'}
+ This is a preview, your changes have not yet been saved!

0 comments on commit a801a4a

Please sign in to comment.
Something went wrong with that request. Please try again.