2024-12-27 12:00:54 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="ja">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link rel="stylesheet" href="/css/hyAdmin/common.css">
|
|
|
|
</head>
|
|
|
|
<%- include("../partials/head") %>
|
|
|
|
<body>
|
2025-01-03 12:46:33 +00:00
|
|
|
<%- include("../partials/admin/header") %>
|
2024-12-27 12:00:54 +00:00
|
|
|
<div class="header-spacer"></div>
|
|
|
|
<div class="main-content">
|
|
|
|
<h1>スケジュール編集</h1>
|
|
|
|
<form action="/hyAdmin/schedule/<%= schedule.id %>?_method=PUT" method="POST" class="admin-form">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="channel_id">チャンネル名:</label>
|
|
|
|
<select id="channel_id" name="channel_id" required>
|
|
|
|
<% channels.forEach(channel => { %>
|
|
|
|
<option value="<%= channel.id %>" <%= schedule.channel_id === channel.id ? "selected" : "" %>><%= channel.name %></option>
|
|
|
|
<% }) %>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="title">タイトル:</label>
|
|
|
|
<input type="text" id="title" name="title" value="<%= schedule.title %>" required>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="start_time">配信開始時刻:</label>
|
|
|
|
<input type="datetime-local" id="start_time" name="start_time" value="<%= dayjs(schedule.start_time).tz("Asia/Tokyo").format("YYYY-MM-DDTHH:mm") %>" required>
|
|
|
|
</div>
|
|
|
|
<div class="form-actions">
|
|
|
|
<button type="submit" class="btn btn-update">更新</button>
|
|
|
|
<a href="/hyAdmin/schedule" class="btn btn-back">キャンセル</a>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|