1- @using ClientDependency .Core .Mvc
1+ @using ClientDependency .Core
2+ @using ClientDependency .Core .Mvc
3+
24
35@{
46 ViewBag .Title = " Bootstrap version demo" ;
@@ -78,7 +80,10 @@ PER ACTION BASIS *@
7880 <div class =" fileupload-loading" ></div >
7981 <br >
8082 <!-- The table listing the files available for upload/download -->
81- <table class =" table table-striped" ><tbody class =" files" data-toggle =" modal-gallery" data-target =" #modal-gallery" ></tbody ></table >
83+ <table class =" table table-striped" >
84+ <thead ><tr ><td style =" width :10px ;" ><td >Thumbnail</td ><td >File Name</td ><td >File Size</td ><td colspan =" 2" ></td ></tr ></thead >
85+ <tbody class =" files" data-toggle =" modal-gallery" data-target =" #modal-gallery" >
86+ </tbody ></table >
8287 </form >
8388
8489 <!-- modal-gallery is the modal dialog used for the image gallery -->
@@ -112,6 +117,7 @@ PER ACTION BASIS *@
112117<script id =" template-upload" type =" text/x-tmpl" >
113118{% for (var i= 0 , file; file= o .files [i]; i++ ) { % }
114119 < tr class = " template-upload fade" >
120+ < td style= " width:10px;" >< / td>
115121 < td class = " preview" >< span class = " fade" >< / span>< / td>
116122 < td class = " name" >< span> {%= file .name % }< / span>< / td>
117123 < td class = " size" >< span> {%= o .formatFileSize (file .size )% }< / span>< / td>
@@ -143,7 +149,14 @@ PER ACTION BASIS *@
143149<script id =" template-download" type =" text/x-tmpl" >
144150{% for (var i= 0 , file; file= o .files [i]; i++ ) { % }
145151 < tr class = " template-download fade" >
146- {% if (file .error ) { % }
152+ < td class = " delete" style= " width:10px;" >
153+ < button style= " width:0px; visibility: hidden;" class = " btn btn-danger" data- type= " {%=file.delete_type%}" data- url= " {%=file.delete_url%}" >
154+ < i class = " icon-trash icon-white" >< / i>
155+ < span> {%= locale .fileupload .destroy % }< / span>
156+ < / button>
157+ < input type= " checkbox" name= " delete" value= " 1" >
158+ < / td>
159+ {% if (file .error ) { % }
147160 < td>< / td>
148161 < td class = " name" >< span> {%= file .name % }< / span>< / td>
149162 < td class = " size" >< span> {%= o .formatFileSize (file .size )% }< / span>< / td>
@@ -158,13 +171,8 @@ PER ACTION BASIS *@
158171 < td class = " size" >< span> {%= o .formatFileSize (file .size )% }< / span>< / td>
159172 < td colspan= " 2" >< / td>
160173 {% } % }
161- < td class = " delete" >
162- < button class = " btn btn-danger" data- type= " {%=file.delete_type%}" data- url= " {%=file.delete_url%}" >
163- < i class = " icon-trash icon-white" >< / i>
164- < span> {%= locale .fileupload .destroy % }< / span>
165- < / button>
166- < input type= " checkbox" name= " delete" value= " 1" >
167- < / td>
174+ <!--
175+ -->
168176 < / tr>
169177{% } % }
170178 </script >
0 commit comments