Compare commits

..

3 Commits

3 changed files with 11 additions and 8 deletions

View File

@ -16,16 +16,17 @@ class CreateContrattisTable extends Migration
Schema::create('contrattis', function (Blueprint $table) { Schema::create('contrattis', function (Blueprint $table) {
$table->id(); $table->id();
$table->timestamps(); $table->timestamps();
$table->string('numero', 100)->nullable()->default('N/D'); $table->string('numero', 100)->nullable();
$table->string('nome', 100)->nullable(); $table->string('nome', 100);
$table->date('datainizio')->nullable()->default(new DateTime()); $table->date('datainizio');
$table->date('datatermine')->nullable()->default(new DateTime()); $table->date('datatermine');
$table->string('fornitore', 100)->default('text'); $table->string('fornitore', 100)->default('text');
$table->string('tipo', 100)->default('utenze'); $table->string('tipo', 100)->default('utenze');
$table->decimal('importo', 5, 2)->nullable()->default(123.45); $table->decimal('importo', 5, 2);
$table->date('scadenzapagamento')->nullable()->default(new DateTime()); $table->date('scadenzapagamento');
$table->string('stato', 100)->default('attivo'); $table->string('stato', 100)->default('attivo');
$table->longText('note')->nullable(); $table->longText('note')->nullable();
$table->string('filename',255)->nullable();
}); });
} }

View File

@ -11,6 +11,8 @@ $(document).ready(function() {
}); });
}); });
$(".draggable").draggable();
var d = new Date(); var d = new Date();
var month = d.getMonth()+1; var month = d.getMonth()+1;

View File

@ -61,7 +61,7 @@
<!-- MODAL NEW --> <!-- MODAL NEW -->
<div class="modal fade " id="myModal" tabindex="-1" role="dialog" <div class="modal fade " id="myModal" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true"> aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document"> <div class="modal-dialog draggable" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h4 class="modal-title">Nuovo movimento</h4> <h4 class="modal-title">Nuovo movimento</h4>