forked from enome-components/angular-file-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.html
72 lines (52 loc) · 2.06 KB
/
template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<div class='file-manager'>
<header>
<bread-crumbs path='path'></bread-crumbs>
</header>
<div ng-controller='DirectoriesCtrl'>
<h2><i class='icon-folder-close-alt'></i> Directories</h2>
<div class='row directory_create'>
<input type='text' placeholder='New directory name' ng-model='directory_name' ng-enter='create($event)'/>
</div>
<div class='row' ng-controller='DirectoryCtrl' ng-repeat='directory in directories'>
<div class='col1' ng-click='link(directory.path)'>
<i class='icon-folder-close-alt'></i>
</div>
<div class='col2'>
<input class='inline' type='text'
ng-model='directory.name'
ng-focus='storeName(directory)'
ng-blur='update(directory)'
ng-readonly='directory.readonly'
ng-dblclick='visit(directory)'
ng-enter='unfocus($event)'
ng-click='enableRead(directory)'/>
</div>
<div class='col3'>
<button ng-click='remove(directory);'><i class='icon-trash'></i></button>
</div>
</div>
</div>
<div ng-controller='FilesCtrl' class='files'>
<h2><i class='icon-file-text-alt'></i> Files</h2>
<droparea class='droparea' files='uploaded_files'></droparea>
<div class='row file' ng-controller='FileCtrl' ng-repeat='file in files'>
<div class='col1'>
<input type='checkbox' ng-change='select(file, s)' ng-model='s' />
</div>
<div class='col2'>
<input class='inline' type='text'
ng-model='file.name'
ng-focus='storeName(file)'
ng-blur='update(file)'
ng-readonly='file.readonly'
ng-enter='unfocus($event)'
ng-click='enableRead(file)'
ng-dblclick='preview(file)' />
</div>
<div class='col3' ng-show='file.uploading'>{{file.progress}}%</div>
<div class='col3' ng-show='!file.uploading'>
<button ng-click='remove(file)'><i class='icon-trash'></i></button>
</div>
</div>
</div>
</div>