2006-06-28 22:11:03 +04:00
|
|
|
<%= error_messages_for 'document' %>
|
|
|
|
|
|
|
|
<!--[form:document]-->
|
2006-07-29 13:32:58 +04:00
|
|
|
<p><label for="document_category_id"><%=l(:field_category)%></label><br />
|
2006-06-28 22:11:03 +04:00
|
|
|
<select name="document[category_id]">
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= options_from_collection_for_select @categories, "id", "name", @document.category_id %>
|
2006-06-28 22:11:03 +04:00
|
|
|
</select></p>
|
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<p><label for="document_title"><%=l(:field_title)%> <span class="required">*</span></label><br />
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= text_field 'document', 'title', :size => 60 %></p>
|
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<p><label for="document_description"><%=l(:field_description)%> <span class="required">*</span></label><br />
|
|
|
|
<%= text_area 'document', 'description', :cols => 60, :rows => 5 %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
<!--[eoform:document]-->
|
|
|
|
|