Bug 35570: (QA follow-up): Fix translatability of 'Delete'

This is also fixing the delete->trash icon and spacing between label+icon

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Pedro Amorim 2024-11-04 13:16:45 +00:00 committed by Katrin Fischer
parent a5358f4c54
commit 05bf35c83f
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 4 additions and 4 deletions

View File

@ -8,8 +8,8 @@
<li class="form-horizontal">
<input type="text" class="custom-name" name="custom_key" value="[% key | html %]"><input type="text" name="custom_value" id="custom-value" value="[% values.$i | html %]">
<button value="[% i | html %]" name="custom_delete" type="submit" class="btn btn-danger btn-sm delete-new-field">
<span class="fa fa-delete"></span>Delete
</button></li>
<span class="fa fa-trash"></span> Delete
</button>
</li>
[% i = i + 1 %]
[% END %]

View File

@ -7,8 +7,8 @@ document.addEventListener('DOMContentLoaded', function() {
'<input type="text" id="custom-value" name="custom_value"> '+
'<button type="button" class="btn btn-danger btn-sm ' +
'delete-new-field">' +
'<span class="fa fa-delete">' +
'</span>Delete</button></li>';
'<span class="fa fa-trash">' +
'</span> '+__('Delete')+'</button></li>';
$('#standard-fields').append(row);
});
$('#standard-fields').on('click', '.delete-new-field',