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
e1382a8b
Commit
e1382a8b
authored
4 years ago
by
Aan Choesni Herlingga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix team
parent
b661a232
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
app/Http/Controllers/Webprofile/Backend/PersonController.php
+1
-1
app/Http/Controllers/Webprofile/Front/PersonController.php
+7
-5
resources/views/webprofile/backend/person/index.blade.php
+1
-1
No files found.
app/Http/Controllers/Webprofile/Backend/PersonController.php
View file @
e1382a8b
...
...
@@ -16,7 +16,7 @@ class PersonController extends Controller
$pick
=
Setting
::
where
(
'name_setting'
,
'team'
)
->
first
();
$listTeam
=
null
;
$listTeam
=
[]
;
if
(
$pick
)
{
$listTeam
=
$this
->
listTeam
(
$pick
->
value_setting
);
}
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/Webprofile/Front/PersonController.php
View file @
e1382a8b
...
...
@@ -78,17 +78,19 @@ class PersonController extends Controller
{
$pick
=
Setting
::
where
(
'name_setting'
,
'team'
)
->
first
();
$listTeam
=
null
;
$listTeam
=
[]
;
if
(
$pick
)
{
$listTeam
=
$this
->
listTeam
(
$pick
->
value_setting
);
}
$team
=
[];
if
(
$name
==
'lecturer'
)
{
$team
=
$listTeam
[
1
];
}
elseif
(
$name
==
'academic-staff'
)
{
$team
=
$listTeam
[
0
];
if
(
$listTeam
)
{
if
(
$name
==
'lecturer'
)
{
$team
=
$listTeam
[
1
];
}
elseif
(
$name
==
'academic-staff'
)
{
$team
=
$listTeam
[
0
];
}
}
return
$team
;
...
...
This diff is collapsed.
Click to expand it.
resources/views/webprofile/backend/person/index.blade.php
View file @
e1382a8b
...
...
@@ -29,7 +29,7 @@
<div class="
form
-
group
@
if
(
$errors
->
has
(
'value_setting'
))
has
-
error
@
endif
">
<label class="
col
-
md
-
2
control
-
label
">@lang('label.name') @lang('feature.setting')</label>
<div class="
col
-
md
-
10
">
{{ Form::select('value_setting',
$unit
,
$pick
->value_setting
, ['class' => 'form-control select2', 'style' => 'width: 100%; font-size: 14pt;', 'id' => 'value_setting', 'placeholder' => app('translator')->getFromJson('feature.category'), 'required']) }}
{{ Form::select('value_setting',
$unit
,
$pick
?
$pick->value_setting
: null
, ['class' => 'form-control select2', 'style' => 'width: 100%; font-size: 14pt;', 'id' => 'value_setting', 'placeholder' => app('translator')->getFromJson('feature.category'), 'required']) }}
@if (
$errors->has
('value_setting'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('value_setting')}
}
</label>
@endif
...
...
This diff is collapsed.
Click to expand it.
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