diff --git a/assets/zip/personnal-data-export-navigator/Export.html b/assets/zip/personnal-data-export-navigator/Export.html index 0c6c3bc3..109e9710 100644 --- a/assets/zip/personnal-data-export-navigator/Export.html +++ b/assets/zip/personnal-data-export-navigator/Export.html @@ -169,8 +169,31 @@ +
- Loading movies + +

Your movies

+ + + + + + + + + + + + + + + + + + + +
NumberNameFile typeFile sizeActions
+
@@ -193,6 +216,7 @@ + \ No newline at end of file diff --git a/assets/zip/personnal-data-export-navigator/assets/js/categories/movies.js b/assets/zip/personnal-data-export-navigator/assets/js/categories/movies.js new file mode 100644 index 00000000..e5580fa8 --- /dev/null +++ b/assets/zip/personnal-data-export-navigator/assets/js/categories/movies.js @@ -0,0 +1,30 @@ +/** + * Movies category + * + * @author Pierre HUBERT + */ + +/** + * Apply the list of movies of the user + */ +function ApplyMovies(){ + + let target = document.querySelector("#full-movie-list-table tbody"); + + //Process the list of movies + data.movies.forEach(movie => { + + createElem2({ + appendTo: target, + type: "tr", + innerHTML: + "" + movie.id + "" + + "" + movie.name + "" + + "" + movie.file_type + "" + + "" + movie.size + "" + + " Open" + }); + + }); + +} \ No newline at end of file diff --git a/assets/zip/personnal-data-export-navigator/assets/js/main.js b/assets/zip/personnal-data-export-navigator/assets/js/main.js index a809a061..6f4cbe67 100644 --- a/assets/zip/personnal-data-export-navigator/assets/js/main.js +++ b/assets/zip/personnal-data-export-navigator/assets/js/main.js @@ -79,6 +79,7 @@ xhr.onload = function(){ ApplyCommentsList(); ApplyUserLikes(); ApplySurveyResponses(); + ApplyMovies(); } xhr.send(null); \ No newline at end of file