<%=l(:label_term_new)%>

<% form = labelled_form_for @term, :as => :term, :url => {:action => 'new', :project_id => @project, :id => @term}, :html => {:class => 'tabular', :multipart => true, :id => 'term-form'} do |f| %> <%= error_messages_for 'term' %>
<%= render :partial => 'glossary/form', :locals => {:f => f} %>
<%= 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 %>
<% html_title(l(:glossary_title)) -%>