Mercurial > hg > soundsoftware-site
view app/views/documents/_form.rhtml @ 755:bde9c5bfb559 feature_14
created a new instance variable to be able to filter the projects: @filtered_projects. New projects index layout; new partials for projects index.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 11 Nov 2011 15:57:58 +0000 |
parents | 513646585e45 |
children |
line wrap: on
line source
<%= error_messages_for 'document' %> <div class="box"> <!--[form:document]--> <p><label for="document_category_id"><%=l(:field_category)%></label> <%= 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> <%= text_field 'document', 'title', :size => 60 %></p> <p><label for="document_description"><%=l(:field_description)%></label> <%= text_area 'document', 'description', :cols => 60, :rows => 15, :class => 'wiki-edit' %></p> <!--[eoform:document]--> </div> <%= wikitoolbar_for 'document_description' %>