2007-09-14 15:34:08 +04:00
|
|
|
<% remote_form_for :wiki, @wiki,
|
|
|
|
:url => { :controller => 'wikis', :action => 'edit', :id => @project },
|
2008-02-13 01:43:37 +03:00
|
|
|
:builder => TabularFormBuilder,
|
|
|
|
:lang => current_language do |f| %>
|
2007-09-14 15:34:08 +04:00
|
|
|
|
|
|
|
<%= error_messages_for 'wiki' %>
|
|
|
|
|
|
|
|
<div class="box tabular">
|
|
|
|
<p><%= f.text_field :start_page, :size => 60, :required => true %><br />
|
|
|
|
<em><%= l(:text_unallowed_characters) %>: , . / ? ; : |</em></p>
|
|
|
|
</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 %>
|