リビジョン 04643542
| app/views/glossary/new.html.erb | ||
|---|---|---|
|
<h2><%=l(:label_term_new)%></h2>
|
||
|
|
||
|
<% labelled_tabular_form_for :term, @term,
|
||
|
<% labelled_tabular_form_for :term, @term,
|
||
|
:url => {:action => 'new', :project_id => @project},
|
||
|
:html => {:multipart => true, :id => 'term-form'} do |f| %>
|
||
|
<%= error_messages_for 'term' %>
|
||
|
<div class="box">
|
||
| ... | ... | |
|
<%= submit_tag l(:button_create) %>
|
||
|
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
|
||
|
<%= link_to_remote l(:label_preview),
|
||
|
{ :url => { :controller => 'glossary', :action => 'preview', :id => @project },
|
||
|
{ :url => { :controller => 'glossary', :action => 'preview', :project_id => @project },
|
||
|
:method => 'post',
|
||
|
:update => 'preview',
|
||
|
:with => "Form.serialize('term-form')",
|
||
compatible to Redmine1.4 and add Frech language (merge from Martin's github)