2009-05-20 12:42:01 +02:00
|
|
|
- if params[:preview]
|
|
|
|
%h2 Vorschau
|
|
|
|
#preview= render :partial => 'body'
|
|
|
|
|
2009-05-13 17:32:43 +02:00
|
|
|
#wiki-syntax-help{:style => "float:right"}
|
|
|
|
%p
|
|
|
|
%b Schnelle Formatierungshilfe
|
|
|
|
%br/
|
|
|
|
:plain
|
|
|
|
[[interner Link]]<br />
|
|
|
|
[externer Link](http://addresse.net)<br />
|
|
|
|
*kursiv*<br />
|
|
|
|
**Fett**<br />
|
|
|
|
* erster Listenpunkt<br />
|
|
|
|
* zweiter Listenpunkt<br />
|
|
|
|
%p
|
|
|
|
Übersicht über alle Formatierungen:
|
|
|
|
= link_to "Markdown Cheatsheet", "http://packetlife.net/static/cheatsheets/markdown.pdf", :target => '_blank'
|
|
|
|
|
2009-03-25 19:54:04 +01:00
|
|
|
- form_for @page do |f|
|
|
|
|
= f.error_messages
|
2009-05-15 13:54:42 +02:00
|
|
|
= f.hidden_field :lock_version
|
2009-03-25 19:54:04 +01:00
|
|
|
%p
|
|
|
|
%b Title
|
|
|
|
%br/
|
|
|
|
= f.text_field :title
|
|
|
|
%p
|
|
|
|
%b Inhalt
|
|
|
|
%br/
|
|
|
|
= f.text_area :body, :size => "60x30"
|
|
|
|
%p
|
2009-05-20 12:42:01 +02:00
|
|
|
= f.submit "Vorschau", :name => 'preview'
|
|
|
|
|
|
2009-03-25 19:54:04 +01:00
|
|
|
= f.submit "Speichern"
|
|
|
|
|
|
|
|
|
= link_to "Abbrechen", :back
|