Skip to content
This repository
tree: 226cc2a597
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 32 lines (27 sloc) 1.364 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<%= simple_form_for @page, :wrapper => :inline do |f| %>
  <fieldset>
    <legend><%= t("pages.edit_wiki_page")%></legend>
    <%= render "shared/error_messages", :target => @page %>

    <%= f.input :slug, :hint => "http://#{Setting.domain}/wiki/:slug"%>
    <%= f.input :title, :input_html => { :class => "xxlarge" } %>
    
    <% if I18n.default_locale == "zh-CN" %>
        <%= f.input :body, :as => :text,
                    :input_html => { :class => "long", :rows => "30" },
                    :hint => "请使用 Markdown 格式编写,可以试试用 <a href='http://mouapp.com' target='_blank'>Mou</a> 这个 App 来编写。".html_safe
        %>
    <% else %>
        <%= f.input :body, :as => :text,
                    :input_html => { :class => "long", :rows => "30" },
                    :hint => "請使用 Markdown 格式編寫,可以試試用 <a href='http://mouapp.com' target='_blank'>Mou</a> 這個 App 来編寫。".html_safe
        %>
    <% end %>

    <% if not @page.new_record? %>
      <%= f.input :change_desc , :as => :text,
                  :input_html => { :class => "long", :rows => "2" },
                  :hint => t("pages.describe_this_time_change")
    %>

    <% end %>
    <div class="actions">
      <%= f.submit t("common.save"), :class => "btn primary", :disable_with => t("common.saving") %>
    </div>
<% end %>
Something went wrong with that request. Please try again.