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
Show whitespace changes
Inline
Side-by-side
app/Evento.php
View file @
63c67f68
...
@@ -18,7 +18,7 @@ class Evento extends Model
...
@@ -18,7 +18,7 @@ class Evento extends Model
'numMaxTrabalhos'
,
'numMaxCoautores'
,
'hasResumo'
,
'criador_id'
,
'numParticipantes'
,
'numMaxTrabalhos'
,
'numMaxCoautores'
,
'hasResumo'
,
'criador_id'
,
'numParticipantes'
,
'dt_inicioRelatorioParcial'
,
'dt_fimRelatorioParcial'
,
'dt_inicioRelatorioFinal'
,
'dt_fimRelatorioFinal'
,
'dt_inicioRelatorioParcial'
,
'dt_fimRelatorioParcial'
,
'dt_inicioRelatorioFinal'
,
'dt_fimRelatorioFinal'
,
'formAvaliacaoExterno'
,
'formAvaliacaoInterno'
,
'formAvaliacaoExterno'
,
'formAvaliacaoInterno'
,
'cotaDoutor'
'cotaDoutor'
,
'inicioProjeto'
,
'fimProjeto'
];
];
public
function
endereco
(){
public
function
endereco
(){
...
...
app/Http/Controllers/AdministradorController.php
View file @
63c67f68
...
@@ -73,18 +73,28 @@ class AdministradorController extends Controller
...
@@ -73,18 +73,28 @@ class AdministradorController extends Controller
public
function
analisar
(
Request
$request
){
public
function
analisar
(
Request
$request
){
$evento
=
Evento
::
find
(
$request
->
evento_id
);
$evento
=
Evento
::
find
(
$request
->
evento_id
);
$status
=
[
'submetido'
,
'avaliado'
,
'aprovado'
,
'reprovado'
,
'corrigido'
];
$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
)
$trabalhos
=
Trabalho
::
where
(
'evento_id'
,
$evento
->
id
)
->
whereIn
(
'status'
,
$status
)
->
whereIn
(
'status'
,
$status
)
->
orderBy
(
'titulo'
)
->
orderBy
(
'titulo'
)
->
paginate
(
10
);
->
paginate
(
10
);
$grandesAreas
=
GrandeArea
::
whereIn
(
'id'
,
$aux
)
->
get
();
$areas
=
Area
::
whereIn
(
'id'
,
$idArea
)
->
get
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
// $participantes = Participante::where('trabalho_id', $id)->get();
// $participantes = Participante::where('trabalho_id', $id)->get();
// $participantesUsersIds = Participante::where('trabalho_id', $id)->select('user_id')->get();
// $participantesUsersIds = Participante::where('trabalho_id', $id)->select('user_id')->get();
// $participantes = User::whereIn('id', $participantesUsersIds)->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
// Utilizado para paginação de Collection
...
...
app/Http/Controllers/EventoController.php
View file @
63c67f68
...
@@ -104,7 +104,9 @@ class EventoController extends Controller
...
@@ -104,7 +104,9 @@ class EventoController extends Controller
$request
->
fimSubmissao
==
null
||
$request
->
fimSubmissao
==
null
||
$request
->
inicioRevisao
==
null
||
$request
->
inicioRevisao
==
null
||
$request
->
fimRevisao
==
null
||
$request
->
fimRevisao
==
null
||
$request
->
resultado
==
null
$request
->
resultado
==
null
||
$request
->
inicioProjeto
==
null
||
$request
->
fimProjeto
==
null
){
){
$validatedData
=
$request
->
validate
([
$validatedData
=
$request
->
validate
([
...
@@ -128,6 +130,8 @@ class EventoController extends Controller
...
@@ -128,6 +130,8 @@ class EventoController extends Controller
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
],
'pdfFormAvalExterno'
=>
[(
$request
->
pdfFormAvalExternoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[(
$request
->
pdfFormAvalExternoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfEdital'
=>
[(
$request
->
pdfEditalPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfEdital'
=>
[(
$request
->
pdfEditalPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'inicioProjeto'
=>
[
'required'
,
'date'
],
'fimProjeto'
=>
[
'required'
,
'date'
],
//'modeloDocumento' => [],
//'modeloDocumento' => [],
]);
]);
}
}
...
@@ -157,6 +161,8 @@ class EventoController extends Controller
...
@@ -157,6 +161,8 @@ class EventoController extends Controller
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'pdfFormAvalExterno'
=>
[(
$request
->
pdfFormAvalExternoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[(
$request
->
pdfFormAvalExternoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfEdital'
=>
[(
$request
->
pdfEditalPreenchido
!==
'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'],
//'modeloDocumento' => ['file', 'mimes:zip,doc,docx,odt,pdf', 'max:2048'],
]);
]);
...
@@ -183,6 +189,8 @@ class EventoController extends Controller
...
@@ -183,6 +189,8 @@ class EventoController extends Controller
$evento
[
'consu'
]
=
$request
->
has
(
'consu'
);
$evento
[
'consu'
]
=
$request
->
has
(
'consu'
);
$evento
[
'cotaDoutor'
]
=
$request
->
has
(
'cotaDoutor'
);
$evento
[
'cotaDoutor'
]
=
$request
->
has
(
'cotaDoutor'
);
$evento
[
'anexosStatus'
]
=
'final'
;
$evento
[
'anexosStatus'
]
=
'final'
;
$evento
[
'inicioProjeto'
]
=
$request
->
inicioProjeto
;
$evento
[
'fimProjeto'
]
=
$request
->
fimProjeto
;
//dd($evento);
//dd($evento);
// $user = User::find($request->coordenador_id);
// $user = User::find($request->coordenador_id);
...
@@ -376,7 +384,9 @@ class EventoController extends Controller
...
@@ -376,7 +384,9 @@ class EventoController extends Controller
$request
->
fimSubmissao
==
null
||
$request
->
fimSubmissao
==
null
||
$request
->
inicioRevisao
==
null
||
$request
->
inicioRevisao
==
null
||
$request
->
fimRevisao
==
null
||
$request
->
fimRevisao
==
null
||
$request
->
resultado
==
null
$request
->
resultado
==
null
||
$request
->
inicioProjeto
==
null
||
$request
->
fimProjeto
==
null
){
){
$validatedData
=
$request
->
validate
([
$validatedData
=
$request
->
validate
([
...
@@ -400,6 +410,8 @@ class EventoController extends Controller
...
@@ -400,6 +410,8 @@ class EventoController extends Controller
'pdfEdital'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfEdital'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2048'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'inicioProjeto'
=>
[
'required'
,
'date'
],
'fimProjeto'
=>
[
'required'
,
'date'
],
]);
]);
}
}
...
@@ -423,6 +435,8 @@ class EventoController extends Controller
...
@@ -423,6 +435,8 @@ class EventoController extends Controller
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2048'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'inicioProjeto'
=>
[
'required'
,
'date'
,
'after:resultado_final'
],
'fimProjeto'
=>
[
'required'
,
'date'
,
'after:inicioProjeto'
],
]);
]);
$evento
->
nome
=
$request
->
nome
;
$evento
->
nome
=
$request
->
nome
;
...
@@ -445,6 +459,8 @@ class EventoController extends Controller
...
@@ -445,6 +459,8 @@ class EventoController extends Controller
$evento
->
coordenadorId
=
$request
->
coordenador_id
;
$evento
->
coordenadorId
=
$request
->
coordenador_id
;
$evento
->
consu
=
$request
->
has
(
'consu'
);
$evento
->
consu
=
$request
->
has
(
'consu'
);
$evento
->
cotaDoutor
=
$request
->
has
(
'cotaDoutor'
);
$evento
->
cotaDoutor
=
$request
->
has
(
'cotaDoutor'
);
$evento
->
inicioProjeto
=
$request
->
inicioProjeto
;
$evento
->
fimProjeto
=
$request
->
fimProjeto
;
if
(
$request
->
pdfEdital
!=
null
){
if
(
$request
->
pdfEdital
!=
null
){
$pdfEdital
=
$request
->
pdfEdital
;
$pdfEdital
=
$request
->
pdfEdital
;
$path
=
'pdfEdital/'
.
$evento
->
id
.
'/'
;
$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 @@
...
@@ -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"
><
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"
><
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
=
"col-md-12"
>
<
div
class
=
"btn-group dropup
"
>
<
select
id
=
""
class
=
"form-control select-submeta"
onchange
=
"teste(this)"
style
=
"width: 200px;
"
>
<
button
type
=
"button"
style
=
"text-transform: capitalize;"
class
=
"btn btn-primary dropdown-toggle"
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
option
value
=
"todos"
selected
>
Todos
</
option
>
Filtro
@
isset
(
$column
)
-
{{
$column
}}
@
endisset
<
option
value
=
"aprovado"
>
Recomendados
</
option
>
<
/
butt
on
>
<
option
value
=
"reprovado"
>
Não
Recomendados
</
opti
on
>
<
div
class
=
"dropdown-menu"
aria
-
labelledby
=
"dropdownMenuLink"
>
<
option
value
=
"submetido"
>
Submetidos
</
option
>
<
a
class
=
"dropdown-item"
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
])}}"
>
<
option
value
=
"avaliado"
>
Avaliados
</
option
>
Todos
<
option
value
=
"corrigido"
>
Parcialmente
Recomendados
</
option
>
</
a
>
<
a
class
=
"dropdown-item"
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
, 'column' => 'aprovado'])}}"
>
Recomendados
@
foreach
(
$grandesAreas
as
$grandeArea
)
</
a
>
<
a
class
=
"dropdown-item"
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
, 'column' => 'reprovado'])
}}"
>
<
option
value
=
"
{
{$grandeArea->nome
}
}
"
>
Não
Recomendados
Grande
Área
:
{{
$grandeArea
->
nome
}}
</
a
>
</
option
>
<
a
class
=
"dropdown-item"
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
, 'column' => 'submetido'])}}"
>
@
foreach
(
$areas
as
$area
)
Submetidos
@
if
(
$grandeArea
->
id
==
$area
->
grande_area_id
)
</
a
>
<
option
value
=
"
{
{$area->nome}
}
"
>
<
a
class
=
"dropdown-item"
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
, 'column' => 'avaliado'])}}"
>
&
nbsp
;
&
nbsp
;
-
Área
:
{{
$area
->
nome
}}
Avaliado
</
option
>
</
a
>
@
endif
<
a
class
=
"dropdown-item"
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
, 'column' => 'corrigido'])}}"
>
@
endforeach
Parcialmente
Recomendados
@
endforeach
</
a
>
</
div
>
</
div
>
</
select
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -67,16 +67,16 @@
...
@@ -67,16 +67,16 @@
@
foreach
(
$trabalhos
as
$trabalho
)
@
foreach
(
$trabalhos
as
$trabalho
)
<!--
Informações
Proponente
-->
<!--
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
>
<
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
>
<
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"
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
=
"card-body"
style
=
"padding-top: 0.2rem; padding-left: 25px;padding-right: 25px;"
>
<
div
class
=
"form-row mt-3"
>
<
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"
>
<
div
class
=
"col-md-2"
>
@
if
(
$trabalho
->
status
==
"aprovado"
)
@
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
=
""
>
<
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,11 +135,13 @@
...
@@ -135,11 +135,13 @@
document
.
getElementById
(
"vizuProposta"
+
i
)
.
click
();
document
.
getElementById
(
"vizuProposta"
+
i
)
.
click
();
}
}
function
buscar
(
input
)
{
function
buscar
(
input
)
{
let
trabalhos
=
document
.
getElementById
(
"projetos"
)
.
children
;
let
trabalhos
=
document
.
getElementById
(
"projetos"
)
.
children
;
//console.log(trabalhos)
if
(
input
.
value
.
length
>
2
)
{
if
(
input
.
value
.
length
>
2
)
{
for
(
let
i
=
0
;
i
<
trabalhos
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
trabalhos
.
length
;
i
++
){
if
(
trabalhos
[
i
]
.
classList
.
contains
(
"apareceu"
)){
let
tituloProjeto
=
trabalhos
[
i
]
.
getElementsByClassName
(
"tituloProj"
)[
0
]
.
textContent
let
tituloProjeto
=
trabalhos
[
i
]
.
getElementsByClassName
(
"tituloProj"
)[
0
]
.
textContent
let
nomeProponente
=
trabalhos
[
i
]
.
getElementsByClassName
(
"proponenteProj"
)[
0
]
.
textContent
let
nomeProponente
=
trabalhos
[
i
]
.
getElementsByClassName
(
"proponenteProj"
)[
0
]
.
textContent
...
@@ -149,11 +151,43 @@
...
@@ -149,11 +151,43 @@
trabalhos
[
i
]
.
style
.
display
=
"none"
;
trabalhos
[
i
]
.
style
.
display
=
"none"
;
}
}
}
}
}
}
else
{
}
else
{
for
(
let
i
=
0
;
i
<
trabalhos
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
trabalhos
.
length
;
i
++
)
{
if
(
trabalhos
[
i
]
.
classList
.
contains
(
"apareceu"
)){
trabalhos
[
i
]
.
style
.
display
=
""
;
trabalhos
[
i
]
.
style
.
display
=
""
;
}
}
}
}
}
}
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
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"
);
}
}
}
}
</
script
>
</
script
>
@
endsection
@
endsection
...
...
resources/views/evento/criarEvento.blade.php
View file @
63c67f68
...
@@ -158,6 +158,7 @@
...
@@ -158,6 +158,7 @@
</
tr
>
</
tr
>
</
thead
>
</
thead
>
<
tbody
id
=
"projetos"
>
<
tbody
id
=
"projetos"
>
@
foreach
(
$coordenadors
as
$coordenador
)
@
foreach
(
$coordenadors
as
$coordenador
)
<
tr
>
<
tr
>
<
td
>
{{
$coordenador
->
user
->
name
}}
</
td
>
<
td
>
{{
$coordenador
->
user
->
name
}}
</
td
>
...
@@ -292,6 +293,33 @@
...
@@ -292,6 +293,33 @@
@
enderror
@
enderror
</
div
>
</
div
>
</
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
>
<
hr
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
...
...
resources/views/evento/editarEvento.blade.php
View file @
63c67f68
...
@@ -277,6 +277,32 @@
...
@@ -277,6 +277,32 @@
@
enderror
@
enderror
</
div
>
</
div
>
</
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
>
<
hr
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
...
...
resources/views/evento/formulario/participantes.blade.php
View file @
63c67f68
...
@@ -20,11 +20,11 @@
...
@@ -20,11 +20,11 @@
@for($i = 0; $i
<
$
edital-
>
numParticipantes; $i++)
@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
@
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=
""
>
<img
src=
"{{asset('img/icons/usuario.svg')}}"
style=
"width:60px"
alt=
""
>
</div>
</div>
<div
class=
"col-sm-8"
style=
"display: flex; align-items: center"
>
<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}}"
>
<a
href=
""
style=
""
class=
"justify-content-center"
data-toggle=
"modal"
data-target=
"#exampleModal{{$i}}"
id=
"nomePart{{$i+1}}"
>
Participante {{$i+1}}
Participante {{$i+1}}
</a>
</a>
</div>
</div>
...
@@ -398,11 +398,27 @@
...
@@ -398,11 +398,27 @@
$
(
"
input.rg:text
"
).
mask
(
'
00.000.000-0
'
);
$
(
"
input.rg:text
"
).
mask
(
'
00.000.000-0
'
);
function
marcar
(
id
){
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
;
document
.
getElementById
(
"
checkB
"
+
id
).
checked
=
true
;
$
(
"
#atribuir1
"
).
attr
(
'
data-target
'
,
'
#exampleModal
'
+
(
id
+
1
));
$
(
"
#atribuir1
"
).
attr
(
'
data-target
'
,
'
#exampleModal
'
+
(
id
+
1
));
document
.
getElementById
(
"
part
"
+
id
).
removeAttribute
(
"
hidden
"
);
document
.
getElementById
(
"
part
"
+
id
).
removeAttribute
(
"
hidden
"
);
document
.
getElementById
(
"
exampleModal
"
+
id
).
modal
(
'
hide
'
);
document
.
getElementById
(
"
exampleModal
"
+
id
).
modal
(
'
hide
'
);
}
}
function
desmarcar
(
id
){
function
desmarcar
(
id
){
document
.
getElementById
(
"
checkB
"
+
id
).
checked
=
false
;
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