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
3d77a1eb
Unverified
Commit
3d77a1eb
authored
Jun 25, 2021
by
Gabriel Antônio da Silva
Committed by
GitHub
Jun 25, 2021
Browse files
Merge pull request #129 from J-Romulo/master
Correções em submeter proposta
parents
8e0d6f4c
ea33dbf3
Changes
13
Show whitespace changes
Inline
Side-by-side
app/Http/Kernel.php
View file @
3d77a1eb
...
@@ -65,6 +65,8 @@ class Kernel extends HttpKernel
...
@@ -65,6 +65,8 @@ class Kernel extends HttpKernel
'isTemp'
=>
\
App\Http\Middleware\IsTemp
::
class
,
'isTemp'
=>
\
App\Http\Middleware\IsTemp
::
class
,
'checkAdministrador'
=>
\
App\Http\Middleware\checkAdministrador
::
class
,
'checkAdministrador'
=>
\
App\Http\Middleware\checkAdministrador
::
class
,
'checkAdminResp'
=>
\
App\Http\Middleware\checkAdminResp
::
class
,
'checkAdminResp'
=>
\
App\Http\Middleware\checkAdminResp
::
class
,
'checkCoordenador'
=>
\
App\Http\Middleware\checkCoordenador
::
class
,
'checkRoles'
=>
\
App\Http\Middleware\checkRoles
::
class
,
];
];
/**
/**
...
...
app/Http/Middleware/checkRoles.php
0 → 100644
View file @
3d77a1eb
<?php
namespace
App\Http\Middleware
;
use
Auth
;
use
Closure
;
use
Illuminate\Support\Facades\Log
;
class
checkRoles
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public
function
handle
(
$request
,
Closure
$next
,
...
$roles
)
{
if
(
!
Auth
::
check
()){
Log
::
debug
(
'checkRoles'
);
return
redirect
(
'/'
);
}
$user
=
Auth
::
user
();
/*
if($user->tipo == 'administrador'){
return $next($request);
}*/
foreach
(
$roles
as
$role
){
if
(
$user
->
tipo
==
$role
){
return
$next
(
$request
);
}
}
return
redirect
(
'home'
)
->
with
(
'error'
,
'Você não possui privilégios para acessar esta funcionalidade'
);
}
}
resources/views/componentes/participante.blade.php
View file @
3d77a1eb
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'RG'])
@component('componentes.input', ['label' => 'RG'])
<input
type=
"number"
class=
"form-control"
min=
"1"
maxlength=
"
8
"
name=
"rg[]"
placeholder=
"RG"
required
/>
<input
type=
"number"
class=
"form-control"
min=
"1"
maxlength=
"
12
"
name=
"rg[]"
placeholder=
"RG"
required
/>
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-12"
>
<div
class=
"col-12"
>
@component('componentes.input', ['label' => 'Complemento'])
@component('componentes.input', ['label' => 'Complemento'
, 'obrigatorio' => ''
])
<input
type=
"text"
class=
"form-control"
name=
"complemento[]"
pattern=
"[A-Za-z]+"
placeholder=
"Complemento"
required
/>
<input
type=
"text"
class=
"form-control"
name=
"complemento[]"
pattern=
"[A-Za-z]+"
placeholder=
"Complemento"
/>
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-md-12"
><h5>
Dados do curso
</h5></div>
<div
class=
"col-md-12"
><h5>
Dados do curso
</h5></div>
...
...
resources/views/evento/formulario/anexos.blade.php
View file @
3d77a1eb
...
@@ -10,19 +10,19 @@
...
@@ -10,19 +10,19 @@
<div
class=
"col-md-12"
style=
"margin-bottom: -0.8rem;"
><hr
style=
"border-top: 1px solid#1492E6"
></div>
<div
class=
"col-md-12"
style=
"margin-bottom: -0.8rem;"
><hr
style=
"border-top: 1px solid#1492E6"
></div>
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
@component('componentes.input', ['label' => '
Anexo do p
rojeto (.pdf)'])
@component('componentes.input', ['label' => '
P
rojeto (.pdf)'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexoProjeto"
placeholder=
"nomeProjeto"
accept=
"application/pdf"
required
/>
<input
type=
"file"
class=
"input-group-text"
name=
"anexoProjeto"
placeholder=
"nomeProjeto"
accept=
"application/pdf"
required
/>
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
@component('componentes.input', ['label' => '
Anexo do c
urrículo Lattes do
Coordenador
(.pdf)'])
@component('componentes.input', ['label' => '
C
urrículo Lattes do
Proponente
(.pdf)'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexoLattesCoordenador"
placeholder=
"anexoPlanoTrabalho"
accept=
".pdf"
required
/>
<input
type=
"file"
class=
"input-group-text"
name=
"anexoLattesCoordenador"
placeholder=
"anexoPlanoTrabalho"
accept=
".pdf"
required
/>
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"form-group col-md-6"
>
<div
class=
"form-group col-md-6"
>
@component('componentes.input', ['label' => '
Anexo da
Planilha de Pontuação (.xlsx,.xls,.ods)'])
@component('componentes.input', ['label' => 'Planilha de Pontuação (.xlsx,.xls,.ods)'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexoPlanilha"
placeholder=
"anexoPlanoTrabalho"
accept=
".xlsx, .xls, .ods"
required
/>
<input
type=
"file"
class=
"input-group-text"
name=
"anexoPlanilha"
placeholder=
"anexoPlanoTrabalho"
accept=
".xlsx, .xls, .ods"
required
/>
@endcomponent
@endcomponent
</div>
</div>
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
@component('componentes.input', ['label' => '
Anexo do
Grupo de Pesquisa (.pdf)'])
@component('componentes.input', ['label' => 'Grupo de Pesquisa (.pdf)'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexoGrupoPesquisa"
placeholder=
"Anexo do Grupo de Pesquisa"
accept=
"application/pdf"
required
/>
<input
type=
"file"
class=
"input-group-text"
name=
"anexoGrupoPesquisa"
placeholder=
"Anexo do Grupo de Pesquisa"
accept=
"application/pdf"
required
/>
@endcomponent
@endcomponent
...
...
resources/views/evento/formulario/participantes.blade.php
View file @
3d77a1eb
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'RG'])
@component('componentes.input', ['label' => 'RG'])
<input
type=
"number"
class=
"form-control"
min=
"1"
maxlength=
"
8
"
name=
"rg[]"
placeholder=
"RG"
required
/>
<input
type=
"number"
class=
"form-control"
min=
"1"
maxlength=
"
12
"
name=
"rg[]"
placeholder=
"RG"
required
/>
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
...
@@ -109,8 +109,8 @@
...
@@ -109,8 +109,8 @@
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-12"
>
<div
class=
"col-12"
>
@component('componentes.input', ['label' => 'Complemento'])
@component('componentes.input', ['label' => 'Complemento'
, 'obrigatorio' => ''
])
<input
type=
"text"
class=
"form-control"
name=
"complemento[]"
pattern=
"[A-Za-z]+"
placeholder=
"Complemento"
required
/>
<input
type=
"text"
class=
"form-control"
name=
"complemento[]"
pattern=
"[A-Za-z]+"
placeholder=
"Complemento"
/>
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-md-12"
><h5>
Dados do curso
</h5></div>
<div
class=
"col-md-12"
><h5>
Dados do curso
</h5></div>
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
3d77a1eb
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
}
else
{
}
else
{
parts
.
removeChild
(
e
.
parentElement
.
parentElement
);
parts
.
removeChild
(
e
.
parentElement
.
parentElement
);
contador
--
;
//
contador--;
}
}
}
}
...
@@ -281,7 +281,7 @@
...
@@ -281,7 +281,7 @@
},
},
'rg[]'
:
{
'rg[]'
:
{
required
:
true
,
required
:
true
,
maxlength
:
8
,
maxlength
:
12
,
},
},
agree
:
"required"
agree
:
"required"
...
...
resources/views/projeto/editar.blade.php
View file @
3d77a1eb
...
@@ -285,7 +285,7 @@
...
@@ -285,7 +285,7 @@
},
},
'rg[]'
:
{
'rg[]'
:
{
required
:
true
,
required
:
true
,
maxlength
:
8
,
maxlength
:
12
,
},
},
agree
:
"required"
agree
:
"required"
...
...
resources/views/projeto/formulario/anexos.blade.php
View file @
3d77a1eb
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
<div
class=
"row justify-content-center"
>
<div
class=
"row justify-content-center"
>
<div
class=
"col-12"
>
<div
class=
"col-12"
>
@component('componentes.input', ['label' => '
Anexo do p
rojeto (.pdf)'])
@component('componentes.input', ['label' => '
P
rojeto (.pdf)'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexoProjeto"
placeholder=
"nomeProjeto"
accept=
"application/pdf"
/>
<input
type=
"file"
class=
"input-group-text"
name=
"anexoProjeto"
placeholder=
"nomeProjeto"
accept=
"application/pdf"
/>
@endcomponent
@endcomponent
</div>
</div>
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
<div
class=
"row justify-content-center"
>
<div
class=
"row justify-content-center"
>
<div
class=
"col-12"
>
<div
class=
"col-12"
>
@component('componentes.input', ['label' => '
Anexo do c
urrículo Lattes do
Coordenador
(.pdf)'])
@component('componentes.input', ['label' => '
C
urrículo Lattes do
Proponente
(.pdf)'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexoLattesCoordenador"
placeholder=
"anexoPlanoTrabalho"
accept=
".pdf"
/>
<input
type=
"file"
class=
"input-group-text"
name=
"anexoLattesCoordenador"
placeholder=
"anexoPlanoTrabalho"
accept=
".pdf"
/>
@endcomponent
@endcomponent
</div>
</div>
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
<div
class=
"row justify-content-center"
>
<div
class=
"row justify-content-center"
>
<div
class=
"col-12"
>
<div
class=
"col-12"
>
@component('componentes.input', ['label' => '
Anexo da
Planilha de Pontuação (.xlsx,.xls,.ods)'])
@component('componentes.input', ['label' => 'Planilha de Pontuação (.xlsx,.xls,.ods)'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexoPlanilha"
placeholder=
"anexoPlanoTrabalho"
accept=
".xlsx, .xls, .ods"
/>
<input
type=
"file"
class=
"input-group-text"
name=
"anexoPlanilha"
placeholder=
"anexoPlanoTrabalho"
accept=
".xlsx, .xls, .ods"
/>
@endcomponent
@endcomponent
</div>
</div>
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
<div
class=
"row justify-content-center"
>
<div
class=
"row justify-content-center"
>
<div
class=
"col-12"
>
<div
class=
"col-12"
>
@component('componentes.input', ['label' => '
Anexo do
Grupo de Pesquisa (.pdf)'])
@component('componentes.input', ['label' => 'Grupo de Pesquisa (.pdf)'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexoGrupoPesquisa"
placeholder=
"Anexo do Grupo de Pesquisa"
accept=
"application/pdf"
/>
<input
type=
"file"
class=
"input-group-text"
name=
"anexoGrupoPesquisa"
placeholder=
"Anexo do Grupo de Pesquisa"
accept=
"application/pdf"
/>
@endcomponent
@endcomponent
</div>
</div>
...
...
resources/views/projeto/formulario/participantes.blade.php
View file @
3d77a1eb
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'RG'])
@component('componentes.input', ['label' => 'RG'])
<input
type=
"number"
class=
"form-control"
value=
"{{ $p->rg }}"
min=
"1"
maxlength=
"
8
"
name=
"rg[]"
placeholder=
"RG"
required
/>
<input
type=
"number"
class=
"form-control"
value=
"{{ $p->rg }}"
min=
"1"
maxlength=
"
12
"
name=
"rg[]"
placeholder=
"RG"
required
/>
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
...
@@ -111,8 +111,8 @@
...
@@ -111,8 +111,8 @@
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-12"
>
<div
class=
"col-12"
>
@component('componentes.input', ['label' => 'Complemento'])
@component('componentes.input', ['label' => 'Complemento'
, 'obrigatorio' => ''
])
<input
type=
"text"
class=
"form-control"
value=
"{{ $p->user->endereco->complemento }}"
name=
"complemento[]"
pattern=
"[A-Za-z]+"
placeholder=
"Complemento"
required
/>
<input
type=
"text"
class=
"form-control"
value=
"{{ $p->user->endereco->complemento }}"
name=
"complemento[]"
pattern=
"[A-Za-z]+"
placeholder=
"Complemento"
/>
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-md-12"
><h5>
Dados do curso
</h5></div>
<div
class=
"col-md-12"
><h5>
Dados do curso
</h5></div>
...
...
resources/views/projeto/visualizar.blade.php
View file @
3d77a1eb
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
<
div
class
=
"col-md-12"
style
=
"margin-bottom: -0.8rem;"
><
hr
style
=
"border-top: 1px solid#1492E6"
></
div
>
<
div
class
=
"col-md-12"
style
=
"margin-bottom: -0.8rem;"
><
hr
style
=
"border-top: 1px solid#1492E6"
></
div
>
<
div
class
=
"form-group col-md-6"
>
<
div
class
=
"form-group col-md-6"
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label"
>
{{
__
(
'
Anexo do p
rojeto'
)
}}
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
>
<
a
href
=
"{{ route('baixar.anexo.projeto', ['id' =>
$projeto->id
])}}"
>
Arquivo
atual
</
a
>
<
label
for
=
"anexoProjeto"
class
=
"col-form-label"
>
{{
__
(
'
P
rojeto'
)
}}
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
>
<
a
href
=
"{{ route('baixar.anexo.projeto', ['id' =>
$projeto->id
])}}"
>
Arquivo
atual
</
a
>
{{
--
@
if
(
old
(
'anexoProjetoPreenchido'
)
!=
null
||
(
isset
(
$rascunho
)
&&
$rascunho
->
anexoProjeto
!=
""
))
{{
--
@
if
(
old
(
'anexoProjetoPreenchido'
)
!=
null
||
(
isset
(
$rascunho
)
&&
$rascunho
->
anexoProjeto
!=
""
))
<
a
id
=
"anexoProjetoTemp"
href
=
"{{ route('baixar.anexo.temp', ['eventoId' =>
$edital->id
,
<
a
id
=
"anexoProjetoTemp"
href
=
"{{ route('baixar.anexo.temp', ['eventoId' =>
$edital->id
,
'nomeAnexo' => 'anexoProjeto' ])}}"
>
Arquivo
atual
</
a
>
'nomeAnexo' => 'anexoProjeto' ])}}"
>
Arquivo
atual
</
a
>
...
@@ -191,7 +191,7 @@
...
@@ -191,7 +191,7 @@
</
div
>
</
div
>
<
div
class
=
"form-group col-md-6"
>
<
div
class
=
"form-group col-md-6"
>
<
label
for
=
"anexoLattesCoordenador"
class
=
"col-form-label"
>
{{
__
(
'
Anexo do c
urrículo Lattes do
Coordenador
'
)
}}
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
><
a
href
=
"{{ route('baixar.anexo.lattes', ['id' =>
$projeto->id
]) }}"
>
Arquivo
atual
</
a
>
<
label
for
=
"anexoLattesCoordenador"
class
=
"col-form-label"
>
{{
__
(
'
C
urrículo Lattes do
Proponente
'
)
}}
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
><
a
href
=
"{{ route('baixar.anexo.lattes', ['id' =>
$projeto->id
]) }}"
>
Arquivo
atual
</
a
>
{{
--
@
if
(
old
(
'anexoLattesPreenchido'
)
!=
null
||
(
isset
(
$rascunho
)
&&
$rascunho
->
anexoLattesCoordenador
!=
""
))
{{
--
@
if
(
old
(
'anexoLattesPreenchido'
)
!=
null
||
(
isset
(
$rascunho
)
&&
$rascunho
->
anexoLattesCoordenador
!=
""
))
<
a
id
=
"anexoLattesTemp"
href
=
"{{ route('baixar.anexo.temp', ['eventoId' =>
$edital->id
,
<
a
id
=
"anexoLattesTemp"
href
=
"{{ route('baixar.anexo.temp', ['eventoId' =>
$edital->id
,
'nomeAnexo' => 'anexoLattesCoordenador' ])}}"
>
Arquivo
atual
</
a
>
'nomeAnexo' => 'anexoLattesCoordenador' ])}}"
>
Arquivo
atual
</
a
>
...
@@ -214,7 +214,7 @@
...
@@ -214,7 +214,7 @@
@
enderror
--
}}
@
enderror
--
}}
</
div
>
</
div
>
<
div
class
=
"form-group col-md-6"
>
<
div
class
=
"form-group col-md-6"
>
<
label
for
=
"anexoPlanilha"
class
=
"col-form-label"
>
{{
__
(
'
Anexo da
Planilha de Pontuação'
)
}}
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
>
<
a
href
=
"{{ route('baixar.anexo.planilha', ['id' =>
$projeto->id
]) }}"
>
Arquivo
atual
</
a
>
<
label
for
=
"anexoPlanilha"
class
=
"col-form-label"
>
{{
__
(
'Planilha de Pontuação'
)
}}
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
>
<
a
href
=
"{{ route('baixar.anexo.planilha', ['id' =>
$projeto->id
]) }}"
>
Arquivo
atual
</
a
>
{{
--
@
if
(
old
(
'anexoPlanilhaPreenchido'
)
!=
null
||
(
isset
(
$rascunho
)
&&
$rascunho
->
anexoPlanilhaPontuacao
!=
""
))
{{
--
@
if
(
old
(
'anexoPlanilhaPreenchido'
)
!=
null
||
(
isset
(
$rascunho
)
&&
$rascunho
->
anexoPlanilhaPontuacao
!=
""
))
<
a
id
=
"anexoPlanilhaTemp"
href
=
"{{ route('baixar.anexo.temp', ['eventoId' =>
$edital->id
,
<
a
id
=
"anexoPlanilhaTemp"
href
=
"{{ route('baixar.anexo.temp', ['eventoId' =>
$edital->id
,
'nomeAnexo' => 'anexoPlanilhaPontuacao' ])}}"
>
Arquivo
atual
</
a
>
'nomeAnexo' => 'anexoPlanilhaPontuacao' ])}}"
>
Arquivo
atual
</
a
>
...
@@ -536,8 +536,8 @@
...
@@ -536,8 +536,8 @@
@
enderror
@
enderror
</
div
>
</
div
>
<
div
class
=
"form-group col-md-12"
>
<
div
class
=
"form-group col-md-12"
>
<
label
for
=
"complemento1"
>
Complemento
<
span
style
=
"color: red; font-weight:bold"
>*</
span
>
</
label
>
<
label
for
=
"complemento1"
>
Complemento
</
label
>
<
textarea
type
=
"text"
class
=
"form-control @error('complemento1') is-invalid @enderror"
id
=
"complemento1"
name
=
"complemento[]"
placeholder
=
"Apartamento, casa, sítio..."
required
disabled
>@
if
(
$resultado_participante_um
){{
$participantes
[
0
]
->
user
->
endereco
->
complemento
}}
@
endif
</
textarea
>
<
textarea
type
=
"text"
class
=
"form-control @error('complemento1') is-invalid @enderror"
id
=
"complemento1"
name
=
"complemento[]"
required
disabled
>@
if
(
$resultado_participante_um
){{
$participantes
[
0
]
->
user
->
endereco
->
complemento
}}
@
endif
</
textarea
>
@
error
(
'complemento1'
)
@
error
(
'complemento1'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
style
=
"overflow: visible; display:block"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
style
=
"overflow: visible; display:block"
>
<
strong
>
{{
$message
}}
</
strong
>
<
strong
>
{{
$message
}}
</
strong
>
...
@@ -795,7 +795,7 @@
...
@@ -795,7 +795,7 @@
</
div
>
</
div
>
<
div
class
=
"form-group col-md-12"
>
<
div
class
=
"form-group col-md-12"
>
<
label
for
=
"complemento2"
>
Complemento
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
>
<
label
for
=
"complemento2"
>
Complemento
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
>
<
textarea
type
=
"text"
class
=
"form-control @error('complemento2') is-invalid @enderror"
id
=
"complemento2"
name
=
"complemento[]"
placeholder
=
"Apartamento, casa, sítio..."
disabled
>@
if
(
$resultado_participante_dois
){{
$participantes
[
1
]
->
user
->
endereco
->
complemento
}}
@
endif
</
textarea
>
<
textarea
type
=
"text"
class
=
"form-control @error('complemento2') is-invalid @enderror"
id
=
"complemento2"
name
=
"complemento[]"
disabled
>@
if
(
$resultado_participante_dois
){{
$participantes
[
1
]
->
user
->
endereco
->
complemento
}}
@
endif
</
textarea
>
@
error
(
'complemento2'
)
@
error
(
'complemento2'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
style
=
"overflow: visible; display:block"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
style
=
"overflow: visible; display:block"
>
<
strong
>
{{
$message
}}
</
strong
>
<
strong
>
{{
$message
}}
</
strong
>
...
@@ -1051,7 +1051,7 @@
...
@@ -1051,7 +1051,7 @@
</
div
>
</
div
>
<
div
class
=
"form-group col-md-12"
>
<
div
class
=
"form-group col-md-12"
>
<
label
for
=
"complemento3"
>
Complemento
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
>
<
label
for
=
"complemento3"
>
Complemento
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
>
<
textarea
type
=
"text"
class
=
"form-control @error('complemento3') is-invalid @enderror"
id
=
"complemento3"
name
=
"complemento[]"
placeholder
=
"Apartamento, casa, sítio..."
disabled
>@
if
(
$resultado_participante_tres
){{
$participantes
[
2
]
->
user
->
endereco
->
complemento
}}
@
endif
</
textarea
>
<
textarea
type
=
"text"
class
=
"form-control @error('complemento3') is-invalid @enderror"
id
=
"complemento3"
name
=
"complemento[]"
disabled
>@
if
(
$resultado_participante_tres
){{
$participantes
[
2
]
->
user
->
endereco
->
complemento
}}
@
endif
</
textarea
>
@
error
(
'complemento3'
)
@
error
(
'complemento3'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
style
=
"overflow: visible; display:block"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
style
=
"overflow: visible; display:block"
>
<
strong
>
{{
$message
}}
</
strong
>
<
strong
>
{{
$message
}}
</
strong
>
...
...
resources/views/proponente/projetos.blade.php
View file @
3d77a1eb
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<
thead
>
<
thead
>
<
tr
>
<
tr
>
<
th
scope
=
"col"
>
Edital
</
th
>
<
th
scope
=
"col"
>
Edital
</
th
>
<
th
scope
=
"col"
style
=
"width:100%"
>
Projeto
</
th
>
<
th
scope
=
"col"
style
=
"width:
100%
;
"
>
Projeto
</
th
>
<
th
scope
=
"col"
style
=
"text-align: center"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
style
=
"text-align: center"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
style
=
"text-align: center"
>
Status
</
th
>
<
th
scope
=
"col"
style
=
"text-align: center"
>
Status
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<
td
>
<
td
>
{{
$projeto
->
evento
->
nome
}}
{{
$projeto
->
evento
->
nome
}}
</
td
>
</
td
>
<
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$projeto
->
titulo
}}
{{
$projeto
->
titulo
}}
</
td
>
</
td
>
<
td
style
=
"text-align: center"
>
{{
date
(
'd-m-Y'
,
strtotime
(
$projeto
->
updated_at
))
}}
</
td
>
<
td
style
=
"text-align: center"
>
{{
date
(
'd-m-Y'
,
strtotime
(
$projeto
->
updated_at
))
}}
</
td
>
...
...
resources/views/proponente/projetosEdital.blade.php
View file @
3d77a1eb
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
@
foreach
(
$projetos
as
$projeto
)
@
foreach
(
$projetos
as
$projeto
)
@
if
(
Auth
()
->
user
()
->
proponentes
!=
null
&&
$projeto
->
proponente_id
===
Auth
()
->
user
()
->
proponentes
->
id
)
@
if
(
Auth
()
->
user
()
->
proponentes
!=
null
&&
$projeto
->
proponente_id
===
Auth
()
->
user
()
->
proponentes
->
id
)
<
tr
>
<
tr
>
<
td
>
<
td
style
=
"max-width:100px; overflow-x:hidden; text-overflow:ellipsis"
>
{{
$projeto
->
titulo
}}
{{
$projeto
->
titulo
}}
</
td
>
</
td
>
<
td
style
=
"text-align: center"
>
{{
date
(
'd-m-Y'
,
strtotime
(
$projeto
->
updated_at
))
}}
</
td
>
<
td
style
=
"text-align: center"
>
{{
date
(
'd-m-Y'
,
strtotime
(
$projeto
->
updated_at
))
}}
</
td
>
...
...
routes/web.php
View file @
3d77a1eb
...
@@ -231,16 +231,9 @@ Route::prefix('evento')->name('evento.')->group(function(){
...
@@ -231,16 +231,9 @@ Route::prefix('evento')->name('evento.')->group(function(){
Route
::
post
(
'/criar'
,
'EventoController@store'
)
->
name
(
'criar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/criar'
,
'EventoController@store'
)
->
name
(
'criar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/visualizar/{id}'
,
'EventoController@show'
)
->
name
(
'visualizar'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/visualizar/{id}'
,
'EventoController@show'
)
->
name
(
'visualizar'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/listar'
,
'EventoController@listar'
)
->
name
(
'listar'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/listar'
,
'EventoController@listar'
)
->
name
(
'listar'
)
->
middleware
(
'auth'
);
Route
::
delete
(
'/excluir/{id}'
,
'EventoController@destroy'
)
->
name
(
'deletar'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
delete
(
'/excluir/{id}'
,
'EventoController@destroy'
)
->
name
(
'deletar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/editar/{id}'
,
'EventoController@edit'
)
->
name
(
'editar'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
delete
(
'/excluir/{id}'
,
'EventoController@destroy'
)
->
name
(
'deletar'
)
->
middleware
(
checkCoordenador
::
class
);
Route
::
post
(
'/editar/{id}'
,
'EventoController@update'
)
->
name
(
'update'
)
->
middleware
(
'checkRoles:coordenador,administrador'
);
Route
::
get
(
'/editar/{id}'
,
'EventoController@edit'
)
->
name
(
'editar'
)
->
middleware
(
'checkAdministrador'
);
Route
::
get
(
'/editar/{id}'
,
'EventoController@edit'
)
->
name
(
'editar'
)
->
middleware
(
checkCoordenador
::
class
);
Route
::
post
(
'/editar/{id}'
,
'EventoController@update'
)
->
name
(
'update'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/editar/{id}'
,
'EventoController@update'
)
->
name
(
'update'
)
->
middleware
(
checkCoordenador
::
class
);
Route
::
post
(
'/setResumo'
,
'EventoController@setResumo'
)
->
name
(
'setResumo'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/setResumo'
,
'EventoController@setResumo'
)
->
name
(
'setResumo'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/setFoto'
,
'EventoController@setFotoEvento'
)
->
name
(
'setFotoEvento'
)
->
middleware
(
'checkAdministrador'
);
Route
::
post
(
'/setFoto'
,
'EventoController@setFotoEvento'
)
->
name
(
'setFotoEvento'
)
->
middleware
(
'checkAdministrador'
);
...
...
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