From aebea07be4c56e3068c7f1b32e4cd74a12085249 Mon Sep 17 00:00:00 2001 From: Andrej Date: Mon, 18 Sep 2023 13:15:55 +0200 Subject: [PATCH] Change dropdown options for importing protocols [SCI-9288] --- .../stylesheets/protocol_management.scss | 14 ++++++++++ .../protocols/index/_general_toolbar.html.erb | 26 ++++++++++++++----- config/locales/en.yml | 4 +-- 3 files changed, 35 insertions(+), 9 deletions(-) diff --git a/app/assets/stylesheets/protocol_management.scss b/app/assets/stylesheets/protocol_management.scss index ac6d24cb4..0c2b76fad 100644 --- a/app/assets/stylesheets/protocol_management.scss +++ b/app/assets/stylesheets/protocol_management.scss @@ -22,6 +22,20 @@ } } +.btn-beta-icon { + &::after { + background-color: var(--sn-coral); + border-radius: 1px; + color: var(--sn-white); + content: "BETA"; + font-size: .5rem; + left: 7rem; + padding: .125rem .25rem; + position: absolute; + top: .1rem; + } +} + .dropdown-menu { border: 0; } diff --git a/app/views/protocols/index/_general_toolbar.html.erb b/app/views/protocols/index/_general_toolbar.html.erb index 362ddd6f3..7022977f0 100644 --- a/app/views/protocols/index/_general_toolbar.html.erb +++ b/app/views/protocols/index/_general_toolbar.html.erb @@ -11,23 +11,35 @@
- -
diff --git a/config/locales/en.yml b/config/locales/en.yml index 70ae3fe98..d2299ec82 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3011,8 +3011,8 @@ en: edit: "Edit" clone_btn: "Copy" import: "Import" - import_eln: "From file (.eln)" - import_eln_docx: "From file (.docx, .eln)" + import_eln: "SciNote file (.eln)" + import_docx: "MS Word (.docx)" import_protocols_io: "From Protocols.io" modal_import_json_upload: "Upload" modal_import_json_title: "Import protocols.io file"