Document#category should be displayed as a required field

This commit is contained in:
Eric Davis 2011-06-17 10:25:56 -07:00
parent 2ff9711fc7
commit 67dbd0160d
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<%= error_messages_for 'document' %> <%= error_messages_for 'document' %>
<div class="box"> <div class="box">
<!--[form:document]--> <!--[form:document]-->
<p><label for="document_category_id"><%=l(:field_category)%></label> <p><label for="document_category_id"><%=l(:field_category)%> <span class="required">*</span></label>
<%= select('document', 'category_id', DocumentCategory.all.collect {|c| [c.name, c.id]}) %></p> <%= select('document', 'category_id', DocumentCategory.all.collect {|c| [c.name, c.id]}) %></p>
<p><label for="document_title"><%=l(:field_title)%> <span class="required">*</span></label> <p><label for="document_title"><%=l(:field_title)%> <span class="required">*</span></label>