Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 32 lines (27 sloc) 1.364 kb
c099976 @xdite config simple_form to twitter-bootstrap
xdite authored
1 <%= simple_form_for @page, :wrapper => :inline do |f| %>
3b088a9 @huacnlee Wiki feature added.
authored
2 <fieldset>
b1fb300 @xdite notes 翻譯
xdite authored
3 <legend><%= t("pages.edit_wiki_page")%></legend>
3b088a9 @huacnlee Wiki feature added.
authored
4 <%= render "shared/error_messages", :target => @page %>
c099976 @xdite config simple_form to twitter-bootstrap
xdite authored
5
6 <%= f.input :slug, :hint => "http://#{Setting.domain}/wiki/:slug"%>
7 <%= f.input :title, :input_html => { :class => "xxlarge" } %>
b1fb300 @xdite notes 翻譯
xdite authored
8
9 <% if I18n.default_locale == "zh-CN" %>
10 <%= f.input :body, :as => :text,
11 :input_html => { :class => "long", :rows => "30" },
12 :hint => "请使用 Markdown 格式编写,可以试试用 <a href='http://mouapp.com' target='_blank'>Mou</a> 这个 App 来编写。".html_safe
13 %>
14 <% else %>
15 <%= f.input :body, :as => :text,
16 :input_html => { :class => "long", :rows => "30" },
17 :hint => "請使用 Markdown 格式編寫,可以試試用 <a href='http://mouapp.com' target='_blank'>Mou</a> 這個 App 来編寫。".html_safe
18 %>
19 <% end %>
c099976 @xdite config simple_form to twitter-bootstrap
xdite authored
20
e292364 @huacnlee Wiki version feature added.
authored
21 <% if not @page.new_record? %>
c099976 @xdite config simple_form to twitter-bootstrap
xdite authored
22 <%= f.input :change_desc , :as => :text,
23 :input_html => { :class => "long", :rows => "2" },
b1fb300 @xdite notes 翻譯
xdite authored
24 :hint => t("pages.describe_this_time_change")
c099976 @xdite config simple_form to twitter-bootstrap
xdite authored
25 %>
26
e292364 @huacnlee Wiki version feature added.
authored
27 <% end %>
3b088a9 @huacnlee Wiki feature added.
authored
28 <div class="actions">
af57838 @HungYuHei Add :disable_with option to avoid duplicate submissions
HungYuHei authored
29 <%= f.submit t("common.save"), :class => "btn primary", :disable_with => t("common.saving") %>
8cbc2b7 @huacnlee Update favicon;
authored
30 </div>
31 <% end %>
Something went wrong with that request. Please try again.