<p><%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %>
<%= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'),
l(:label_issue_category_new),
- 'category[name]',
+ 'category[name]',
{:controller => 'issue_categories', :action => 'new', :project_id => @project},
- :title => l(:label_issue_category_new),
+ :title => l(:label_issue_category_new),
:tabindex => 199) if authorize_for('issue_categories', 'new') %></p>
<% end %>
<% unless @issue.assignable_versions.empty? %>
<p><%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), :include_blank => true %>
<%= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'),
l(:label_version_new),
- 'version[name]',
+ 'version[name]',
{:controller => 'versions', :action => 'create', :project_id => @project},
- :title => l(:label_version_new),
+ :title => l(:label_version_new),
:tabindex => 200) if authorize_for('versions', 'new') %>
</p>
<% end %>