Mercurial > hg > soundsoftware-site
view .svn/pristine/1f/1f801059ed33453ec7884c4bce2b26f547910719.svn-base @ 1539:22d57b0e0a77 live
OK, this script works now, but it should be using the API
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 21 May 2015 17:31:06 +0100 |
parents | 038ba2d95de8 |
children |
line wrap: on
line source
<h2><%=l(:label_attachment_new)%></h2> <%= error_messages_for 'attachment' %> <%= form_tag(project_files_path(@project), :multipart => true, :class => "tabular") do %> <div class="box"> <% if @versions.any? %> <p><label for="version_id"><%=l(:field_version)%></label> <%= select_tag "version_id", content_tag('option', '') + options_from_collection_for_select(@versions, "id", "name") %></p> <% end %> <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p> </div> <%= submit_tag l(:button_add) %> <% end %>