Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
2 years ago
by
GuilhermeGz
Browse files
Options
Download
Email Patches
Plain Diff
Mudança na nota da avaliação de relatório, para que seja aceito números decimais
parent
5b579bc0
master
carl-branch
dependabot/composer/symfony/http-kernel-4.4.50
dependabot/npm_and_yarn/decode-uri-component-0.2.2
dependabot/npm_and_yarn/express-4.18.2
dependabot/npm_and_yarn/json5-and-json5-2.2.3
dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
dependabot/npm_and_yarn/minimist-and-mkdirp-1.2.8
dependabot/npm_and_yarn/qs-and-express-6.11.0
excluir_projeto_submetido
updates_mar
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/Http/Controllers/AvaliacaoRelatorioController.php
+1
-1
app/Http/Controllers/AvaliacaoRelatorioController.php
database/migrations/2022_08_30_155137_change_avaliacao_relatorios_nota_column_type.php
+30
-0
...0_155137_change_avaliacao_relatorios_nota_column_type.php
resources/views/avaliacaoRelatorio/listar.blade.php
+4
-4
resources/views/avaliacaoRelatorio/listar.blade.php
with
35 additions
and
5 deletions
+35
-5
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
);
...
...
This diff is collapsed.
Click to expand it.
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
()
{
//
}
}
This diff is collapsed.
Click to expand it.
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
>
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help