summaryrefslogtreecommitdiffstats
path: root/app/views/documents
diff options
context:
space:
mode:
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>