Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bootstrap Icons を追加 #75

Open
wants to merge 1 commit into
base: main-2024
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function layout(c, title, body) {
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="/stylesheets/bundle.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
</head>
<body>
<nav class="navbar navbar-expand-md navbar-light bg-light">
Expand Down
6 changes: 3 additions & 3 deletions src/routes/schedules.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ app.get("/:scheduleId", ensureAuthenticated(), async (c) => {
href="/schedules/${schedule.scheduleId}/edit"
class="btn btn-primary"
>
この予定を編集する
この予定を編集する <i class="bi bi-pencil"></i>
</a>`
: ""}
<h3 class="my-3">出欠表</h3>
Expand Down Expand Up @@ -303,13 +303,13 @@ app.get("/:scheduleId/edit", ensureAuthenticated(), async (c) => {
<textarea name="candidates" class="form-control"></textarea>
</div>
<button type="submit" class="btn btn-primary">
以上の内容で予定を編集する
以上の内容で予定を編集する <i class="bi bi-pencil"></i>
</button>
</form>
<h3 class="my-3">危険な変更</h3>
<form method="post" action="/schedules/${schedule.scheduleId}/delete">
<button type="submit" class="btn btn-danger">
この予定を削除する
この予定を削除する <i class="bi bi-trash"></i>
</button>
</form>
`,
Expand Down