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
"resources/views/vscode:/vscode.git/clone" did not exist on "fc8557417e2d70843ff917fe3ec078b271e98e7f"
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
'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 @
38f7d70d
...
...
@@ -79,6 +79,7 @@ class AdministradorController extends Controller
->
orderBy
(
'titulo'
)
->
paginate
(
10
);
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
// $participantes = Participante::where('trabalho_id', $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 @@
</
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 @
38f7d70d
...
...
@@ -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"
>
...
...
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