summaryrefslogtreecommitdiffstats
path: root/app/views/wiki/_new_modal.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/wiki/_new_modal.html.erb')
-rw-r--r--app/views/wiki/_new_modal.html.erb21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/views/wiki/_new_modal.html.erb b/app/views/wiki/_new_modal.html.erb
new file mode 100644
index 000000000..52a87b751
--- /dev/null
+++ b/app/views/wiki/_new_modal.html.erb
@@ -0,0 +1,21 @@
+<h3 class="title"><%=l(:label_wiki_page_new)%></h3>
+
+<%= labelled_form_for :page, @page,
+ :url => new_project_wiki_page_path(@project),
+ :method => 'post',
+ :remote => true do |f| %>
+
+ <%= render_error_messages @page.errors.full_messages_for(:title) %>
+
+ <div class="box tabular">
+ <p>
+ <%= f.text_field :title, :name => 'title', :size => 60, :required => true %>
+ <em class="info"><%= l(:text_unallowed_characters) %>: , . / ? ; : |</em>
+ </p>
+ </div>
+
+ <p class="buttons">
+ <%= submit_tag l(:label_next), :name => nil %>
+ <%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
+ </p>
+<% end %>