Merge pull request #8392 from aignatov-bio/ai-sci-11767-add-warning-to-mark-as-na

Add warning to mark as na button [SCI-11767]
This commit is contained in:
aignatov-bio 2025-04-04 12:37:06 +02:00 committed by GitHub
commit caccde9dab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -19,6 +19,9 @@
{{ i18n.t('forms.fields.submitted_by', { date: field.field_value.submitted_at, user: field.field_value.submitted_by_full_name}) }}
</span>
<button class="btn btn-secondary mb-0.5"
:title="i18n.t('forms.fields.mark_as_na_tooltip') "
data-toggle="tooltip"
data-placement="top"
:disabled="disabled"
v-if="field.attributes.allow_not_applicable"
:class="{
@ -87,6 +90,7 @@ export default {
if (this.$refs.description) {
this.$nextTick(() => {
window.renderElementSmartAnnotations(this.$refs.description, 'span');
$('[data-toggle="tooltip"]').tooltip();
});
}
},

View file

@ -1098,6 +1098,7 @@ en:
description_html: "<p>Publishing a form locks it for editing and makes it available for use in protocol steps. You can unpublish the form only if it isn't linked to any steps.</p><p>Are you sure you want to publish the form?</p>"
fields:
mark_as_na: "Mark as N/A"
mark_as_na_tooltip: "'Mark as N/A' will delete content in this field."
add_text: "Add text"
add_number: "Add number"
from: "From"