-
Notifications
You must be signed in to change notification settings - Fork 5
/
template.js
1 lines (1 loc) · 2.26 KB
/
template.js
1
module.exports = '<div class=\'file-manager\'>\n <header>\n <bread-crumbs path=\'path\'></bread-crumbs>\n </header>\n\n <div ng-controller=\'DirectoriesCtrl\'>\n\n <h2><i class=\'icon-folder-close-alt\'></i> Directories</h2>\n\n <div class=\'row directory_create\'>\n <input type=\'text\' placeholder=\'New directory name\' ng-model=\'directory_name\' ng-enter=\'create($event)\'/>\n </div>\n\n <div class=\'row\' ng-controller=\'DirectoryCtrl\' ng-repeat=\'directory in directories\'>\n\n <div class=\'col1\' ng-click=\'link(directory.path)\'>\n <i class=\'icon-folder-close-alt\'></i>\n </div>\n\n <div class=\'col2\'>\n <input class=\'inline\' type=\'text\' \n ng-model=\'directory.name\' \n ng-focus=\'storeName(directory)\' \n ng-blur=\'update(directory)\' \n ng-readonly=\'directory.readonly\' \n ng-dblclick=\'visit(directory)\' \n ng-enter=\'unfocus($event)\'\n ng-click=\'enableRead(directory)\'/>\n \n </div>\n\n <div class=\'col3\'>\n <button ng-click=\'remove(directory);\'><i class=\'icon-trash\'></i></button>\n </div>\n\n </div>\n\n </div>\n\n <div ng-controller=\'FilesCtrl\' class=\'files\'>\n\n <h2><i class=\'icon-file-text-alt\'></i> Files</h2>\n\n <droparea class=\'droparea\' files=\'uploaded_files\'></droparea> \n\n <div class=\'row file\' ng-controller=\'FileCtrl\' ng-repeat=\'file in files\'>\n\n <div class=\'col1\'>\n <input type=\'checkbox\' ng-change=\'select(file, s)\' ng-model=\'s\' />\n </div>\n\n <div class=\'col2\'>\n <input class=\'inline\' type=\'text\' \n ng-model=\'file.name\' \n ng-focus=\'storeName(file)\'\n ng-blur=\'update(file)\'\n ng-readonly=\'file.readonly\'\n ng-enter=\'unfocus($event)\'\n ng-click=\'enableRead(file)\'\n ng-dblclick=\'preview(file)\' />\n </div>\n\n <div class=\'col3\' ng-show=\'file.uploading\'>{{file.progress}}%</div>\n\n <div class=\'col3\' ng-show=\'!file.uploading\'>\n <button ng-click=\'remove(file)\'><i class=\'icon-trash\'></i></button>\n </div>\n </div>\n\n </div>\n\n</div>\n';