1<script>
2 $('[class*="lfm"]').each(function() {
3 $(this).filemanager('image', {prefix: route_prefix});
4 });
5</script>
1<div class="row">
2 <div class="col-md-6">
3 <div class="input-group">
4 <span class="input-group-btn">
5 <a data-input="thumbnail" data-preview="holder" class="lfm btn btn-primary">
6 <i class="fa fa-picture-o"></i> CHOOSE
7 </a>
8 </span>
9 <input id="thumbnail" class="form-control" type="text" name="image" readonly>
10 </div>
11 <img id="holder" style="margin-top:15px;max-height:100px;">
12 </div>
13</div>
14
15<div class="row">
16 <div class="col-md-6">
17 <div class="input-group">
18 <span class="input-group-btn">
19 <a data-input="thumbnail2" data-preview="holder2" class="lfm btn btn-primary">
20 <i class="fa fa-picture-o"></i> CHOOSE
21 </a>
22 </span>
23 <input id="thumbnail2" class="form-control" type="text" name="image" readonly>
24 </div>
25 <img id="holder2" style="margin-top:15px;max-height:100px;">
26 </div>
27</div>