Skip to content

Commit 72e37e6

Browse files
author
Matthew Matz
committed
add upload modal to SPIN editor
1 parent dd1da84 commit 72e37e6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/main/webapp/editor/blocklyspin.jsp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,30 @@
6161
</tr>
6262
</table>
6363

64+
<div class="modal fade" id="upload-dialog">
65+
<div class="modal-dialog">
66+
<div class="modal-content">
67+
<div class="modal-header">
68+
<button type="button" class="close" data-dismiss="modal" onclick="clearUploadInfo();" aria-hidden="true">&times;</button>
69+
<h4 class="modal-title" id="compile-dialog-title"><fmt:message key="editor.upload" /></h4>
70+
</div>
71+
<div class="modal-body">
72+
73+
<label class="control-label"><fmt:message key="editor.upload.selectfile" /></label>
74+
<input id="selectfile" type="file" onchange="uploadHandler(this.files);">
75+
<div id="selectfile-verify-valid" class="alert alert-success" style="display: none;"><span class="glyphicon glyphicon-ok"></span> <fmt:message key="editor.upload.valid" /></div>
76+
<div id="selectfile-verify-notvalid" class="alert alert-danger" style="display: none;"><span class="glyphicon glyphicon-ban-circle"></span> <fmt:message key="editor.upload.notvalid" /></div>
77+
<div id="selectfile-verify-boardtype" class="alert alert-warning" style="display: none;"><span class="glyphicon glyphicon-warning-sign"></span> <fmt:message key="editor.upload.boardtype.warning" /></div>
78+
</div>
79+
<div class="modal-footer">
80+
<button type="button" class="btn btn-danger" disabled="true" id="selectfile-replace" onclick="replaceCode();"><fmt:message key="editor.button.replace" /></button>
81+
<button type="button" class="btn btn-primary" disabled="true" id="selectfile-append" onclick="appendCode();"><fmt:message key="editor.button.append" /></button>
82+
<button type="button" class="btn btn-default" onclick="clearUploadInfo();" data-dismiss="modal"><fmt:message key="editor.button.cancel" /></button>
83+
</div>
84+
</div><!-- /.modal-content -->
85+
</div><!-- /.modal-dialog -->
86+
</div><!-- /.modal -->
87+
6488
<div class="modal fade" id="compile-dialog">
6589
<div class="modal-dialog">
6690
<div class="modal-content">

0 commit comments

Comments
 (0)