1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-29 11:49:37 +00:00
redmine/app/views/wiki/_new_modal.html.erb
2018-09-30 09:20:35 +00:00

30 lines
937 B
Plaintext

<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>
<p>
<% if params[:parent].present? %>
<label class="inline">
<%= check_box_tag 'parent', params[:parent], true %>
<%= l(:field_parent_title) %>: <%= params[:parent] %>
</label>
<% end %>
</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 %>