Optimized file save/delete handling

This commit is contained in:
Bernd Bestel
2020-12-21 19:16:14 +01:00
parent 5953e42d70
commit cf299a3d0b
4 changed files with 5 additions and 9 deletions

View File

@@ -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>

View File

@@ -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>