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
38f7d70d
Commit
38f7d70d
authored
May 19, 2022
by
unknown
Browse files
Adição dos campos Inicio e Fim projetp na criação de um edital
parent
ade8fedc
Changes
6
Show whitespace changes
Inline
Side-by-side
app/Evento.php
View file @
38f7d70d
...
@@ -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 @
38f7d70d
...
@@ -79,6 +79,7 @@ class AdministradorController extends Controller
...
@@ -79,6 +79,7 @@ class AdministradorController extends Controller
->
orderBy
(
'titulo'
)
->
orderBy
(
'titulo'
)
->
paginate
(
10
);
->
paginate
(
10
);
$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();
...
...
database/migrations/2022_05_13_120742_add_inicio_projeto_to_eventos_table.php
0 → 100644
View file @
38f7d70d
<?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 @
38f7d70d
<?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/evento/criarEvento.blade.php
View file @
38f7d70d
...
@@ -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 @
38f7d70d
...
@@ -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"
>
...
...
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