Merge pull request #4807 from G-Chubinidze/gc_SCI_7724

Manage tags modal improvements [SCI-7724]
This commit is contained in:
artoscinote 2023-01-13 09:28:27 +01:00 committed by GitHub
commit c75d50c2de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 3 deletions

View file

@ -549,6 +549,26 @@ li.module-hover {
margin-right: 15px;
margin-top: 10px;
}
#manage-module-tags-modal-intro {
padding-left: 15px;
border-top: 0;
width: 568px;
height: 30px;
font-family: 'Lato';
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 21px;
color: $color-volcano;
flex: none;
order: 1;
align-self: stretch;
flex-grow: 0;
}
}

View file

@ -20,7 +20,7 @@
<% end %>
<%= bootstrap_form_for tag, remote: true, url: project_tag_path(@my_module.experiment.project, tag, format: :json), data: {tag_id: tag.id}, method: :delete, html: { class: "delete-tag-form"} do |f| %>
<%= hidden_field_tag :my_module_id, @my_module.id %>
<%= f.button class: 'btn btn-link delete-tag-link', title: t("experiments.canvas.modal_manage_tags.delete_tag") do %>
<%= f.button class: 'btn btn-link delete-tag-link', title: t("experiments.canvas.modal_manage_tags.delete_tag"), data: { confirm: t("experiments.canvas.modal_manage_tags.delete_tag_confirmation") } do %>
<span class="fas fa-trash-alt"></span>
<% end %>
<% end %>

View file

@ -3,7 +3,10 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="manage-module-tags-modal-label"><%= t("experiments.canvas.modal_manage_tags.head_title") %> <span id="manage-module-tags-modal-module"></span></h4>
<h4 class="modal-title" id="manage-module-tags-modal-label"><%= t("experiments.canvas.modal_manage_tags.head_title") %></h4>
</div>
<div class="modal-intro">
<h4 class="tags-introduction" id="manage-module-tags-modal-intro"><%= t("experiments.canvas.modal_manage_tags.explanatory_text") %></h4>
</div>
<div class="modal-body"></div>
<div class="modal-footer">

View file

@ -1414,12 +1414,14 @@ en:
zoom: "Zoom: "
reload_on_submit: "Save action is running. Reloading this page may cause unexpected behavior."
modal_manage_tags:
head_title: "Manage tags for"
head_title: "Manage tags"
subtitle: "Showing tags of task %{module}"
no_tags: "No tags!"
edit_tag: "Edit tag."
remove_tag: "Remove tag from task %{module}."
delete_tag: "Permanently delete tag from all tasks."
delete_tag_confirmation: "Deleting a tag will remove it from all tagged tasks. Are you sure you wish to continue?"
explanatory_text: "Add a set of tags to mark the tasks inside this project. Changing the tag applies to all tagged tasks. Deleting a tag removes it from all tagged tasks."
save_tag: "Save tag."
cancel_tag: "Cancel changes to the tag."
create: "Add"