Files
lubo_comment_query/resources/views/program/construct/batch_add.blade.php
2025-12-09 12:50:21 +08:00

64 lines
3.7 KiB
PHP

<html lang="zh">
<head>
<meta charset="UTF-8">
<title>录播节目批量导入 - 录播查询</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="{{ mix('/css/app.css') }}" rel="stylesheet"/>
</head>
<body class="bg-gray-50 dark:bg-gray-900 min-h-screen flex flex-col text-gray-900 dark:text-gray-100">
@include("common.header")
<main class="flex-grow container mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="max-w-3xl mx-auto">
<div class="md:flex md:items-center md:justify-between mb-8">
<h1 class="text-2xl font-bold text-gray-900 dark:text-white">
批量导入节目单
</h1>
<a href="{{ route("program.construct.list") }}" class="mt-4 md:mt-0 inline-flex items-center text-sm text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200">
<svg class="h-4 w-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"></path></svg>
返回列表
</a>
</div>
<div class="bg-white dark:bg-gray-800 shadow rounded-lg overflow-hidden">
<div class="px-6 py-4 bg-yellow-50 dark:bg-yellow-900/30 border-b border-yellow-100 dark:border-yellow-900/50">
<h3 class="text-sm font-medium text-yellow-800 dark:text-yellow-200">
使用说明
</h3>
<div class="mt-2 text-sm text-yellow-700 dark:text-yellow-300">
<p>请将整理好的节目单内容粘贴到下方文本框中。格式请参考既定规范(例如:时间轴 + 节目名)。</p>
</div>
</div>
<form class="p-6 space-y-6" action="" method="post" enctype="multipart/form-data">
@csrf
<div>
<label for="content" class="block text-sm font-medium text-gray-700 dark:text-gray-300">节目单内容</label>
<div class="mt-1">
<textarea id="content" name="content" rows="10" required class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md dark:bg-gray-700 dark:border-gray-600 dark:text-white font-mono" placeholder="00:00 节目A&#10;10:30 节目B...">{{ old('content') }}</textarea>
</div>
</div>
<div>
<label for="bvid" class="block text-sm font-medium text-gray-700 dark:text-gray-300">关联视频 BVID</label>
<input type="text" name="bvid" id="bvid" required value="{{ old('bvid') }}"
class="mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm py-2"
placeholder="BV...">
<p class="mt-1 text-xs text-gray-500 dark:text-gray-400">所有导入的节目将默认关联到此视频。</p>
</div>
@include("common.form_error")
<div class="flex items-center justify-end pt-4 border-t border-gray-200 dark:border-gray-700">
<button type="submit" class="inline-flex justify-center py-2 px-6 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
开始导入
</button>
</div>
</form>
</div>
</div>
</main>
@include("common.footer")
</body>
</html>