foodsoft/plugins/wiki/app/views/pages/_form.html.haml

86 lines
2.4 KiB
Text
Raw Normal View History

- if params[:preview]
2012-10-09 02:31:10 +02:00
%section#wikiContent
= render 'body'
2012-10-09 02:31:10 +02:00
.row-fluid
.span8
= simple_form_for @page do |f|
= f.hidden_field :lock_version
= f.input :title, input_html: {class: 'input-xxlarge'}
= f.input :body, input_html: {class: 'input-xxlarge', rows: 20}
2012-10-09 02:31:10 +02:00
= f.input :parent_id, as: :select, collection: parent_pages_to_select(@page)
.form-actions
= button_tag :name => 'preview', class: 'btn' do
2013-04-12 00:58:38 +02:00
%i.icon-search= t '.preview'
2012-10-09 02:31:10 +02:00
= button_tag class: 'btn' do
2013-04-12 00:58:38 +02:00
%i.icon-save= t 'ui.save'
= link_to t('ui.or_cancel'), @page
2012-10-09 02:31:10 +02:00
.span4
2013-04-12 00:58:38 +02:00
%h3= t '.help.title'
2012-10-09 02:31:10 +02:00
%table.table
%tbody
%tr
%td(colspan=2)
2013-04-12 00:58:38 +02:00
%b= t '.help.section_character'
%tr
%td
2013-04-12 00:58:38 +02:00
%i= t '.help.italic'
%td
%pre
2013-04-12 00:58:38 +02:00
''#{t '.help.italic'}''<br />
%tr
%td
2013-04-12 00:58:38 +02:00
%b= t '.help.bold'
%td
2013-04-12 00:58:38 +02:00
%pre '''#{t '.help.bold'}'''<br />
%tr
2013-04-12 00:58:38 +02:00
%td= t '.help.noformat'
%td
2013-04-12 00:58:38 +02:00
%pre &lt;nowiki&gt;#{t '.help.text'}&lt;/nowiki&gt;
%tr
%td(colspan=2)
2013-04-12 00:58:38 +02:00
%b= t '.help.section_block'
%tr
2013-04-12 00:58:38 +02:00
%td= t '.help.headings'
%td
%pre
2013-04-12 00:58:38 +02:00
\== #{t '.help.heading', level: 1} ==
%pre
2013-04-12 00:58:38 +02:00
\=== #{t '.help.heading', level: 2} ===
%pre
2013-04-12 00:58:38 +02:00
\==== #{t '.help.heading', level: 3} ====
%tr
2013-04-12 00:58:38 +02:00
%td= t '.help.unordered_list'
%td
%pre
2013-04-12 00:58:38 +02:00
* #{t '.help.list_item_1'}
%pre
2013-09-10 10:27:13 +02:00
** #{t '.help.list_item_2'}
%tr
2013-04-12 00:58:38 +02:00
%td= t '.help.ordered_list'
%td
%pre
2013-04-12 00:58:38 +02:00
\# #{t '.help.list_item_1'}
%pre
2013-04-12 00:58:38 +02:00
\# #{t '.help.list_item_2'}
%tr
%td(colspan=2)
2013-04-12 00:58:38 +02:00
%b= t '.help.section_link'
%tr
2013-04-12 00:58:38 +02:00
%td= t '.help.wiki_links'
%td
%pre
2013-04-12 00:58:38 +02:00
[[#{t '.help.wiki_link_ex'}]]
%tr
2013-04-12 00:58:38 +02:00
%td= t '.help.external_links'
%td
%pre
2013-04-12 00:58:38 +02:00
[http://example.net #{t '.help.external_link_ex'}]
%tr
%td(colspan=2)
%b= t '.help.section_table'
%tr
2013-04-12 00:58:38 +02:00
%td!= t '.help.see_tables', tables_link: link_to(t('.help.tables_link'), "http://www.mediawiki.org/wiki/Help:Tables", :target => '_blank')
2009-05-13 17:32:43 +02:00