sistemazione form per inserimento task/costi progetto e creazione model migration e controller RigaProgetto
This commit is contained in:
parent
70f75b901d
commit
4e5cd6bc29
10
app/Http/Controllers/RigaProgettoController.php
Normal file
10
app/Http/Controllers/RigaProgettoController.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RigaProgettoController extends Controller
|
||||
{
|
||||
//
|
||||
}
|
11
app/Models/RigaProgetto.php
Normal file
11
app/Models/RigaProgetto.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class RigaProgetto extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateRigaProgettosTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('riga_progettos', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('riga_progettos');
|
||||
}
|
||||
}
|
@ -93,14 +93,50 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<form method="POST">
|
||||
<!-- Form per task con jquery e aggiunta righe automatica -->
|
||||
<input type="text" name="desc" class="form-group" id="desc">
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-xs-10">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
Inserisci riga
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<form method="POST">
|
||||
<div class="row">
|
||||
@csrf
|
||||
<div class="col-xs-2">
|
||||
|
||||
<!-- Form per task con jquery e aggiunta righe automatica -->
|
||||
<label for="tdata" class="form-label">data:</label>
|
||||
<input type="date" name="tdata" class="form-control" id="tdata">
|
||||
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
|
||||
<!-- Form per task con jquery e aggiunta righe automatica -->
|
||||
<label for="desc" class="form-label">descrizione:</label>
|
||||
<input type="text" name="desc" class="form-control" id="desc">
|
||||
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
<label for="ore" class="form-label">ore lavoro:</label>
|
||||
<!-- Form per task con jquery e aggiunta righe automatica -->
|
||||
<input type="text" name="ore" class="form-control" id="ore">
|
||||
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
<label for="ore" class="form-label">prezzo:</label>
|
||||
<!-- Form per task con jquery e aggiunta righe automatica -->
|
||||
<input type="text" name="ore" class="form-control" id="ore">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.col-lg-12 -->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user