From 808a06b0af8c5a2312c5ff7ae87d39acb3e46274 Mon Sep 17 00:00:00 2001 From: Benjamin Gamard Date: Thu, 1 Mar 2018 15:14:46 +0100 Subject: [PATCH] bulk file importer infos --- docs-web/src/main/webapp/src/app/docs/app.js | 11 ++++++++++- docs-web/src/main/webapp/src/app/share/app.js | 3 ++- docs-web/src/main/webapp/src/locale/en.json | 13 +++++++++++++ .../partial/docs/settings.fileimporter.html | 19 +++++++++++++++++++ .../webapp/src/partial/docs/settings.html | 1 + 5 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 docs-web/src/main/webapp/src/partial/docs/settings.fileimporter.html diff --git a/docs-web/src/main/webapp/src/app/docs/app.js b/docs-web/src/main/webapp/src/app/docs/app.js index f7095127..17976e08 100644 --- a/docs-web/src/main/webapp/src/app/docs/app.js +++ b/docs-web/src/main/webapp/src/app/docs/app.js @@ -110,6 +110,14 @@ angular.module('docs', } } }) + .state('settings.fileimporter', { + url: '/fileimporter', + views: { + 'settings': { + templateUrl: 'partial/docs/settings.fileimporter.html' + } + } + }) .state('settings.log', { url: '/log', views: { @@ -408,7 +416,8 @@ angular.module('docs', 'en_*': 'en', 'fr_*': 'fr', '*': 'en' - }); + }) + .fallbackLanguage('en'); if (!_.isUndefined(localStorage.overrideLang)) { // Set the current language if an override is saved in local storage diff --git a/docs-web/src/main/webapp/src/app/share/app.js b/docs-web/src/main/webapp/src/app/share/app.js index 9983bdc7..a99d6569 100644 --- a/docs-web/src/main/webapp/src/app/share/app.js +++ b/docs-web/src/main/webapp/src/app/share/app.js @@ -66,7 +66,8 @@ angular.module('share', 'en_*': 'en', 'fr_*': 'fr', '*': 'en' - }); + }) + .fallbackLanguage('en'); if (!_.isUndefined(localStorage.overrideLang)) { // Set the current language if an override is saved in local storage diff --git a/docs-web/src/main/webapp/src/locale/en.json b/docs-web/src/main/webapp/src/locale/en.json index c592b965..3ee7890a 100644 --- a/docs-web/src/main/webapp/src/locale/en.json +++ b/docs-web/src/main/webapp/src/locale/en.json @@ -239,6 +239,7 @@ "menu_user_account": "User account", "menu_two_factor_auth": "Two-factor authentication", "menu_opened_sessions": "Opened sessions", + "menu_file_importer": "Bulk file importer", "menu_general_settings": "General settings", "menu_workflow": "Workflow", "menu_users": "Users", @@ -400,6 +401,18 @@ "value": "Value", "order": "Order", "new_entry": "New entry" + }, + "fileimporter": { + "title": "Bulk file importer", + "advanced_users": "For advanced users!", + "need_intro": "If you need to:", + "need_1": "Import a directory of files at once", + "need_2": "Scan a directory for new files and import them", + "line_1": "Go to sismics/docs/releases and download the file importer tool for your system.", + "line_2": "Follow the instructions here to use this tool.", + "line_3": "Your files will be imported in Quick upload, then you can group them into documents.", + "download": "Download", + "instructions": "Instructions" } }, "feedback": { diff --git a/docs-web/src/main/webapp/src/partial/docs/settings.fileimporter.html b/docs-web/src/main/webapp/src/partial/docs/settings.fileimporter.html new file mode 100644 index 00000000..cde8a085 --- /dev/null +++ b/docs-web/src/main/webapp/src/partial/docs/settings.fileimporter.html @@ -0,0 +1,19 @@ +

+

{{ 'settings.fileimporter.advanced_users' | translate }}

+

+ +

+

+

+

+ + + {{ 'settings.fileimporter.download' | translate }} + + + {{ 'settings.fileimporter.instructions' | translate }} + +

\ No newline at end of file diff --git a/docs-web/src/main/webapp/src/partial/docs/settings.html b/docs-web/src/main/webapp/src/partial/docs/settings.html index 7f2d1026..8ae18fd6 100644 --- a/docs-web/src/main/webapp/src/partial/docs/settings.html +++ b/docs-web/src/main/webapp/src/partial/docs/settings.html @@ -6,6 +6,7 @@ {{ 'settings.menu_user_account' | translate }} {{ 'settings.menu_two_factor_auth' | translate }} {{ 'settings.menu_opened_sessions' | translate }} + {{ 'settings.menu_file_importer' | translate }}