リビジョン db255fda
| app/views/glossary/new.html.erb | ||
|---|---|---|
|
</div>
|
||
|
<%= submit_tag l(:button_create) %>
|
||
|
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
|
||
|
<% if Rails::VERSION::MAJOR >= 3 %>
|
||
|
<%= preview_link({:controller => 'glossary', :action => 'preview', :project_id => @project.id },
|
||
|
"term-form",
|
||
|
"preview") %>
|
||
|
<% else %>
|
||
|
<%= link_to_remote l(:label_preview),
|
||
|
{ :url => { :controller => 'glossary', :action => 'preview', :project_id => @project },
|
||
|
:method => 'post',
|
||
|
:update => 'preview',
|
||
|
:with => "Form.serialize('term-form')",
|
||
|
:complete => "Element.scrollTo('preview')"
|
||
|
}, :accesskey => accesskey(:preview) %>
|
||
|
<% end %>
|
||
|
<% end %>
|
||
|
<%= form if Rails::VERSION::MAJOR >= 3 %>
|
||
|
|
||
#15 Fix 'undefined method preview_link'