Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- about.html.haml:
- = throw_content :main_pl do
- %br
- - if @admin
- = "Tutaj proszę wprowadzić tekst formatowany:"
- %script{ :type => "text/javascript" }
- $(document).ready(pocalujmniewdupe);
- pocalujmniewdupe();
- = form_for :text, :class => :text, :action => url( :action => :about, :method => :post ) do
- %textarea{ :name => :content, :style => "width:100%; height:20em;" }
- = @content.about_content
- %div{ :style => "margin-top: 25px;" }
- = "Podgląd wygenerowanej treści na stronie:"
- = submit "Aktualizuj treść strony"
- %fieldset
- .generated_content= @generated_content
- - else
- .generated_content= @generated_content
- %br
Add Comment
Please, Sign In to add comment