Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
4790155c
Commit
4790155c
authored
Mar 25, 2022
by
Abraão Barbosa
Browse files
add script para busar disciplinas
parent
c60a8fb9
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/views/layouts/pad-ensino-jquery/ensino-aula.blade.php
View file @
4790155c
...
...
@@ -4,8 +4,14 @@
console
.
log
(
'
Ready
'
)
})
$
(
'
curso_id
'
).
change
(()
=>
{
$
(
'
#
curso_id
'
).
change
(()
=>
{
console
.
log
(
'
OK
'
);
})
function
getComponentesCurriculares
(){
let
url
=
$
(
"
#urlGetDisciplinaByCurso
"
).
val
();
url
=
url
.
replace
(
"
#
"
,
$
(
'
#curso_id
'
).
val
());
$
.
get
(
url
,
function
(
result
){
console
.
log
(
result
);
})
}
</script>
resources/views/pad/dimensao/ensino.blade.php
View file @
4790155c
...
...
@@ -98,12 +98,15 @@
<
div
class
=
"form-row"
>
<
div
class
=
"form-group col-md-6"
>
<
label
for
=
"selectCurso"
>
CURSO
</
label
>
<
input
type
=
"hidden"
id
=
"urlGetDisciplinaByCurso"
value
=
"{{ route('get_disciplina_by_curso', ['curso_id', '#']) }}"
>
<
select
name
=
"curso_id"
class
=
"custom-select mr-sm-2"
id
=
"curso_id"
onchange
=
"getComponentesCurriculares()"
aria
-
label
=
"Default select example"
>
<
option
selected
>
Selecionar
Curso
</
option
>
@
foreach
(
$cursos
as
$curso
)
<
option
value
=
"{{
$curso->id
}}"
>
{{
$curso
->
name
}}
</
option
>
@
endforeach
</
select
>
</
div
>
<
div
class
=
"form-group col-md-6"
>
...
...
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