Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webprofile-jwg2024
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Siti Aisah
webprofile-jwg2024
Commits
ec141ae4
Commit
ec141ae4
authored
Dec 26, 2019
by
Aan Choesni Herlingga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix is_active slider and gallery
parent
3087496c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
app/Repositories/StorageRepository.php
+3
-0
resources/views/webprofile/backend/gallery/edit.blade.php
+1
-1
resources/views/webprofile/backend/sliders/edit.blade.php
+1
-1
No files found.
app/Repositories/StorageRepository.php
View file @
ec141ae4
...
...
@@ -55,6 +55,7 @@ abstract class StorageRepository
$data
[
$tipe
]
=
$filename
;
}
array_key_exists
(
'is_active'
,
$data
)
?
$data
[
'is_active'
]
=
1
:
$data
[
'is_active'
]
=
0
;
$request
[
'userid_created'
]
=
auth
()
->
user
()
->
id
;
return
$this
->
model
->
create
(
$data
);
}
...
...
@@ -86,7 +87,9 @@ abstract class StorageRepository
$data
[
$tipe
]
=
$filename
;
}
array_key_exists
(
'is_active'
,
$data
)
?
$data
[
'is_active'
]
=
1
:
$data
[
'is_active'
]
=
0
;
$data
[
'userid_updated'
]
=
auth
()
->
user
()
->
id
;
return
$model
->
update
(
$data
);
}
...
...
resources/views/webprofile/backend/gallery/edit.blade.php
View file @
ec141ae4
...
...
@@ -69,7 +69,7 @@
<label class="
col
-
md
-
2
control
-
label
">Status</label>
<div class="
col
-
md
-
6
">
<center><label class="
switch
">
{{ Form::checkbox('is_active',
1, tru
e) }}
{{ Form::checkbox('is_active',
$data->is_active
,
$data->is_activ
e
) }}
<span></span>
</label></center>
</div>
...
...
resources/views/webprofile/backend/sliders/edit.blade.php
View file @
ec141ae4
...
...
@@ -69,7 +69,7 @@
<label class="
col
-
md
-
2
control
-
label
">Status</label>
<div class="
col
-
md
-
6
">
<center><label class="
switch
">
{{ Form::checkbox('is_active',
1, tru
e) }}
{{ Form::checkbox('is_active',
$data->is_active
,
$data->is_activ
e
) }}
<span></span>
</label></center>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment