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>
<%= file_field "upload", "datafile" %> <div style="display: none;">
<%= submit_tag "Upload" %> Select File (ZIP format only, root must be html directory):
</p> <%= file_field "upload", "datafile" %>
<% end -%> <%= submit_tag "Upload" %>
</div>
</fieldset>
<% end -%>
</div>
<div class="clearfix"></div>
<hr /> <hr />