Modified layout to hide upload unless required
This commit is contained in:
parent
958e643f96
commit
1990b61bf7
|
@ -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>
|
||||||
|
</fieldset>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
</div>
|
||||||
|
<div class="clearfix"></div>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
Loading…
Reference in New Issue