Modified layout to hide upload unless required

This commit is contained in:
reubenmallaby 2012-11-15 12:39:07 +01:00
parent 958e643f96
commit 1990b61bf7
1 changed files with 13 additions and 8 deletions

View File

@ -1,9 +1,14 @@
<h3>File Upload</h3> <div class="row">
<%= form_tag(upload_embedded_path(@project), :multipart => true) do -%> <%= form_tag(upload_embedded_path(@project), :multipart => true) do -%>
<p> <fieldset id="embedded_doc" class="collapsible collapsed">
<label for="upload_file">Select File (ZIP format only, root must be html directory)</label> : <legend onclick="toggleFieldset(this);">Upload documentation</legend>
<div style="display: none;">
Select File (ZIP format only, root must be html directory):
<%= file_field "upload", "datafile" %> <%= file_field "upload", "datafile" %>
<%= submit_tag "Upload" %> <%= submit_tag "Upload" %>
</p> </div>
<% end -%> </fieldset>
<% end -%>
</div>
<div class="clearfix"></div>
<hr /> <hr />