-
Notifications
You must be signed in to change notification settings - Fork 1
/
options.html
64 lines (54 loc) · 2.68 KB
/
options.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title id="title">Slackbot Says Options</title>
<link rel="stylesheet" href="css/base.css" media="screen">
<link rel="stylesheet" href="css/options.css" media="screen">
</head>
<body>
<div id="options-page">
<div id="avatar">
<img src="img/slackbot.png" alt="Slackbot">
</div>
<div id="options">
<h1>Slackbot Says Options</h1>
<h2>Slackbot Url<span class="required">*</span></h2>
<form action="#" id="options-form" role="form"></form>
<h2>Favorite Channels</h2>
<form action="#" id="add-channel-form" role="form">
<div class="form-field form-field-channel">
<label class="form-label">Channel</label>
<input type="text" name="channel" id="channel" class="form-input form-input-prepended input-channel" placeholder="channel" />
<div class="form-prepend">#</div>
</div>
<div class="form-field form-field-submit">
<button type="submit" class="button button-primary add-channel">Add</button>
</div>
</form>
<ul id="channels"></ul>
</div>
</div>
<script id="optionsFormTemplate" type="text/template">
<div class="form-field form-field-slackbot-url">
<label class="form-label">Slackbot URL</label>
<input type="text" name="slackbotUrl" id="slackbotUrl" class="form-input input-slackbot-url" placeholder="Slackbot URL" value="<%= options.get('slackbotUrl') %>" />
<div class="form-hint"><a href="https://my.slack.com/services/new/slackbot" target="_blank">Setup a Slackbot integration</a> if you do not already have a Slackbot URL.</div>
</div>
</script>
<script id="channelsTemplate" type="text/template">
<% channels.each(function(channel, i) { %>
<li>
<span class="name">#<%= channel.get('name') %></span>
<a href="#" class="remove-channel" data-channel-name="<%= channel.get('name') %>">×</a>
</li>
<% }) %>
</script>
<script src="js/analytics.js"></script>
<script src="js/vendor/jquery.js"></script>
<script src="js/vendor/underscore.js"></script>
<script src="js/vendor/backbone.js"></script>
<script src="js/models.js"></script>
<script src="js/options.js"></script>
</body>
</html>