<%= f.text_field :name, :label=>t('label.name'), :size => 100, :required => true %>
<% for prm in Term.setting_params %> <% if param_visible?(prm) %><%= f.text_field prm, :label=>label_param(prm), :size => 100 %>
<% end %> <% end %><%= f.select :category_id, (@term_categories.collect {|c| [c.name, c.id]}), :include_blank => true %> <% if Rails::VERSION::MAJOR >= 3 %> <%= link_to(l(:label_term_category_new), {:controller => 'glossary', :action => 'add_term_category', :project_id => @project.id }, :category => 'category[name]', :class => 'icon icon-add', :tabindex => 199, :method => 'get', :remote => true) if authorize_for('glossary', 'add_term_category') %>
<% else %> <%= prompt_to_remote(l(:label_term_category_new), l(:label_term_category_new), 'category[name]', {:controller => 'glossary', :action => 'add_term_category', :project_id => @project }, :class => 'icon icon-add', :tabindex => 199) if authorize_for('glossary', 'add_term_category') %> <% end %><%= f.text_area :description, :label=>t('label.description'), :cols => 60, :rows => (@term.description.blank? ? 10 : [[10, @term.description.length / 50].max, 100].min), :accesskey => accesskey(:edit), :class => 'wiki-edit' %>
<%= render :partial => 'attachments/form' %>
<%= wikitoolbar_for 'term_description' %>