Commit 8a62e11f authored by GuilhermeGz's avatar GuilhermeGz
Browse files

Mudança na nota da avaliação de relatório, para que seja aceito números decimais

parent 5b579bc0
......@@ -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);
......
<?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()
{
//
}
}
......@@ -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: 60px;"
<input class="form-control" name="nota" type="number" step="0.01"
style="width: 70px;"
@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: 60px;"
<input class="form-control" name="nota" type="number" step="0.01"
style="width: 70px;"
@if($avaliacao->nota != null) value="{{$avaliacao->nota}}" @endif>
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment