blob: 9e4d422b976bf3d393e8acf64e983d1882b246a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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>
|