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
8a62e11f
Commit
8a62e11f
authored
Aug 30, 2022
by
GuilhermeGz
Browse files
Mudança na nota da avaliação de relatório, para que seja aceito números decimais
parent
5b579bc0
Changes
3
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/AvaliacaoRelatorioController.php
View file @
8a62e11f
...
...
@@ -65,7 +65,7 @@ class AvaliacaoRelatorioController extends Controller
public
function
criar
(
Request
$request
){
$validatedData
=
$request
->
validate
([
'nota'
=>
[
'required'
,
'integer'
,
],
'nota'
=>
[
'required'
],
'comentario'
=>
[
'required'
],
]);
$avaliacao
=
AvaliacaoRelatorio
::
find
(
$request
->
avaliacao_id
);
...
...
database/migrations/2022_08_30_155137_change_avaliacao_relatorios_nota_column_type.php
0 → 100644
View file @
8a62e11f
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
ChangeAvaliacaoRelatoriosNotaColumnType
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'avaliacao_relatorios'
,
function
(
Blueprint
$table
)
{
$table
->
float
(
'nota'
)
->
nullable
()
->
change
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
//
}
}
resources/views/avaliacaoRelatorio/listar.blade.php
View file @
8a62e11f
...
...
@@ -98,8 +98,8 @@
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;padding-right: 10px"
>
{{
__
(
'Nota: '
)
}}
</
label
>
<
input
class
=
"form-control"
name
=
"nota"
type
=
"number"
style
=
"width:
6
0px;"
<
input
class
=
"form-control"
name
=
"nota"
type
=
"number"
step
=
"0.01"
style
=
"width:
7
0px;"
@
if
(
$avaliacao
->
nota
!=
null
)
value
=
"
{
{$avaliacao->nota}
}
"
@
endif
>
</
div
>
</
div
>
...
...
@@ -183,8 +183,8 @@
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;padding-right: 10px"
>
{{
__
(
'Nota: '
)
}}
</
label
>
<
input
class
=
"form-control"
name
=
"nota"
type
=
"number"
style
=
"width:
6
0px;"
<
input
class
=
"form-control"
name
=
"nota"
type
=
"number"
step
=
"0.01"
style
=
"width:
7
0px;"
@
if
(
$avaliacao
->
nota
!=
null
)
value
=
"
{
{$avaliacao->nota}
}
"
@
endif
>
</
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