You've already forked lubo_comment_query
							
							公用表单错误,@disabled、@checked相关删除(无此功能)
This commit is contained in:
		
							
								
								
									
										5
									
								
								resources/views/common/form_error.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								resources/views/common/form_error.blade.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| @if($errors->any()) | ||||
|     @foreach ($errors->all() as $error) | ||||
|         <div class="bg-red-600 text-white">错误:{{ $error }}</div> | ||||
|     @endforeach | ||||
| @endif | ||||
| @@ -44,11 +44,7 @@ | ||||
|         补充说明 | ||||
|         <input class="form-input border-0 border-b-2 w-full" type="text" name="append" value="{{ old('append', $append->append) }}"> | ||||
|     </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> | ||||
|   | ||||
| @@ -17,11 +17,7 @@ | ||||
|         BVID | ||||
|         <input class="form-input border-0 border-b-2 w-full" type="text" name="bvid" required value="{{ old('bvid') }}"> | ||||
|     </label> | ||||
|     @if($errors->any()) | ||||
|         @foreach ($errors->all() as $error) | ||||
|             <div class="bg-red-600 text-white">错误:{{ $error }}</div> | ||||
|         @endforeach | ||||
|     @endif | ||||
|     @include("common.form_error") | ||||
|     @isset($message) | ||||
|         <div class="bg-red-600 text-white">提示:{{ $message }}</div> | ||||
|     @endisset | ||||
|   | ||||
| @@ -25,11 +25,7 @@ | ||||
|         是否结束维护 | ||||
|         <input class="form-checkbox" type="checkbox" name="status" value="1" @if(old("status", $program->status) == 1) checked @endif> | ||||
|     </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> | ||||
|   | ||||
| @@ -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> | ||||
|   | ||||
| @@ -20,13 +20,9 @@ | ||||
|     </label> | ||||
|     <label class="block my-4"> | ||||
|         记住密码 | ||||
|         <input class="form-checkbox" type="checkbox" name="remember" @checked(old("remember") == 1) value="1"> | ||||
|         <input class="form-checkbox" type="checkbox" name="remember" @if(old("remember") == 1) checked @endif value="1"> | ||||
|     </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" value="登录"> | ||||
|     </div> | ||||
|   | ||||
| @@ -22,11 +22,7 @@ | ||||
|         密码 | ||||
|         <input class="form-input border-0 border-b-2 w-full" minlength="5" type="password" name="password" value="{{ old("password") }}" placeholder="密码"> | ||||
|     </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" value="注册"> | ||||
|     </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user