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
c6e34f0b
"resources/views/git@sites.upe.br:walter.felipe/submeta.git" did not exist on "edb8bac8ae97ad424982d5a6ee19cfef19ea4897"
Commit
c6e34f0b
authored
Mar 25, 2022
by
Abraão Barbosa
Browse files
add de url de busca de disciplinas por curso
parents
4790155c
c6f51e2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/views/layouts/pad-ensino-jquery/ensino-aula.blade.php
View file @
c6e34f0b
<script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(()
=>
{
console
.
log
(
'
Ready
'
)
})
$
(
'
#curso_id
'
).
change
(()
=>
{
$
(
'
#curso_id
'
).
change
(()
=>
{
cons
ole
.
log
(
'
OK
'
);
cons
t
curso_id
=
$
(
'
#curso_id
'
).
val
()
})
const
endpoint
=
"
{{ route('get_disciplina_by_curso', 'curso_id') }}
"
function
getComponentesCurriculares
(){
const
url
=
endpoint
.
replace
(
'
curso_id
'
,
curso_id
)
let
url
=
$
(
"
#urlGetDisciplinaByCurso
"
).
val
();
url
=
url
.
replace
(
"
#
"
,
$
(
'
#curso_id
'
).
val
()
);
console
.
log
(
url
);
$
.
get
(
url
,
function
(
result
){
$
.
get
(
url
,
function
(
result
ado
){
console
.
log
(
result
);
console
.
log
(
result
ado
);
})
})
}
}
)
</script>
</script>
resources/views/pad/dimensao/ensino.blade.php
View file @
c6e34f0b
...
@@ -98,8 +98,7 @@
...
@@ -98,8 +98,7 @@
<
div
class
=
"form-row"
>
<
div
class
=
"form-row"
>
<
div
class
=
"form-group col-md-6"
>
<
div
class
=
"form-group col-md-6"
>
<
label
for
=
"selectCurso"
>
CURSO
</
label
>
<
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""
<
select
name
=
"curso_id"
class
=
"custom-select mr-sm-2"
id
=
"curso_id"
onchange
=
"getComponentesCurriculares()"
aria-label="
Default
select
example
">
aria-label="
Default
select
example
">
<option selected>Selecionar Curso</option>
<option selected>Selecionar Curso</option>
...
@@ -158,5 +157,7 @@
...
@@ -158,5 +157,7 @@
@endsection
@endsection
@section('scripts-jquery')
@section('scripts-jquery')
@include('layouts.pad-ensino-jquery.ensino-aula')
@include('layouts.pad-ensino-jquery.ensino-aula')
@endsection
@endsection
\ No newline at end of file
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