|
1 | | -<h2>Upload file</h2> |
2 | | -<%= form_for Upload.new, :html => { :multipart => true, :id => "fileupload" } do |f| %> |
3 | | - <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload --> |
4 | | - <div class="row fileupload-buttonbar"> |
5 | | - <div class="span7"> |
6 | | - <!-- The fileinput-button span is used to style the file input field as button --> |
7 | | - <span class="btn btn-success fileinput-button"> |
8 | | - <i class="icon-plus icon-white"></i> |
9 | | - <span>Add files...</span> |
10 | | - <%= f.file_field :upload %> |
11 | | - </span> |
12 | | - <button type="submit" class="btn btn-primary start"> |
13 | | - <i class="icon-upload icon-white"></i> |
14 | | - <span>Start upload</span> |
15 | | - </button> |
16 | | - <button type="reset" class="btn btn-warning cancel"> |
17 | | - <i class="icon-ban-circle icon-white"></i> |
18 | | - <span>Cancel upload</span> |
19 | | - </button> |
20 | | - <button type="button" class="btn btn-danger delete"> |
21 | | - <i class="icon-trash icon-white"></i> |
22 | | - <span>Delete</span> |
23 | | - </button> |
24 | | - <input type="checkbox" class="toggle"> |
25 | | - </div> |
26 | | - <div class="span5"> |
27 | | - <!-- The global progress bar --> |
28 | | - <div class="progress progress-success progress-striped active fade"> |
29 | | - <div class="bar" style="width:0%;"></div> |
| 1 | +<div class="container"> |
| 2 | + <h2>Upload file</h2> |
| 3 | + <%= form_for Upload.new, :html => { :multipart => true, :id => "fileupload" } do |f| %> |
| 4 | + <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload --> |
| 5 | + <div class="row fileupload-buttonbar"> |
| 6 | + <div class="span7"> |
| 7 | + <!-- The fileinput-button span is used to style the file input field as button --> |
| 8 | + <span class="btn btn-success fileinput-button"> |
| 9 | + <i class="icon-plus icon-white"></i> |
| 10 | + <span>Add files...</span> |
| 11 | + <%= f.file_field :upload %> |
| 12 | + </span> |
| 13 | + <button type="submit" class="btn btn-primary start"> |
| 14 | + <i class="icon-upload icon-white"></i> |
| 15 | + <span>Start upload</span> |
| 16 | + </button> |
| 17 | + <button type="reset" class="btn btn-warning cancel"> |
| 18 | + <i class="icon-ban-circle icon-white"></i> |
| 19 | + <span>Cancel upload</span> |
| 20 | + </button> |
| 21 | + <button type="button" class="btn btn-danger delete"> |
| 22 | + <i class="icon-trash icon-white"></i> |
| 23 | + <span>Delete</span> |
| 24 | + </button> |
| 25 | + <input type="checkbox" class="toggle"> |
| 26 | + </div> |
| 27 | + <div class="span5"> |
| 28 | + <!-- The global progress bar --> |
| 29 | + <div class="progress progress-success progress-striped active fade"> |
| 30 | + <div class="bar" style="width:0%;"></div> |
| 31 | + </div> |
30 | 32 | </div> |
31 | 33 | </div> |
32 | | - </div> |
33 | | - <!-- The loading indicator is shown during image processing --> |
34 | | - <div class="fileupload-loading"></div> |
35 | | - <br> |
36 | | - <!-- The table listing the files available for upload/download --> |
37 | | - <table class="table table-striped"><tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody> |
38 | | - </table> |
39 | | -<% end %> |
| 34 | + <!-- The loading indicator is shown during image processing --> |
| 35 | + <div class="fileupload-loading"></div> |
| 36 | + <br> |
| 37 | + <!-- The table listing the files available for upload/download --> |
| 38 | + <table class="table table-striped"><tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody> |
| 39 | + </table> |
| 40 | + <% end %> |
| 41 | + |
| 42 | +</div> |
40 | 43 | <script> |
41 | 44 | var fileUploadErrors = { |
42 | 45 | maxFileSize: 'File is too big', |
|
0 commit comments