68 lines
3 KiB
PHP
68 lines
3 KiB
PHP
<!-- Modal template -->
|
||
<div class="modal fade" id="modals-upload-white-label">
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
@csrf
|
||
<input type="hidden" name="id">
|
||
<input type="hidden" name="action" value="attribute">
|
||
|
||
<style>
|
||
/* Dropzone */
|
||
.dropzone {
|
||
min-height: 230px;
|
||
border: 2px dashed rgba(0, 0, 0, 0.3);
|
||
background: white;
|
||
border-radius: 6px;
|
||
}
|
||
.dropzone .dz-message {
|
||
font-size: 28px;
|
||
|
||
}
|
||
|
||
</style>
|
||
|
||
<div class="modal-header">
|
||
<h5 class="modal-title">Upload Etikett White-Label Produkt</h5>
|
||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>
|
||
</div>
|
||
<div class="modal-body">
|
||
|
||
<div class="card-body">
|
||
<form method="POST" action="{{ route('admin_product_image_upload') }}" accept-charset="UTF-8" class="avatar" enctype="multipart/form-data">
|
||
@csrf
|
||
<input type="hidden" name="product_id" value="{{$product->id}}">
|
||
<input type="hidden" name="upload_type" value="wllogo">
|
||
|
||
<div class="slim_holder text-center">
|
||
<div class="slim" style="margin:20px auto;"
|
||
data-label='<span class="text-green">Foto-Upload</span><br>(Datei suchen oder Drag & Drop)'
|
||
data-fetcher="fetch.php"
|
||
data-size="600,600"
|
||
data-min-size="200,200"
|
||
data-max-file-size="10"
|
||
data-status-image-too-small="Bild zu klein<br>min. $0 Pixel"
|
||
data-status-file-type="Ungültige Datei<br>bitte nur: $0"
|
||
data-status-file-size="Die Datei ist zu groß<br>max. $0 MB"
|
||
data-button-confirm-label="bestätigen"
|
||
data-button-cancel-label="abbrechen"
|
||
data-button-confirm-title="bestätigen"
|
||
data-button-cancel-title="abbrechen"
|
||
data-button-rotate-title="drehen"
|
||
data-ratio="1:1">
|
||
<input type="file" name="images[]" required />
|
||
</div>
|
||
|
||
<br>
|
||
<button class="btn btn-primary" type="submit">Bild speichern</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-default" data-dismiss="modal">{{__('close')}}</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|