2012-07-18 22:43:13 +04:00
|
|
|
<%= labelled_form_for @wiki,
|
2012-04-29 08:08:59 +04:00
|
|
|
:as => :wiki,
|
2012-07-18 22:43:13 +04:00
|
|
|
:url => { :controller => 'wikis', :action => 'edit', :id => @project },
|
|
|
|
:remote => true, :method => 'post' do |f| %>
|
2007-09-14 15:34:08 +04:00
|
|
|
|
|
|
|
<%= error_messages_for 'wiki' %>
|
|
|
|
|
|
|
|
<div class="box tabular">
|
2012-02-03 00:07:37 +04:00
|
|
|
<p><%= f.text_field :start_page, :size => 60, :required => true %>
|
|
|
|
<em class="info"><%= l(:text_unallowed_characters) %>: , . / ? ; : |</em></p>
|
2007-09-14 15:34:08 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="contextual">
|
|
|
|
<%= link_to(l(:button_delete), {:controller => 'wikis', :action => 'destroy', :id => @project},
|
|
|
|
:class => 'icon icon-del') if @wiki && !@wiki.new_record? %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= submit_tag((@wiki.nil? || @wiki.new_record?) ? l(:button_create) : l(:button_save)) %>
|
|
|
|
<% end %>
|