fix: remove unused content field for contact page
This commit is contained in:
parent
0a05fe76b5
commit
1e6cc6166c
3 changed files with 32 additions and 4 deletions
|
|
@ -74,7 +74,7 @@ enum StaticPageType: int
|
|||
self::we_commit => false,
|
||||
self::we_move => false,
|
||||
self::we_produce => false,
|
||||
self::we_listen => true,
|
||||
self::we_listen => false,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
use App\Enums\StaticPageType;
|
||||
use App\Models\StaticPage;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
if ($contactPage = StaticPage::query()->where('type', StaticPageType::we_listen)->firstOrFail()) {
|
||||
$contactPage->content = null;
|
||||
$contactPage->saveOrFail();
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
// Just go in the BO and fill the content field.
|
||||
}
|
||||
};
|
||||
|
|
@ -24,9 +24,6 @@
|
|||
</div>
|
||||
<div class="rounded-5 p-md-4" id="wrapper-listen-form">
|
||||
<div class="row m-md-0 p-md-4 mb-5 pb-5">
|
||||
{{-- <div class="col-12 col-lg-4 text-lg-start align-self-center">
|
||||
<h2 class="h2 fw-bold text-primary m-0">{{ $staticPageModel->title }}</h2>
|
||||
</div> --}}
|
||||
<div class="d-lg-none col-12 text-center">
|
||||
<a class="btn btn-outline-primary rounded-pill border-primary my-3 border shadow-none"
|
||||
href="{{ route('fo.hire.show') }}#on-se-retrouve">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue