update foto bisa kamera dan gallery

This commit is contained in:
majid
2024-12-29 12:03:35 +07:00
parent ac622759f9
commit 371de00add
2 changed files with 7 additions and 7 deletions

View File

@@ -137,7 +137,7 @@
<div class="input-group w-full flex gap-2"> <div class="input-group w-full flex gap-2">
<input type="file" name="foto_rute_lainnya[]" <input type="file" name="foto_rute_lainnya[]"
class="file-input file-input-bordered w-full" class="file-input file-input-bordered w-full"
value="{{ $photo['foto_rute_lainnya'] }}" accept="image/*" value="{{ $photo['foto_rute_lainnya'] }}" accept=".jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.webp,.svg"
onchange="previewImage(this, 'foto_rute_lainnya-preview-{{ $index }}')"> onchange="previewImage(this, 'foto_rute_lainnya-preview-{{ $index }}')">
<button type="button" id="btnCamera-{{ $index }}" <button type="button" id="btnCamera-{{ $index }}"
class="btn btn-light" data-modal-toggle="#cameraModal"> class="btn btn-light" data-modal-toggle="#cameraModal">
@@ -283,7 +283,7 @@
onchange="previewImage(this, 'foto_basement_preview')"> onchange="previewImage(this, 'foto_basement_preview')">
<div class="input-group w-full flex gap-2"> <div class="input-group w-full flex gap-2">
<input id="inputBasement" type="file" name="foto_basement" <input id="inputBasement" type="file" name="foto_basement"
class="file-input file-input-bordered w-full" accept="image/*" class="file-input file-input-bordered w-full" accept=".jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.webp,.svg"
onchange="previewImage(this, 'foto_basement_preview')" capture="camera"> onchange="previewImage(this, 'foto_basement_preview')" capture="camera">
<button type="button" id="btnCamera" class="btn btn-light" <button type="button" id="btnCamera" class="btn btn-light"
data-modal-toggle="#cameraModal"> data-modal-toggle="#cameraModal">
@@ -336,7 +336,7 @@
<div class="input-group w-full flex gap-2"> <div class="input-group w-full flex gap-2">
<input id="inputPendamping" type="file" name="pendamping" <input id="inputPendamping" type="file" name="pendamping"
class="file-input file-input-bordered w-full" accept="image/*" class="file-input file-input-bordered w-full" accept=".jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.webp,.svg"
onchange="previewImage(this, 'pendamping')" capture="camera"> onchange="previewImage(this, 'pendamping')" capture="camera">
<button type="button" id="btnCamera" class="btn btn-light" <button type="button" id="btnCamera" class="btn btn-light"
data-modal-toggle="#cameraModal"> data-modal-toggle="#cameraModal">

View File

@@ -122,7 +122,7 @@
<input class="name_rute" type="hidden" name="name_rute" value="rute"> <input class="name_rute" type="hidden" name="name_rute" value="rute">
<div class="w-full"> <div class="w-full">
<input id="inputGistaru" type="file" name="foto_gistaru" <input id="inputGistaru" type="file" name="foto_gistaru"
class="file-input file-input-bordered w-full" accept="image/*" class="file-input file-input-bordered w-full" accept=".jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.webp,.svg"
onchange="previewImage(this, 'gistaru-preview')"> onchange="previewImage(this, 'gistaru-preview')">
<img id="gistaru-preview" <img id="gistaru-preview"
@@ -149,7 +149,7 @@
<input id="inputBhumi" type="file" name="foto_bhumi" <input id="inputBhumi" type="file" name="foto_bhumi"
class="file-input file-input-bordered w-full " accept="image/*" class="file-input file-input-bordered w-full " accept=".jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.webp,.svg"
onchange="previewImage(this, 'bhumi-preview')"> onchange="previewImage(this, 'bhumi-preview')">
<img id="bhumi-preview" <img id="bhumi-preview"
src="{{ asset('storage/' . (isset($forminspeksi['foto_bhumi']) ? $forminspeksi['foto_bhumi'] : '')) }}" src="{{ asset('storage/' . (isset($forminspeksi['foto_bhumi']) ? $forminspeksi['foto_bhumi'] : '')) }}"
@@ -171,7 +171,7 @@
<input class="name_rute" type="hidden" name="name_rute" value="rute"> <input class="name_rute" type="hidden" name="name_rute" value="rute">
<div class="w-full"> <div class="w-full">
<input id="inputArgisRegion" type="file" name="foto_argis_region" <input id="inputArgisRegion" type="file" name="foto_argis_region"
class="file-input file-input-bordered w-full" accept="image/*" class="file-input file-input-bordered w-full" accept=".jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.webp,.svg"
onchange="previewImage(this, 'argis-region-preview')"> onchange="previewImage(this, 'argis-region-preview')">
<img id="argis-region-preview" <img id="argis-region-preview"
src="{{ asset('storage/' . (isset($forminspeksi['foto_argis_region']) ? $forminspeksi['foto_argis_region'] : '')) }}" src="{{ asset('storage/' . (isset($forminspeksi['foto_argis_region']) ? $forminspeksi['foto_argis_region'] : '')) }}"
@@ -194,7 +194,7 @@
<div class="w-full grid gap-5"> <div class="w-full grid gap-5">
<div class="input-group w-full flex gap-2"> <div class="input-group w-full flex gap-2">
<input id="foto_tempat" type="file" name="foto_tempat" <input id="foto_tempat" type="file" name="foto_tempat"
class="file-input file-input-bordered w-full" accept="image/*" class="file-input file-input-bordered w-full" accept=".jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.webp,.svg"
onchange="previewImage(this, 'foto_tempat-preview')"> onchange="previewImage(this, 'foto_tempat-preview')">
<button type="button" id="btnCamera" class="btn btn-light" data-modal-toggle="#cameraModal"> <button type="button" id="btnCamera" class="btn btn-light" data-modal-toggle="#cameraModal">
<i class="ki-outline ki-abstract-33"></i> Camera <i class="ki-outline ki-abstract-33"></i> Camera