Compare commits

..

No commits in common. "0668026eb7fa02af36fabff34898cef066abe976" and "a827342a304bb4d30f37fda08a63eab04f8f8e21" have entirely different histories.

3 changed files with 8 additions and 11 deletions

View File

@ -16,17 +16,16 @@ 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(); $table->string('numero', 100)->nullable()->default('N/D');
$table->string('nome', 100); $table->string('nome', 100)->nullable();
$table->date('datainizio'); $table->date('datainizio')->nullable()->default(new DateTime());
$table->date('datatermine'); $table->date('datatermine')->nullable()->default(new DateTime());
$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); $table->decimal('importo', 5, 2)->nullable()->default(123.45);
$table->date('scadenzapagamento'); $table->date('scadenzapagamento')->nullable()->default(new DateTime());
$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,8 +11,6 @@ $(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

@ -59,9 +59,9 @@
</div> </div>
</div> </div>
<!-- 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 draggable" role="document"> <div class="modal-dialog" 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>