diff --git a/localization/strings.pot b/localization/strings.pot index 408a527d..e9af4110 100644 --- a/localization/strings.pot +++ b/localization/strings.pot @@ -769,10 +769,7 @@ msgstr "" msgid "Create equipment" msgstr "" -msgid "No instruction manual available" -msgstr "" - -msgid "The current instruction manual will be deleted when you save the equipment" +msgid "The current file will be deleted on save" msgstr "" msgid "No picture available" diff --git a/public/viewjs/equipmentform.js b/public/viewjs/equipmentform.js index 2de8b8aa..ab68af9b 100644 --- a/public/viewjs/equipmentform.js +++ b/public/viewjs/equipmentform.js @@ -131,6 +131,8 @@ $('#delete-current-instruction-manual-button').on('click', function(e) $("#current-equipment-instruction-manual").addClass("d-none"); $("#delete-current-instruction-manual-on-save-hint").removeClass("d-none"); $("#delete-current-instruction-manual-button").addClass("disabled"); + $("#instruction-manual-label").addClass("d-none"); + $("#instruction-manual-label-none").removeClass("d-none"); }); ResizeResponsiveEmbeds(); diff --git a/views/equipmentform.blade.php b/views/equipmentform.blade.php index 3103bc84..522cf8b1 100644 --- a/views/equipmentform.blade.php +++ b/views/equipmentform.blade.php @@ -105,10 +105,7 @@ src="{{ $U('/api/files/equipmentmanuals/' . base64_encode($equipment->instruction_manual_file_name)) }}" type="application/pdf">

{{ $__t('The current instruction manual will be deleted when you save the equipment') }}

- @else -

{{ $__t('No instruction manual available') }}

+ class="form-text text-muted font-italic d-none">{{ $__t('The current file will be deleted on save') }}

@endif diff --git a/views/shoppinglocations.blade.php b/views/shoppinglocations.blade.php index 072a317f..6306f565 100644 --- a/views/shoppinglocations.blade.php +++ b/views/shoppinglocations.blade.php @@ -30,7 +30,7 @@ {{ $__t('Add') }} + href="{{ $U('/userfields?entity=shopping_locations') }}"> {{ $__t('Configure userfields') }}