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
994a6528
Commit
994a6528
authored
Nov 24, 2024
by
Vitor Roberto
Browse files
Deletar edital e ajustes na criação de edital
parent
cd301513
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/EventoController.php
View file @
994a6528
This diff is collapsed.
Click to expand it.
app/Http/Controllers/TrabalhoController.php
View file @
994a6528
...
...
@@ -1548,7 +1548,7 @@ class TrabalhoController extends Controller
}
}
catch
(
\
Throwable
$th
)
{
DB
::
rollback
();
return
redirect
(
route
(
'proponente.projetos'
))
->
withErrors
([
'mensagem'
=>
'Não foi possível realizar a submissão do Projeto!'
]);
//
return redirect(route('proponente.projetos'))->withErrors(['mensagem' => 'Não foi possível realizar a submissão do Projeto!']);
}
...
...
app/Http/Requests/StoreTrabalho.php
View file @
994a6528
...
...
@@ -22,13 +22,15 @@ class StoreTrabalho extends FormRequest
}
protected
function
prepareForValidation
()
{
{
/*
$func = function ($value) {
return ['cpf' => $value];
};
$this->merge([
'cpfs' => array_map($func, $this->cpf),
]);
*/
}
...
...
resources/views/administrador/atribuirAvaliadores.blade.php
View file @
994a6528
...
...
@@ -36,39 +36,6 @@
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-sm-3 d-flex justify-content-center"
>
<
a
@
if
(
count
(
$evento
->
trabalhos
)
>
0
)
href
=
"{{ route('admin.projetos', ['evento_id' =>
$evento->id
]) }}"
@
else
href
=
"#"
@
endif
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center card-menu"
style
=
"min-height: 200px;"
>
<
div
class
=
"card-body d-flex justify-content-center align-items-center"
>
@
if
(
count
(
$evento
->
trabalhos
)
==
0
)
<
h3
style
=
"font-size: 20px; word-wrap: break-word;"
>
EDITAL
NÃO
POSSUI
PROJETOS
</
h3
>
@
else
<
div
class
=
"container"
>
<
div
class
=
"row titulo-card-menu"
>
<
div
class
=
"col-md-12"
>
<
h3
style
=
"padding-top:10px; font-size: 20px;"
>
Selecionar
Projetos
</
h3
>
</
div
>
</
div
>
@
php
$projetos
=
\
App\Trabalho
::
count
();
@
endphp
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
h5
>
Nº
total
de
projetos
:</
h5
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
h1
class
=
"quant-titulo-card"
>
{{
$projetos
}}
</
h1
>
</
div
>
</
div
>
</
div
>
@
endif
</
div
>
</
div
>
</
a
>
</
div
>
</
div
>
</
div
>
...
...
resources/views/evento/criarEvento.blade.php
View file @
994a6528
...
...
@@ -58,15 +58,6 @@
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-sm-2"
>
<
label
for
=
"quantidade_ods"
class
=
"col-form-label"
>
{{
__
(
'Quantidade de ODS\'s:'
)
}}
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
<
select
id
=
"quantidade_ods"
class
=
"form-control"
name
=
"quantidade_ods"
required
>
@
for
(
$i
=
1
;
$i
<=
17
;
$i
++
)
<
option
value
=
"{{
$i
}}"
@
if
(
old
(
'quantidade_ods'
)
==
$i
)
selected
@
endif
>
{{
$i
}}
</
option
>
@
endfor
</
select
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
label
for
=
"natureza"
class
=
"col-form-label"
>
{{
__
(
'Natureza:'
)
}}
<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
994a6528
...
...
@@ -824,8 +824,8 @@
selectedOds
.
push
(
$
(
this
).
val
());
});
if
(
selectedOds
.
length
>
quantidadeOds
)
{
showAlert
(
'
#notificacao-erro
'
,
`Você atingiu o limite máximo de ODS's selecionadas (
${
quantidadeOds
}
)`
);
if
(
selectedOds
.
length
>
3
)
{
showAlert
(
'
#notificacao-erro
'
,
`Você atingiu o limite máximo de ODS's selecionadas (
${
3
}
)`
);
$
(
this
).
prop
(
'
checked
'
,
false
);
selectedOds
.
pop
();
}
...
...
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