-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Move common code into a shared partial
- Loading branch information
1 parent
b84f692
commit 93d99d7
Showing
4 changed files
with
75 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<div id="fileupload-bulkrax"> | ||
<noscript><input type="hidden" name="redirect" value="<%= main_app.root_path %>" /></noscript> | ||
<table role="presentation" class="table table-striped"><tbody class="files"></tbody></table> | ||
<div class="fileupload-buttonbar"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<div class="fileinput-button" id="add-files"> | ||
<input id="addfiles" type="file" style="display:none;" name="files[]" | ||
accept="<%= accepted_file_types || 'text/csv,application/zip,application/gzip' %>" /> | ||
<button type="button" class="btn btn-success" onclick="document.getElementById('addfiles').click();"> | ||
<span class="fa fa-plus"></span> | ||
<span>Add Files</span> | ||
</button> | ||
</div> | ||
<button type="reset" id="file-upload-cancel-btn" class="btn btn-warning cancel"> | ||
<span class="fa fa-ban"></span> | ||
<span>Cancel Upload</span> | ||
</button> | ||
<span class="fileupload-process"></span> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<div class="fileupload-progress fade"> | ||
<div class="progress" role="progressbar" aria-valuemin="0" aria-valuemax="100"> | ||
<div class="progress-bar progress-bar-striped progress-bar-animated bg-success" style="width:0%;"></div> | ||
</div> | ||
<div class="progress-extended"> </div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="dropzone"> | ||
Drop files here to upload | ||
</div> | ||
<%= render 'hyrax/uploads/js_templates' %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters