39
39
</ div >
40
40
< div class ="tab-pane " ng-class ="{'active': activeTab == 'local'} ">
41
41
42
- < div >
43
- < div class ="form-group ">
44
- < input type ="text " ng-model ="localFileSearch " class ="form-control input-sm " placeholder ="Search current directory... ">
42
+ < p ng-if ="!$root.getSetting('Local Video Files').value " class ="alert alert-warning " role ="alert "> You dont have a local Directory set up. As an admin, go to the settings page to configure it now.</ p >
43
+
44
+ < div ng-if ="$root.getSetting('Local Video Files').value ">
45
+ < div >
46
+ < div class ="form-group ">
47
+ < input type ="text " ng-model ="localFileSearch " class ="form-control input-sm " placeholder ="Search current directory... ">
48
+ </ div >
45
49
</ div >
46
- </ div >
47
50
48
- < div style ="overflow-y: auto; max-height: 200px; ">
51
+ < div style ="overflow-y: auto; max-height: 200px; ">
49
52
< span class ="btn btn-default btn-sm " ng-click ="backLocalDirectory() " ng-if ="localDir.length > 0 ">
50
53
< span class ="ion-android-arrow-back "> </ span >
51
54
</ span >
52
- < span > {{ localDir.join('/') }}</ span >
55
+ < span > {{ localDir.join('/') }}</ span >
53
56
54
- < table class ="table table-striped ">
55
- < tr ng-repeat ="file in localFiles | orderBy: ['-directory', 'name'] | filter:localFileSearch ">
56
- < td >
57
+ < table class ="table table-striped ">
58
+ < tr ng-repeat ="file in localFiles | orderBy: ['-directory', 'name'] | filter:localFileSearch ">
59
+ < td >
57
60
< span ng-if ="file.directory " ng-click ="openLocalDirectory(file) ">
58
61
< span class ="ion-folder "> </ span >
59
62
{{ file.name }}
60
63
</ span >
61
64
62
- < span ng-if ="!file.directory ">
65
+ < span ng-if ="!file.directory ">
63
66
< span class ="ion-document "> </ span >
64
67
{{ file.name }}
65
68
</ span >
66
- </ td >
69
+ </ td >
67
70
68
- < td >
71
+ < td >
69
72
< span class ="btn btn-success btn-xs " ng-click ="addLocalFile(file.path) " ng-if ="!file.directory ">
70
73
Choose
71
74
</ span >
72
- </ td >
73
- </ tr >
74
- </ table >
75
- </ div >
75
+ </ td >
76
+ </ tr >
77
+ </ table >
78
+ </ div >
76
79
77
- < div class ="checkbox ">
78
- < label >
79
- < input type ="checkbox " ng-model ="closeOnSelect " ng-click ="toggleCloseOnSelect() "> Close Modal on Select
80
- </ label >
80
+ < div class ="checkbox ">
81
+ < label >
82
+ < input type ="checkbox " ng-model ="closeOnSelect " ng-click ="toggleCloseOnSelect() "> Close Modal on Select
83
+ </ label >
84
+ </ div >
81
85
</ div >
86
+
82
87
</ div >
83
88
</ div >
84
89
85
90
< h4 > Video Files</ h4 >
86
91
< table class ="table table-striped " style ="font-size: 14px; " ng-show ="video.videoFiles.length ">
87
92
< thead >
88
93
< tr >
94
+ < th > ID</ th >
89
95
< th > Name </ th >
90
96
< th > Type</ th >
91
97
< th style ="width: 86px; "> is Default</ th >
@@ -95,6 +101,7 @@ <h4>Video Files</h4>
95
101
</ thead >
96
102
< tbody >
97
103
< tr ng-repeat ="file in video.videoFiles ">
104
+ < td > {{file.id}}</ td >
98
105
< td > {{file.originalFilename}}</ td >
99
106
< td > {{file.contentType}}</ td >
100
107
< td class ="text-center ">
@@ -122,6 +129,7 @@ <h4>Subtitles</h4>
122
129
< table class ="table table-striped " style ="font-size: 14px; ">
123
130
< thead >
124
131
< tr >
132
+ < th > ID</ th >
125
133
< th > Name</ th >
126
134
< th > Type</ th >
127
135
< th > Label</ th >
@@ -131,6 +139,7 @@ <h4>Subtitles</h4>
131
139
</ thead >
132
140
< tbody >
133
141
< tr ng-repeat ="file in video.subtitles ">
142
+ < td > {{file.id}}</ td >
134
143
< td > {{file.originalFilename}}</ td >
135
144
< td > {{file.contentType}}</ td >
136
145
< th >
0 commit comments