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
512f16ba
Commit
512f16ba
authored
Jun 28, 2020
by
carlos
Browse files
Exibicao de erro em criar edital
parent
6e04fa90
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/EventoController.php
View file @
512f16ba
...
@@ -130,9 +130,9 @@ class EventoController extends Controller
...
@@ -130,9 +130,9 @@ class EventoController extends Controller
'descricao'
=>
[
'required'
],
'descricao'
=>
[
'required'
],
'coordenador_id'
=>
[
'required'
],
'coordenador_id'
=>
[
'required'
],
#----------------------------------------------
#----------------------------------------------
'inicioSubmissao'
=>
[
'required'
,
'date'
,
'after:yesterday
'
],
'inicioSubmissao'
=>
[
'required'
,
'date'
,
'after:
'
.
$
yesterday
],
'fimSubmissao'
=>
[
'required'
,
'date'
,
'after:fim_recurso'
,
'after:resultado_final'
],
'fimSubmissao'
=>
[
'required'
,
'date'
,
'after:fim_recurso'
,
'after:resultado_final'
],
'inicioRevisao'
=>
[
'required'
,
'date'
,
'after:yesterday
'
],
'inicioRevisao'
=>
[
'required'
,
'date'
,
'after:
'
.
$
yesterday
],
'fimRevisao'
=>
[
'required'
,
'date'
,
'after:inicioRevisao'
,
'before:fimSubmissao'
],
'fimRevisao'
=>
[
'required'
,
'date'
,
'after:inicioRevisao'
,
'before:fimSubmissao'
],
'inicio_recurso'
=>
[
'required'
,
'date'
,
'after:inicioRevisao'
],
'inicio_recurso'
=>
[
'required'
,
'date'
,
'after:inicioRevisao'
],
'fim_recurso'
=>
[
'required'
,
'date'
,
'after:fim_recurso'
],
'fim_recurso'
=>
[
'required'
,
'date'
,
'after:fim_recurso'
],
...
...
database/seeds/SubAreaSeeder.php
View file @
512f16ba
No preview for this file type
resources/lang/pt-BR/validation.php
View file @
512f16ba
...
@@ -12,7 +12,7 @@ return [
...
@@ -12,7 +12,7 @@ return [
*/
*/
'accepted'
=>
':Attribute deve ser aceito.'
,
'accepted'
=>
':Attribute deve ser aceito.'
,
'active_url'
=>
':Attribute não é uma URL válida.'
,
'active_url'
=>
':Attribute não é uma URL válida.'
,
'after'
=>
':Attribute deve ser uma data depois de '
,
'after'
=>
':Attribute deve ser uma data depois de
:date
'
,
'after_or_equal'
=>
':attribute deve ser uma data posterior ou igual a:date.'
,
'after_or_equal'
=>
':attribute deve ser uma data posterior ou igual a:date.'
,
'alpha'
=>
':Attribute deve conter somente letras.'
,
'alpha'
=>
':Attribute deve conter somente letras.'
,
'alpha_dash'
=>
':Attribute deve conter letras, números e traços.'
,
'alpha_dash'
=>
':Attribute deve conter letras, números e traços.'
,
...
...
resources/views/evento/criarEvento.blade.php
View file @
512f16ba
...
@@ -98,11 +98,21 @@
...
@@ -98,11 +98,21 @@
<div class="
col
-
sm
-
6
">
<div class="
col
-
sm
-
6
">
<label for="
inicioSubmissao
" class="
col
-
form
-
label
">{{ __('Início da Submissão*:') }}</label>
<label for="
inicioSubmissao
" class="
col
-
form
-
label
">{{ __('Início da Submissão*:') }}</label>
<input id="
inicioSubmissao
" type="
date
" class="
form
-
control
@
error
(
'inicioSubmissao'
)
is
-
invalid
@
enderror
" name="
inicioSubmissao
" value="
{{
old
(
'inicioSubmissao'
)
}}
" required autocomplete="
inicioSubmissao
" autofocus>
<input id="
inicioSubmissao
" type="
date
" class="
form
-
control
@
error
(
'inicio
Da
Submissao'
)
is
-
invalid
@
enderror
" name="
inicio
Da
Submissao
" value="
{{
old
(
'inicioSubmissao'
)
}}
" required autocomplete="
inicioSubmissao
" autofocus>
@error('inicioSubmissao')
@error('inicio
Da
Submissao')
<span class="
invalid
-
feedback
" role="
alert
">
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
. date('d/m/Y', strtotime(
$ontem
?? '')) . '.' }}</strong>
<strong>
@if (
$message
!= null)
@for (
$i
= 0;
$i
< 9;
$i
++)
@if (
$i
< 8)
{{ explode("
",
$message
)[
$i
] }}
@else
{{ date('d/m/Y', strtotime(explode("
",
$message
)[
$i
])) }}
@endif
@endfor
@endif
</strong>
</span>
</span>
@enderror
@enderror
</div>
</div>
...
@@ -112,7 +122,7 @@
...
@@ -112,7 +122,7 @@
@error('fimSubmissao')
@error('fimSubmissao')
<span class="
invalid
-
feedback
" role="
alert
">
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
. date('d/m/Y', strtotime(old('inicioSubmissao'))) . '.'
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@enderror
</div>
</div>
...
@@ -125,7 +135,7 @@
...
@@ -125,7 +135,7 @@
@error('inicioRevisao')
@error('inicioRevisao')
<span class="
invalid
-
feedback
" role="
alert
">
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
. date('d/m/Y', strtotime(
$ontem
?? '')) . '.'
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@enderror
</div>
</div>
...
@@ -135,7 +145,7 @@
...
@@ -135,7 +145,7 @@
@error('fimRevisao')
@error('fimRevisao')
<span class="
invalid
-
feedback
" role="
alert
">
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
. date('d/m/Y', strtotime( old('inicioRevisao') )) . '.'
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@enderror
</div>
</div>
...
@@ -148,7 +158,7 @@
...
@@ -148,7 +158,7 @@
@error('inicio_recurso')
@error('inicio_recurso')
<span class="
invalid
-
feedback
" role="
alert
">
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
. date('d/m/Y', strtotime(
$ontem
?? '')) . '.'
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@enderror
</div>
</div>
...
@@ -158,7 +168,7 @@
...
@@ -158,7 +168,7 @@
@error('fim_recurso')
@error('fim_recurso')
<span class="
invalid
-
feedback
" role="
alert
">
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
. date('d/m/Y', strtotime(
$ontem
?? '')) . '.'
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@enderror
</div>
</div>
...
@@ -170,7 +180,7 @@
...
@@ -170,7 +180,7 @@
@error('resultado_preliminar')
@error('resultado_preliminar')
<span class="
invalid
-
feedback
" role="
alert
">
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
. date('d/m/Y', strtotime(
$ontem
?? '')) . '.'
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@enderror
</div>
</div>
...
@@ -180,7 +190,7 @@
...
@@ -180,7 +190,7 @@
@error('resultado_final')
@error('resultado_final')
<span class="
invalid
-
feedback
" role="
alert
">
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
. date('d/m/Y', strtotime(
$ontem
?? '')) . '.'
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@enderror
</div>
</div>
...
...
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