2017-09-25 23:15:52 +00:00
< div class = "text-left" >
< div class = "row" >
< ul class = "breadcrumb" >
2017-09-27 21:29:35 +00:00
< li ng-repeat = "breadcrumb in vm.breadcrumbs track by $index" ng-click = "vm.getDirectoriesFromBreadcrumbs(breadcrumb)" data = "{{ breadcrumb }}" class = "cp breadcrumbs-list" >
{{ breadcrumb }}
2017-09-25 23:15:52 +00:00
< / li >
< / ul >
< / div >
< div class = "row" >
2017-09-28 21:10:50 +00:00
< div class = "col-lg-6" >
< ul class = "tree ls-none" >
< li class = "directories-go-here" ng-repeat = "directory in vm.siteDirectories track by $index" >
< input type = "checkbox" id = "{{ r.challenge }}{{ $index }}" / >
2017-09-28 23:27:10 +00:00
< label class = "tree_label" for = "{{ r.challenge }}{{ $index }}" ng-click = "vm.getDirectories(directory); vm.showUploadContainer = false" data = "{{ directory }}" > {{ directory }}< / label >
2017-09-28 21:10:50 +00:00
< / li >
< / ul >
< ul class = "tree files-only ls-none" >
< li ng-repeat = "file in vm.siteFiles track by $index" >
< span class = "tree_label filez" > {{ file }}< / span > < span class = "pull-right" > < button type = "button" class = "btn btn-danger btn-xs" > < i class = "fa fa-trash" > < / i > < / button > < / span >
< / li >
< li class = "move-back" >
2017-09-28 23:27:10 +00:00
< a ng-click = "vm.showUploadContainer = true;" > < i class = "fa fa-plus" > < / i > Add Files< / a >
2017-09-28 21:10:50 +00:00
< / li >
< / ul >
2017-09-28 23:27:10 +00:00
< div class = "upload-container" ng-show = "vm.showUploadContainer" >
< hr >
< h4 class = "text-left" > Upload Files:< / h4 >
< div >
< input type = "file" ng-model = "r.newFile" class = "form-control" daplie-file-change = "vm.Sites.setUpload(r)" / >
< div ng-if = "r.isZip" > < label > < input type = "checkbox" ng-model = "r.unzip" / > Unpack .zip< / label > < / div >
< div ng-if = "r.unzip" > < label > < input type = "checkbox" ng-model = "r.stripZip" / > Strip zip directory root< / label > < / div >
<!-- div ng - if="vm.isZip" ><label>Unzip directory</label> <input type="text" ng - model="vm.unzipPath" /></div -->
< div ng-if = "r.uploadTotal" > < span ng-bind = "r.uploadPercent" > 99< / span > % | < span ng-bind = "r.uploadProgress" > 1< / span > MiB / < span ng-bind = "r.uploadTotal" > 100< / span > MiB< / div >
< div >
< label > Web path< / label >
< input type = "text" class = "form-control" ng-model = "vm.autoPopulateWebPath" / >
<!-- <input type="text" class="form - control" ng - model="r.uploadPath" placeholder="{{ vm.autoPopulateWebPath }}"/> -->
< / div >
< button ng-click = "vm.Sites.upload(r)" type = "button" name = "button" class = "btn btn-default" > Add File< / button >
< / div >
< / div >
2017-09-28 21:10:50 +00:00
< / div >
< div class = "col-lg-6" >
2017-09-25 23:15:52 +00:00
< pre style = "font-size: 10px;" > {{ vm.folderStructure | stringify }}< / pre >
< / div >
< / div >
2017-09-26 23:25:59 +00:00
< div class = "row" >
< div class = "text-center" >
2017-09-28 15:58:02 +00:00
< button type = "button" class = "btn btn-danger" ng-click = "vm.Sites.remove(r)" > < i class = "fa fa-trash" > < / i > Remove all Files< / button >
2017-09-26 23:25:59 +00:00
< / div >
< / div >
2017-09-25 23:15:52 +00:00
< / div >