优化一键导入功能

This commit is contained in:
2022-08-08 09:18:06 +08:00
parent 30b38e3f4b
commit 2283f91b3f
3 changed files with 10 additions and 7 deletions

View File

@ -63,13 +63,7 @@
</table>
@auth("web")
@if(sizeof($video_pivots) === 0 && $comment)
<form action="{{ url(route("program.construct.batch_create")) }}" method="post" enctype="multipart/form-data">
<input type="hidden" value="{{ $video->bvid }}" name="bvid">
<textarea name="content" class="hidden">{{ $comment->content }}</textarea>
<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>
</form>
<a href="{{ url(route("program.construct.from_comment", ["comment"=>$comment->id])) }}" class="px-6 py-2 inline-block rounded-full bg-cyan-600 text-white">一键导入评论中的节目单</a>
@endif
@endauth
@include("common.footer")