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
submeta
Commits
63c67f68
Unverified
Commit
63c67f68
authored
May 19, 2022
by
GuilhermeGz
Committed by
GitHub
May 19, 2022
Browse files
Merge pull request #209 from antonioDurval/master
Adições da semana 19-05
parents
ade8fedc
3586a829
Changes
9
Hide whitespace changes
Inline
Side-by-side
app/Evento.php
View file @
63c67f68
...
...
@@ -18,7 +18,7 @@ class Evento extends Model
'numMaxTrabalhos'
,
'numMaxCoautores'
,
'hasResumo'
,
'criador_id'
,
'numParticipantes'
,
'dt_inicioRelatorioParcial'
,
'dt_fimRelatorioParcial'
,
'dt_inicioRelatorioFinal'
,
'dt_fimRelatorioFinal'
,
'formAvaliacaoExterno'
,
'formAvaliacaoInterno'
,
'cotaDoutor'
'cotaDoutor'
,
'inicioProjeto'
,
'fimProjeto'
];
public
function
endereco
(){
...
...
app/Http/Controllers/AdministradorController.php
View file @
63c67f68
...
...
@@ -73,18 +73,28 @@ class AdministradorController extends Controller
public
function
analisar
(
Request
$request
){
$evento
=
Evento
::
find
(
$request
->
evento_id
);
$status
=
[
'submetido'
,
'avaliado'
,
'aprovado'
,
'reprovado'
,
'corrigido'
];
$aux
=
Trabalho
::
where
(
'evento_id'
,
$evento
->
id
)
->
whereIn
(
'status'
,
$status
)
->
pluck
(
'grande_area_id'
);
$idArea
=
Trabalho
::
where
(
'evento_id'
,
$evento
->
id
)
->
whereIn
(
'status'
,
$status
)
->
pluck
(
'area_id'
);
$trabalhos
=
Trabalho
::
where
(
'evento_id'
,
$evento
->
id
)
->
whereIn
(
'status'
,
$status
)
->
orderBy
(
'titulo'
)
->
paginate
(
10
);
$grandesAreas
=
GrandeArea
::
whereIn
(
'id'
,
$aux
)
->
get
();
$areas
=
Area
::
whereIn
(
'id'
,
$idArea
)
->
get
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
// $participantes = Participante::where('trabalho_id', $id)->get();
// $participantesUsersIds = Participante::where('trabalho_id', $id)->select('user_id')->get();
// $participantes = User::whereIn('id', $participantesUsersIds)->get();
return
view
(
'administrador.analisar'
)
->
with
([
'trabalhos'
=>
$trabalhos
,
'evento'
=>
$evento
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'column'
=>
$request
->
column
]);
return
view
(
'administrador.analisar'
)
->
with
([
'trabalhos'
=>
$trabalhos
,
'evento'
=>
$evento
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'column'
=>
$request
->
column
,
'grandesAreas'
=>
$grandesAreas
,
'areas'
=>
$areas
]);
}
// Utilizado para paginação de Collection
...
...
app/Http/Controllers/EventoController.php
View file @
63c67f68
...
...
@@ -104,7 +104,9 @@ class EventoController extends Controller
$request
->
fimSubmissao
==
null
||
$request
->
inicioRevisao
==
null
||
$request
->
fimRevisao
==
null
||
$request
->
resultado
==
null
$request
->
resultado
==
null
||
$request
->
inicioProjeto
==
null
||
$request
->
fimProjeto
==
null
){
$validatedData
=
$request
->
validate
([
...
...
@@ -128,6 +130,8 @@ class EventoController extends Controller
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
],
'pdfFormAvalExterno'
=>
[(
$request
->
pdfFormAvalExternoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfEdital'
=>
[(
$request
->
pdfEditalPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'inicioProjeto'
=>
[
'required'
,
'date'
],
'fimProjeto'
=>
[
'required'
,
'date'
],
//'modeloDocumento' => [],
]);
}
...
...
@@ -157,6 +161,8 @@ class EventoController extends Controller
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'pdfFormAvalExterno'
=>
[(
$request
->
pdfFormAvalExternoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfEdital'
=>
[(
$request
->
pdfEditalPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'inicioProjeto'
=>
[
'required'
,
'date'
,
'after:yesterday'
],
'fimProjeto'
=>
[
'required'
,
'date'
,
'after_or_equal:fimSubmissao'
],
//'modeloDocumento' => ['file', 'mimes:zip,doc,docx,odt,pdf', 'max:2048'],
]);
...
...
@@ -183,6 +189,8 @@ class EventoController extends Controller
$evento
[
'consu'
]
=
$request
->
has
(
'consu'
);
$evento
[
'cotaDoutor'
]
=
$request
->
has
(
'cotaDoutor'
);
$evento
[
'anexosStatus'
]
=
'final'
;
$evento
[
'inicioProjeto'
]
=
$request
->
inicioProjeto
;
$evento
[
'fimProjeto'
]
=
$request
->
fimProjeto
;
//dd($evento);
// $user = User::find($request->coordenador_id);
...
...
@@ -376,7 +384,9 @@ class EventoController extends Controller
$request
->
fimSubmissao
==
null
||
$request
->
inicioRevisao
==
null
||
$request
->
fimRevisao
==
null
||
$request
->
resultado
==
null
$request
->
resultado
==
null
||
$request
->
inicioProjeto
==
null
||
$request
->
fimProjeto
==
null
){
$validatedData
=
$request
->
validate
([
...
...
@@ -400,6 +410,8 @@ class EventoController extends Controller
'pdfEdital'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'inicioProjeto'
=>
[
'required'
,
'date'
],
'fimProjeto'
=>
[
'required'
,
'date'
],
]);
}
...
...
@@ -423,6 +435,8 @@ class EventoController extends Controller
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'inicioProjeto'
=>
[
'required'
,
'date'
,
'after:resultado_final'
],
'fimProjeto'
=>
[
'required'
,
'date'
,
'after:inicioProjeto'
],
]);
$evento
->
nome
=
$request
->
nome
;
...
...
@@ -445,6 +459,8 @@ class EventoController extends Controller
$evento
->
coordenadorId
=
$request
->
coordenador_id
;
$evento
->
consu
=
$request
->
has
(
'consu'
);
$evento
->
cotaDoutor
=
$request
->
has
(
'cotaDoutor'
);
$evento
->
inicioProjeto
=
$request
->
inicioProjeto
;
$evento
->
fimProjeto
=
$request
->
fimProjeto
;
if
(
$request
->
pdfEdital
!=
null
){
$pdfEdital
=
$request
->
pdfEdital
;
$path
=
'pdfEdital/'
.
$evento
->
id
.
'/'
;
...
...
database/migrations/2022_05_13_120742_add_inicio_projeto_to_eventos_table.php
0 → 100644
View file @
63c67f68
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AddInicioProjetoToEventosTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'eventos'
,
function
(
Blueprint
$table
)
{
$table
->
date
(
'inicioProjeto'
)
->
nullable
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'eventos'
,
function
(
Blueprint
$table
)
{
$table
->
dropColumn
(
'inicioProjeto'
);
});
}
}
database/migrations/2022_05_13_125913_add_fim_projeto_to_eventos_table.php
0 → 100644
View file @
63c67f68
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AddFimProjetoToEventosTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'eventos'
,
function
(
Blueprint
$table
)
{
$table
->
date
(
'fimProjeto'
)
->
nullable
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'eventos'
,
function
(
Blueprint
$table
)
{
$table
->
dropColumn
(
'fimProjeto'
);
});
}
}
resources/views/administrador/analisar.blade.php
View file @
63c67f68
...
...
@@ -12,31 +12,31 @@
<
div
class
=
"col-md-12"
><
h5
style
=
"color: #1492E6; font-size: 20px;"
>
Edital
-
{{
$evento
->
nome
}}
</
h5
></
div
>
<
div
class
=
"col-md-12"
><
h6
style
=
"color: #234B8B; margin-bottom:-0.4rem; font-weight: bold; font-size: 14px;"
>
Propostas
Submetidas
</
h6
><
br
></
div
>
<
div
class
=
"col-md-12"
>
<
div
class
=
"btn-group dropup
"
>
<
button
type
=
"button"
style
=
"text-transform: capitalize;"
class
=
"btn btn-primary dropdown-toggle"
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
Filtro
@
isset
(
$column
)
-
{{
$column
}}
@
endisset
<
/
butt
on
>
<
div
class
=
"dropdown-menu"
aria
-
labelledby
=
"dropdownMenuLink"
>
<
a
class
=
"dropdown-item"
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
])}}"
>
Todos
</
a
>
<
a
class
=
"dropdown-item"
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
, 'column' => 'aprovado'])}}"
>
Recomendados
</
a
>
<
a
class
=
"dropdown-item"
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
, 'column' => 'reprovado'])
}}"
>
Não
Recomendados
</
a
>
<
a
class
=
"dropdown-item"
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
, 'column' => 'submetido'])}}"
>
Submetidos
</
a
>
<
a
class
=
"dropdown-item"
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
, 'column' => 'avaliado'])}}"
>
Avaliado
</
a
>
<
a
class
=
"dropdown-item"
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
, 'column' => 'corrigido'])}}"
>
Parcialmente
Recomendados
</
a
>
</
div
>
</
div
>
<
select
id
=
""
class
=
"form-control select-submeta"
onchange
=
"teste(this)"
style
=
"width: 200px;
"
>
<
option
value
=
"todos"
selected
>
Todos
</
option
>
<
option
value
=
"aprovado"
>
Recomendados
</
option
>
<
option
value
=
"reprovado"
>
Não
Recomendados
</
opti
on
>
<
option
value
=
"submetido"
>
Submetidos
</
option
>
<
option
value
=
"avaliado"
>
Avaliados
</
option
>
<
option
value
=
"corrigido"
>
Parcialmente
Recomendados
</
option
>
@
foreach
(
$grandesAreas
as
$grandeArea
)
<
option
value
=
"
{
{$grandeArea->nome
}
}
"
>
Grande
Área
:
{{
$grandeArea
->
nome
}}
</
option
>
@
foreach
(
$areas
as
$area
)
@
if
(
$grandeArea
->
id
==
$area
->
grande_area_id
)
<
option
value
=
"
{
{$area->nome}
}
"
>
&
nbsp
;
&
nbsp
;
-
Área
:
{{
$area
->
nome
}}
</
option
>
@
endif
@
endforeach
@
endforeach
</
select
>
</
div
>
</
div
>
</
div
>
...
...
@@ -65,18 +65,18 @@
</
div
>
<
div
id
=
"projetos"
>
@
foreach
(
$trabalhos
as
$trabalho
)
<!--
Informações
Proponente
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
<
div
class
=
"row justify-content-center
allTrab apareceu
{
{$trabalho->status}
}
{
{$trabalho->grandeArea->nome}
}
{
{$trabalho->area->nome}
}
"
style
=
"margin-top: 20px;"
>
<
br
>
<
div
class
=
"col-md-11
"
onclick
=
"myFunc(
{
{$trabalho->id}
}
)"
>
<
div
class
=
"col-md-11
"
onclick
=
"myFunc(
{
{$trabalho->id}
}
)"
>
<
a
href
=
"
{
{route('admin.analisarProposta',['id'=>$trabalho->id])}
}
"
id
=
"vizuProposta
{
{$trabalho->id}
}
"
hidden
></
a
>
<
div
class
=
"card"
style
=
"border-radius: 5px;margin-left: 25px;margin-right: 25 px"
>
<
div
class
=
"card-body"
style
=
"padding-top: 0.2rem; padding-left: 25px;padding-right: 25px;"
>
<
div
class
=
"form-row mt-3"
>
<
div
class
=
"col-md-10 tituloProj"
><
h5
style
=
"color: #234B8B; font-weight: bold"
>
Título
:
{{
$trabalho
->
titulo
}}
</
h5
></
div
>
<
div
class
=
"col-md-10 tituloProj"
><
h5
style
=
"color: #234B8B; font-weight: bold
; margin-top: 15px;
"
>
Título
:
{{
$trabalho
->
titulo
}}
</
h5
></
div
>
<
div
class
=
"col-md-2"
>
@
if
(
$trabalho
->
status
==
"aprovado"
)
<
img
src
=
"
{
{asset('img/icons/aprovado.png')}
}
"
style
=
"width: 23%;margin: auto;display: flex;margin-top: 0px;justify-content: center;align-items: center;"
alt
=
""
>
...
...
@@ -135,23 +135,57 @@
document
.
getElementById
(
"vizuProposta"
+
i
)
.
click
();
}
function
buscar
(
input
)
{
let
trabalhos
=
document
.
getElementById
(
"projetos"
)
.
children
;
if
(
input
.
value
.
length
>
2
)
{
//console.log(trabalhos)
if
(
input
.
value
.
length
>
2
)
{
for
(
let
i
=
0
;
i
<
trabalhos
.
length
;
i
++
){
let
tituloProjeto
=
trabalhos
[
i
]
.
getElementsByClassName
(
"tituloProj"
)[
0
]
.
textContent
let
nomeProponente
=
trabalhos
[
i
]
.
getElementsByClassName
(
"proponenteProj"
)[
0
]
.
textContent
if
(
trabalhos
[
i
]
.
classList
.
contains
(
"apareceu"
)){
let
tituloProjeto
=
trabalhos
[
i
]
.
getElementsByClassName
(
"tituloProj"
)[
0
]
.
textContent
let
nomeProponente
=
trabalhos
[
i
]
.
getElementsByClassName
(
"proponenteProj"
)[
0
]
.
textContent
if
(
tituloProjeto
.
toLowerCase
()
.
substr
(
0
)
.
indexOf
(
input
.
value
.
toLowerCase
())
>=
0
||
nomeProponente
.
toLowerCase
()
.
substr
(
0
)
.
indexOf
(
input
.
value
.
toLowerCase
())
>=
0
)
{
trabalhos
[
i
]
.
style
.
display
=
""
;
}
else
{
trabalhos
[
i
]
.
style
.
display
=
"none"
;
}
}
if
(
tituloProjeto
.
toLowerCase
()
.
substr
(
0
)
.
indexOf
(
input
.
value
.
toLowerCase
())
>=
0
||
nomeProponente
.
toLowerCase
()
.
substr
(
0
)
.
indexOf
(
input
.
value
.
toLowerCase
())
>=
0
)
{
}
}
else
{
for
(
let
i
=
0
;
i
<
trabalhos
.
length
;
i
++
)
{
if
(
trabalhos
[
i
]
.
classList
.
contains
(
"apareceu"
)){
trabalhos
[
i
]
.
style
.
display
=
""
;
}
else
{
trabalhos
[
i
]
.
style
.
display
=
"none"
;
}
}
}
}
function
teste
(
select
)
{
let
todos
=
document
.
getElementsByClassName
(
"allTrab"
);
let
selecionados
=
document
.
getElementsByClassName
(
select
.
value
);
if
(
select
.
value
==
"todos"
){
for
(
let
i
=
0
;
i
<
todos
.
length
;
i
++
){
todos
[
i
]
.
style
.
display
=
""
if
(
!
todos
[
i
]
.
classList
.
contains
(
"apareceu"
)){
todos
[
i
]
.
classList
.
add
(
"apareceu"
);
}
}
}
else
{
for
(
let
i
=
0
;
i
<
trabalhos
.
length
;
i
++
)
{
trabalhos
[
i
]
.
style
.
display
=
""
;
for
(
let
j
=
0
;
j
<
todos
.
length
;
j
++
){
todos
[
j
]
.
style
.
display
=
"none"
;
todos
[
j
]
.
classList
.
remove
(
"apareceu"
);
}
for
(
let
k
=
0
;
k
<
selecionados
.
length
;
k
++
){
selecionados
[
k
]
.
style
.
display
=
""
;
selecionados
[
k
]
.
classList
.
add
(
"apareceu"
);
}
}
}
...
...
resources/views/evento/criarEvento.blade.php
View file @
63c67f68
...
...
@@ -158,6 +158,7 @@
</
tr
>
</
thead
>
<
tbody
id
=
"projetos"
>
@
foreach
(
$coordenadors
as
$coordenador
)
<
tr
>
<
td
>
{{
$coordenador
->
user
->
name
}}
</
td
>
...
...
@@ -292,6 +293,33 @@
@
enderror
</
div
>
</
div
>
<!--
AKI
-->
<
div
class
=
"row justify-content-left"
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"inicioProjeto"
class
=
"col-form-label"
>
{{
__
(
'Início do Projeto*:'
)
}}
</
label
>
<
input
id
=
"inicioProjeto"
type
=
"date"
class
=
"form-control @error('inicioProjeto') is-invalid @enderror"
name
=
"inicioProjeto"
value
=
"{{ old('inicioProjeto') }}"
required
autocomplete
=
"inicioProjeto"
autofocus
>
@
error
(
'inicioProjeto'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"fimProjeto"
class
=
"col-form-label"
>
{{
__
(
'Fim do Projeto*:'
)
}}
</
label
>
<
input
id
=
"fimProjeto"
type
=
"date"
class
=
"form-control @error('fimProjeto') is-invalid @enderror"
name
=
"fimProjeto"
value
=
"{{ old('fimProjeto') }}"
required
autocomplete
=
"fimProjeto"
autofocus
>
@
error
(
'fimProjeto'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
hr
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
...
...
resources/views/evento/editarEvento.blade.php
View file @
63c67f68
...
...
@@ -277,6 +277,32 @@
@
enderror
</
div
>
</
div
>
<!--
AKI
-->
<
div
class
=
"row justify-content-left"
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"inicioProjeto"
class
=
"col-form-label"
>
{{
__
(
'Início do Projeto*:'
)
}}
</
label
>
<
input
id
=
"inicioProjeto"
type
=
"date"
value
=
"{{
$evento->inicioProjeto
}}"
class
=
"form-control @error('inicioProjeto') is-invalid @enderror"
name
=
"inicioProjeto"
value
=
"{{ old('inicioProjeto') }}"
required
autocomplete
=
"inicioProjeto"
autofocus
>
@
error
(
'inicioProjeto'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
.
date
(
'd/m/Y'
,
strtotime
(
$ontem
??
''
))
.
'.'
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-sm-6"
>
<
label
for
=
"fimProjeto"
class
=
"col-form-label"
>
{{
__
(
'Fim do Projeto*:'
)
}}
</
label
>
<
input
id
=
"fimProjeto"
type
=
"date"
value
=
"{{
$evento->fimProjeto
}}"
class
=
"form-control @error('fimProjeto') is-invalid @enderror"
name
=
"fimProjeto"
value
=
"{{ old('fimProjeto') }}"
required
autocomplete
=
"fimProjeto"
autofocus
>
@
error
(
'fimProjeto'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
.
date
(
'd/m/Y'
,
strtotime
(
$ontem
??
''
))
.
'.'
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
hr
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
...
...
resources/views/evento/formulario/participantes.blade.php
View file @
63c67f68
...
...
@@ -20,11 +20,11 @@
@for($i = 0; $i
<
$
edital-
>
numParticipantes; $i++)
<div
@
if
(!
isset
(
old
('
marcado
')[$
i
]))
hidden
@
endif
class=
"form-row mb-1 col-md-3"
style=
"margin-top: 10px"
id=
"part{{$i}}"
>
<div
class=
"col-sm-4"
>
<div
class=
"col-sm-4"
style=
"display: flex; align-items: center;"
>
<img
src=
"{{asset('img/icons/usuario.svg')}}"
style=
"width:60px"
alt=
""
>
</div>
<div
class=
"col-sm-8"
style=
"display: flex; align-items: center"
>
<a
href=
""
style=
""
class=
"justify-content-center"
data-toggle=
"modal"
data-target=
"#exampleModal{{$i}}"
>
<div
class=
"col-sm-8"
style=
"display: flex; align-items: center
;
"
>
<a
href=
""
style=
""
class=
"justify-content-center"
data-toggle=
"modal"
data-target=
"#exampleModal{{$i}}"
id=
"nomePart{{$i+1}}"
>
Participante {{$i+1}}
</a>
</div>
...
...
@@ -398,11 +398,27 @@
$
(
"
input.rg:text
"
).
mask
(
'
00.000.000-0
'
);
function
marcar
(
id
){
let
nome
=
document
.
getElementById
(
"
nome
"
+
id
);
let
linkNome
=
document
.
getElementById
(
"
nomePart
"
+
(
id
+
1
));
let
linkTituloProj
=
document
.
getElementById
(
"
tituloProj
"
+
(
id
+
1
));
let
planoTrabalho
=
document
.
getElementById
(
"
nomePlanoTrabalho
"
+
id
);
if
(
nome
.
value
!=
""
){
if
(
planoTrabalho
.
value
!=
""
){
linkNome
.
innerText
=
`Nome:
${
nome
.
value
}
\n Título do Plano:
${
planoTrabalho
.
value
}
`
;
}
else
{
linkNome
.
innerText
=
`Nome:
${
nome
.
value
}
`
;
}
}
document
.
getElementById
(
"
checkB
"
+
id
).
checked
=
true
;
$
(
"
#atribuir1
"
).
attr
(
'
data-target
'
,
'
#exampleModal
'
+
(
id
+
1
));
document
.
getElementById
(
"
part
"
+
id
).
removeAttribute
(
"
hidden
"
);
document
.
getElementById
(
"
exampleModal
"
+
id
).
modal
(
'
hide
'
);
}
function
desmarcar
(
id
){
document
.
getElementById
(
"
checkB
"
+
id
).
checked
=
false
;
...
...
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