Bug fixes
This commit is contained in:
parent
b6b8642496
commit
c4c52ac0af
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('responses', function (Blueprint $table) {
|
||||
$table->json('form_snapshot')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('responses', function (Blueprint $table) {
|
||||
$table->dropColumn('form_snapshot');
|
||||
});
|
||||
}
|
||||
};
|
|
@ -6,7 +6,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||
const optionDiv = document.createElement("div");
|
||||
optionDiv.className = "option";
|
||||
optionDiv.innerHTML = `
|
||||
<input type="text" class="form-control option-input" placeholder="New Option" />
|
||||
<input type="text" class="form-control option-input mb-1" placeholder="New Option" />
|
||||
<span class="delete-option" onclick="deleteOption(this)">✕</span>
|
||||
`;
|
||||
optionContainer.appendChild(optionDiv);
|
||||
|
|
Loading…
Reference in New Issue