mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Optimized file save/delete handling
This commit is contained in:
parent
5953e42d70
commit
cf299a3d0b
@ -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"
|
||||
|
@ -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();
|
||||
|
||||
|
@ -105,10 +105,7 @@
|
||||
src="{{ $U('/api/files/equipmentmanuals/' . base64_encode($equipment->instruction_manual_file_name)) }}"
|
||||
type="application/pdf">
|
||||
<p id="delete-current-instruction-manual-on-save-hint"
|
||||
class="form-text text-muted font-italic d-none">{{ $__t('The current instruction manual will be deleted when you save the equipment') }}</p>
|
||||
@else
|
||||
<p id="no-current-instruction-manual-hint"
|
||||
class="form-text text-muted font-italic">{{ $__t('No instruction manual available') }}</p>
|
||||
class="form-text text-muted font-italic d-none">{{ $__t('The current file will be deleted on save') }}</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
@ -30,7 +30,7 @@
|
||||
{{ $__t('Add') }}
|
||||
</a>
|
||||
<a class="btn btn-outline-secondary m-1 mt-md-0 mb-md-0 float-right"
|
||||
href="{{ $U('/userfields?entity=shoppinglocations') }}">
|
||||
href="{{ $U('/userfields?entity=shopping_locations') }}">
|
||||
{{ $__t('Configure userfields') }}
|
||||
</a>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user