Skip to content

Commit

Permalink
#401 Perbaiki tidak bisa ubah gambar slider.
Browse files Browse the repository at this point in the history
  • Loading branch information
apidong authored May 23, 2022
1 parent 3adf59b commit 251d28e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions catatan_rilis.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Terima kasih pada [untuk diisi] yang terus berkontribusi. Terima kasih pula pada
2. [#333](https://github.com/OpenSID/OpenDK/issues/333) Sinkronisasi Data Pembangunan OpenSID ke OpenDK.

#### Perbaikan BUG
1. [#401](https://github.com/OpenSID/OpenDK/issues/401) Perbaiki tidak bisa ubah gambar slider.


#### TEKNIS
Expand Down
2 changes: 1 addition & 1 deletion resources/views/setting/slide/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@include( 'partials.flash_message' )
<div class="box box-primary">

{!! Form::model($slide, [ 'route' => ['setting.slide.update', $slide->id], 'method' => 'put','id' => 'form-slide', 'class' => 'form-horizontal form-label-left'] ) !!}
{!! Form::model($slide, [ 'route' => ['setting.slide.update', $slide->id], 'method' => 'put', 'files' => true, 'id' => 'form-slide', 'class' => 'form-horizontal form-label-left'] ) !!}

<div class="box-body">

Expand Down
2 changes: 1 addition & 1 deletion resources/views/setting/slide/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<input accept="image/*" type="file" id="gambar" name="gambar" class="form-control" @isset($slide->gambar) 'required' @endisset>
<code>Dimensi gambar 1360 x 400 Piksel</code>
<br>
<img class="hide" src="@if(isset($slide->gambar)) {{ asset($slide->gambar) }} @else {{ "http://placehold.it/1000x600" }} @endif" id="showgambar"
<img src="@if(isset($slide->gambar)) {{ asset($slide->gambar) }} @else {{ "http://placehold.it/1000x600" }} @endif" id="showgambar"
style="max-width:400px;max-height:250px;float:left;"/>
</div>
</div>
Expand Down

0 comments on commit 251d28e

Please sign in to comment.