summaryrefslogtreecommitdiffstats
path: root/app/views/documents
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-18 16:59:28 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-18 16:59:28 +0000
commit0006c5f3b0dc697b277faee328244f0dabe9d1c7 (patch)
tree8ce19da27ddfb46d60f85a172fe8be4d6714dc51 /app/views/documents
parent3c42abe07e12932a6e839ab3f635f86745cb39ed (diff)
downloadredmine-0006c5f3b0dc697b277faee328244f0dabe9d1c7.tar.gz
redmine-0006c5f3b0dc697b277faee328244f0dabe9d1c7.zip
New document form can be accessed from the document list with no additional request.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@851 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/documents')
-rw-r--r--app/views/documents/_form.rhtml4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/views/documents/_form.rhtml b/app/views/documents/_form.rhtml
index ee7c289f1..d45e295b0 100644
--- a/app/views/documents/_form.rhtml
+++ b/app/views/documents/_form.rhtml
@@ -2,9 +2,7 @@
<div class="box">
<!--[form:document]-->
<p><label for="document_category_id"><%=l(:field_category)%></label>
-<select name="document[category_id]">
-<%= options_from_collection_for_select @categories, "id", "name", @document.category_id %>
-</select></p>
+<%= select('document', 'category_id', Enumeration.get_values('DCAT').collect {|c| [c.name, c.id]}) %></p>
<p><label for="document_title"><%=l(:field_title)%> <span class="required">*</span></label>
<%= text_field 'document', 'title', :size => 60 %></p>