8000 show second standalone button in demo page · abcdmitry/laravel-filemanager@523c2cf · GitHub
[go: up one dir, main page]

Skip to content

Commit 523c2cf

Browse files
committed
show second standalone button in demo page
1 parent 95fa942 commit 523c2cf

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/views/demo.blade.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<textarea id="summernote-editor" name="content"></textarea>
2727
</div>
2828
<div class="col-md-6">
29-
<h2>Standalone Button</h2>
29+
<h2>Standalone Image Button</h2>
3030
<div class="input-group">
3131
<span class="input-group-btn">
3232
<a id="lfm" data-input="thumbnail" data-preview="holder" class="btn btn-primary">
@@ -36,6 +36,16 @@
3636
<input id="thumbnail" class="form-control" type="text" name="filepath">
3737
</div>
3838
<img id="holder" style="margin-top:15px;max-height:100px;">
39+
<h2>Standalone File Button</h2>
40+
<div class="input-group">
41+
<span class="input-group-btn">
42+
<a id="lfm2" data-input="thumbnail2" data-preview="holder2" class="btn btn-primary">
43+
<i class="fa fa-picture-o"></i> Choose
44+
</a>
45+
</span>
46+
<input id="thumbnail2" class="form-control" type="text" name="filepath">
47+
</div>
48+
<img id="holder2" style="margin-top:15px;max-height:100px;">
3949
</div>
4050
</div>
4151
</div>
@@ -100,6 +110,7 @@
100110
</script>
101111
<script>
102112
$('#lfm').filemanager('image', {prefix: route_prefix});
113+
$('#lfm2').filemanager('file', {prefix: route_prefix});
103114
</script>
104115

105116
<link href="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.4/summernote.css" rel="stylesheet">

0 commit comments

Comments
 (0)
0