diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2017-04-09 09:02:09 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2017-04-09 09:02:09 +0200 |
commit | b36f9c05071ea549ed59e703270fcf223b60df03 (patch) | |
tree | 8992c6bcaa5b0d64cbd589588b2539523125548c /fbin/templates/file-modals.html | |
parent | af750a6598d53b8a5cb58092dd5b523ea7e967ca (diff) |
Major rewrite to use jab/oauth.
Highlights:
- Uses the oauth branch of jab.
- Changed design to use bootstrap.
- Some minor changes to functionality in file uploading and listing.
- API is currently disabled and incomplete.
Diffstat (limited to 'fbin/templates/file-modals.html')
-rw-r--r-- | fbin/templates/file-modals.html | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/fbin/templates/file-modals.html b/fbin/templates/file-modals.html new file mode 100644 index 0000000..9e4d422 --- /dev/null +++ b/fbin/templates/file-modals.html @@ -0,0 +1,59 @@ +<div class="modal fade" id="modal-filename" tabindex="-1" role="dialog" aria-labelledby="modal-filename-label"> + <div class="modal-dialog" role="document"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> + <h4 class="modal-title" id="modal-filename-label">Change filename</h4> + </div> + <div class="modal-body"> + <form method="post" action="{{ url_for('.file_edit') }}" id="filename-form"> + <input type="hidden" class="hash" name="hash"> + <div class="form-group"> + <label for="filename" class="control-label">Filename:</label> + <input type="text" class="form-control" id="filename" name="filename"> + </div> + <div id="modal-filename-spinner"> + <span class="glyphicon glyphicon-cog spinner" aria-hidden="true"></span> + Saving… + </div> + </form> + </div> + <div class="modal-footer"> + <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> + <button type="submit" class="btn btn-primary" id="modal-filename-confirm" form="filename-form"> + <span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span> + Save changes + </button> + </div> + </div> + </div> +</div> +<div class="modal fade" id="modal-delete" tabindex="-1" role="dialog" aria-labelledby="modal-delete-label"> + <div class="modal-dialog" role="document"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> + <h4 class="modal-title" id="modal-delete-label">Delete file</h4> + </div> + <div class="modal-body"> + <form method="post" action="{{ url_for('.file_edit') }}" id="delete-form"> + <input type="hidden" class="hash" name="hash"> + <input type="hidden" name="delete" value="1"> + Are you sure you want to delete the file <strong><span id="modal-delete-filename"></span></strong>? + This cannot be undone. + <div id="modal-delete-spinner"> + <span class="glyphicon glyphicon-cog spinner" aria-hidden="true"></span> + Deleting… + </div> + </form> + </div> + <div class="modal-footer"> + <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> + <button type="submit" class="btn btn-danger" id="modal-delete-confirm" form="delete-form"> + <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> + Delete + </button> + </div> + </div> + </div> +</div> |