diff --git a/web/app/static/js/nopaque.lists.js b/web/app/static/js/nopaque.lists.js index eab3c0a4..91b6ef47 100644 --- a/web/app/static/js/nopaque.lists.js +++ b/web/app/static/js/nopaque.lists.js @@ -89,6 +89,7 @@ RessourceList.dataMapper = { // Mapping for Corpus entities shown in the dashboard table. Corpus: corpus => ({creation_date: corpus.creation_date, + "delete-onclick": `prepareDeleteCorpusModal(${corpus.id})`, description: corpus.description, id: corpus.id, "analyse-link": ["analysing", "prepared", "start analysis"].includes(corpus.status) ? `/corpora/${corpus.id}/analyse` : "", @@ -105,6 +106,7 @@ RessourceList.dataMapper = { "delete-modal": `delete-corpus-file-${corpus_file.id}-modal`}), // Mapping for job entities shown in the dashboard table. Job: job => ({creation_date: job.creation_date, + "delete-onclick": `prepareDeleteJobModal(${job.id})`, description: job.description, id: job.id, link: `/jobs/${job.id}`, @@ -118,7 +120,7 @@ RessourceList.dataMapper = { // Mapping for imported result entities from corpus analysis. // Shown in imported results table QueryResult: query_result => ({corpus_name: query_result.query_metadata.corpus_name, - "delete-link": `prepareQueryResultModal(${query_result.id})`, + "delete-onclick": `prepareDeleteQueryResultModal(${query_result.id})`, description: query_result.description, id: query_result.id, "inspect-link": `/query_results/${query_result.id}/inspect`, @@ -167,6 +169,9 @@ RessourceList.options = { + + delete + edit @@ -180,6 +185,7 @@ RessourceList.options = { "title", {data: ["id"]}, {name: "analyse-link", attr: "href"}, + {name: "delete-onclick", attr: "onclick"}, {name: "edit-link", attr: "href"}, {name: "status", attr: "data-status"}]}, CorpusFile: {item: ` @@ -220,6 +226,9 @@ RessourceList.options = { + + delete + send @@ -229,17 +238,18 @@ RessourceList.options = { "description", "title", {data: ["id"]}, + {name: "delete-onclick", attr: "onclick"}, {name: "link", attr: "href"}, {name: "service", attr: "data-service"}, {name: "status", attr: "data-status"}]}, JobInput: {item : ` - - - file_download - - - `, + + + file_download + + + `, valueNames: ["filename", "id", {name: "download-link", attr: "href"}]}, @@ -253,14 +263,14 @@ RessourceList.options = { - - search - - + delete - - send + + info + + + search `, @@ -269,7 +279,7 @@ RessourceList.options = { "query", "title", {data: ["id"]}, - {name: "delete-link", attr: "onclick"}, + {name: "delete-onclick", attr: "onclick"}, {name: "inspect-link", attr: "href"}, {name: "link", attr: "href"}]}, // User entity blueprint setting html strucuture per entity per row diff --git a/web/app/templates/admin/user.html.j2 b/web/app/templates/admin/user.html.j2 index 113ef7b8..bbf8204a 100644 --- a/web/app/templates/admin/user.html.j2 +++ b/web/app/templates/admin/user.html.j2 @@ -88,6 +88,28 @@ + + + + + + + + +