【最新ニュース登録】不要な項目削除
All checks were successful
Deploy main / deploy (push) Successful in 25s

This commit is contained in:
你的名字 2025-12-23 18:32:34 +09:00
parent e192c74c33
commit 99d8dfec16

View File

@ -57,10 +57,10 @@
</div>
@endif
<div class="card">
{{-- ヘッダー:新規/削除 --}}
<div class="card-header d-flex align-items-center">
<div class="d-flex align-items-center">
<a href="{{ route('news_add') }}" class="btn btn-default mr-2">新規</a>
<button type="button" class="btn btn-default" id="delete_edit">削除</button>
</div>
@ -103,8 +103,6 @@
<th class="w-mode {{ $thClass('mode') }}">
<a href="{{ $urlFor('mode') }}" class="header-link">表示モード</a>
</th>
<th class="w-created">登録日時</th>
<th class="w-updated">更新日時</th>
</tr>
</thead>
<tbody>
@ -127,8 +125,6 @@
<td class="w-img one-line" title="{{ $r->image1_filename }}">{{ $r->image1_filename }}</td>
<td class="w-img one-line" title="{{ $r->image2_filename }}">{{ $r->image2_filename }}</td>
<td class="w-mode">{{ $modeLabel[$r->mode] ?? $r->mode }}</td>
<td class="w-created">{{ $r->created_at }}</td>
<td class="w-updated">{{ $r->updated_at }}</td>
</tr>
@empty
<tr>
@ -141,7 +137,7 @@
</form>
</div>
</div>
</div>
</section>
@ -232,4 +228,18 @@
})();
</script>
<style>
/* ===== 一覧データ部tbodyを白背景に固定 ===== */
.table-news tbody tr,
.table-news tbody td {
background-color: #ffffff !important;
}
/* 編集+チェック列は既存仕様を優先 */
.table-news tbody td[style*="#faebd7"] {
background-color: #faebd7 !important;
}
</style>
@endsection