summaryrefslogtreecommitdiffstats
path: root/app/views/issues/_add_shortcut.rhtml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-02 09:58:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-02 09:58:07 +0000
commit470ef4d11ee7465c7cc2ca19fd4535fec061395b (patch)
tree43822af536dd7ce6b3e441395ba4a92d9f1b2522 /app/views/issues/_add_shortcut.rhtml
parent57d4e698fe59773b692b9e2f86cea6c9790ad191 (diff)
downloadredmine-470ef4d11ee7465c7cc2ca19fd4535fec061395b.tar.gz
redmine-470ef4d11ee7465c7cc2ca19fd4535fec061395b.zip
* replaced "add_issue" links on projects/show by a drop down list
* added this shortcut on list_issues git-svn-id: http://redmine.rubyforge.org/svn/trunk@136 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues/_add_shortcut.rhtml')
-rw-r--r--app/views/issues/_add_shortcut.rhtml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/issues/_add_shortcut.rhtml b/app/views/issues/_add_shortcut.rhtml
new file mode 100644
index 000000000..f48907777
--- /dev/null
+++ b/app/views/issues/_add_shortcut.rhtml
@@ -0,0 +1,5 @@
+<% if authorize_for('projects', 'add_issue') %>
+<%= start_form_tag({ :controller => 'projects', :action => 'add_issue', :id => @project }, :method => 'get') %>
+<%= l(:label_issue_new) %>: <%= select_tag 'tracker_id', ("<option></option>" + options_from_collection_for_select(trackers, 'id', 'name')), :onchange => "if (this.value!='') {this.form.submit();}" %>
+<%= end_form_tag %>
+<% end %>