公用表单错误,@disabled、@checked相关删除(无此功能)

This commit is contained in:
2022-08-07 21:51:27 +08:00
parent b1124432c7
commit 50934228ef
7 changed files with 13 additions and 32 deletions

View File

@ -11,7 +11,7 @@
<input type="hidden" name="id" value="{{$program_video->id}}">
<label class="block my-2">
BVID
<input class="form-input border-0 border-b-2 w-full" @disabled($program_video->video_bvid) type="text" name="video_bvid" value="{{ old("video_bvid", $program_video->video_bvid) }}">
<input class="form-input border-0 border-b-2 w-full" @if($program_video->video_bvid) disabled @endif type="text" name="video_bvid" value="{{ old("video_bvid", $program_video->video_bvid) }}">
</label>
<label class="block my-2">
开始P数
@ -47,11 +47,7 @@
@endif
<input class="form-input border-0 border-b-2 w-full" type="file" name="stop_image">
</label>
@if($errors->any())
@foreach ($errors->all() as $error)
<div class="bg-red-600 text-white">错误:{{ $error }}</div>
@endforeach
@endif
@include("common.form_error")
<div class="block my-2 text-center">
<input class="px-6 py-2 inline-block rounded-full bg-cyan-600 text-white" type="submit">
</div>