OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/views/documents/_form.html.erb

23 lines
759 B

<%= error_messages_for 'document' %>
<div class="box">
<!--[form:document]-->
<p>
<label for="document_category_id"><%= Document.human_attribute_name(:category)%> <span class="required">*</span></label>
<%= select('document', 'category_id', DocumentCategory.all.collect {|c| [c.name, c.id]}) %>
</p>
<p>
<label for="document_title"><%= Document.human_attribute_name(:title)%> <span class="required">*</span></label>
<%= text_field 'document', 'title', :size => 60 %>
</p>
<p>
<label for="document_description"><%= Document.human_attribute_name(:description)%></label>
<%= text_area 'document', 'description', :cols => 60, :rows => 15, :class => 'wiki-edit' %>
</p>
<!--[eoform:document]-->
</div>
<%= wikitoolbar_for 'document_description' %>