ggdgsdbsdbbb / templates / new / webhook.html
40 lines · 35 sloc · 1.5 KB · acf8873d8ea8d46d14acc6993957982d945d2b29
Raw
1<!DOCTYPE html>
2<html>
3 <head>
4 @include '../layout/head.html'
5 </head>
6 <body>
7 @include '../layout/header.html'
8
9 <div class="content">
10 @include '../layout/repo_menu.html'
11
12 <a class="back-link" href="/@repo.user_name/@repo.name/settings/webhooks">← %webhook_back</a>
13
14 <h1 class="settings-title">%webhook_new</h1>
15
16 <form method="post" action="/@repo.user_name/@repo.name/settings/webhooks" class="webhook-form">
17 <div class="field">
18 <label>%webhook_url</label>
19 <input type="url" name="url" placeholder="https://example.com/hook" required>
20 </div>
21 <div class="field">
22 <label>%webhook_secret</label>
23 <input type="text" name="secret" autocomplete="off">
24 <p class="field-hint">%webhook_secret_hint</p>
25 </div>
26 <div class="field">
27 <label>%webhook_events</label>
28 <label class="checkbox"><input type="checkbox" name="event_push" checked> %webhook_event_push</label>
29 <label class="checkbox"><input type="checkbox" name="event_issue" checked> %webhook_event_issue</label>
30 <label class="checkbox"><input type="checkbox" name="event_pr" checked> %webhook_event_pr</label>
31 <label class="checkbox"><input type="checkbox" name="event_comment" checked> %webhook_event_comment</label>
32 <label class="checkbox"><input type="checkbox" name="event_release" checked> %webhook_event_release</label>
33 </div>
34 <button type="submit" class="settings-form__submit">%webhook_create</button>
35 </form>
36 </div>
37
38 @include '../layout/footer.html'
39 </body>
40</html>
41