-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathoptions.html
243 lines (218 loc) · 8.88 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>One-Click Trello</title>
<link rel="stylesheet" href="/css/bulma.min.css">
<link rel="stylesheet" href="/css/bulma-switch.min.css">
<link rel="stylesheet" href="/css/fontawesome/css/all.min.css">
<script src="/js/lib/jquery-3.2.1.min.js"></script>
<script src="/js/options.js"></script>
</head>
<body>
<nav class="navbar is-spaced is-light" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<div class="navbar-item">
<img src="/icons/icon256.png">
</div>
<div class="navbar-item">
<h1 class="title">
One-Click Trello
</h1>
</div>
</div>
<div class="navbar-end">
<div class="navbar-item">
<a class="button is-outlined" href="https://chrome.google.com/webstore/detail/one-click-trello/khhjgfllkgcfhhgocmiaknngnjncdbjm" target="_blank">
<span class="icon "><i class="fa-brands fa-chrome"></i></span>
<span>Chrome Web Store</span>
</a>
</div>
<div class="navbar-item">
<a class="button is-outlined" href="https://github.com/chrschorn/one-click-trello" target="_blank">
<span class="icon "><i class="fa-brands fa-github"></i></span>
<span>GitHub</span>
</a>
</div>
</div>
</nav>
<section id="optionsSection" class="section" style="display:none">
<div class="container is-max-desktop">
<div class="columns">
<div class="column">
<div class="block">
<h4 class="title is-4">
Card Settings
</h4>
<p class="subtitle">
Choose what happens when when you click on the extension icon or use the right-click menu
</p>
<div class="columns">
<div class="column">
<div class="field">
<label class="label">Target Board</label>
<div class="control">
<div class="select is-fullwidth">
<select id="boardSelect">
<option>Loading...</option>
</select>
</div>
</div>
</div>
</div>
<div class="column">
<div class="field">
<label class="label">Target List</label>
<div class="control">
<div class="select is-fullwidth">
<select id="listSelect">
<option>Loading...</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="field is-horizontal">
<div class="field-label is-normal">
<label class="label">Position</label>
</div>
<div class="field-body">
<div class="field">
<div class="control">
<div class="select is-fullwidth">
<select id="listPosition">
<option value="top">Top</option>
<option value="bottom">Bottom</option>
</select>
</div>
</div>
<p class="help">
Determines where new cards will show up with the list.
</p>
</div>
</div>
</div>
<div class="field is-horizontal">
<div class="field-label is-normal">
<label class="label">Task Title</label>
</div>
<div class="field-body">
<div class="field">
<div class="control">
<div class="select is-fullwidth">
<select id="cardTitle">
<option value="tabTitle">Tab Title</option>
<option value="selectedText">Selected Text</option>
</select>
</div>
</div>
<p class="help">
"Selected text" only works when using the right-click menu to create tasks.
</p>
</div>
</div>
</div>
<div class="field is-horizontal">
<div class="field-label is-normal mt-2">
<label class="label">Cover Image</label>
</div>
<div class="field-body">
<div class="field">
<div class="control">
<input id="includeCoverImage" type="checkbox" name="switchRoundedDefault" class="switch is-rounded" disabled>
<label for="includeCoverImage">Include cover image</label>
</div>
</div>
</div>
</div>
</div>
<div class="block pt-4">
<h4 class="title is-4">
Side Effects
</h4>
<p class="subtitle">
Clicking the extension button can also have the following side effects
</p>
<div class="field is-horizontal">
<div class="field-label is-normal mt-2">
<label class="label">Notifications</label>
</div>
<div class="field-body">
<div class="field">
<div class="control">
<input id="showNotification" type="checkbox" name="switchRoundedDefault" class="switch is-rounded">
<label for="showNotification">Show notification on card creation</label>
</div>
</div>
</div>
</div>
<div class="field is-horizontal">
<div class="field-label is-normal mt-2">
<label class="label">Tab</label>
</div>
<div class="field-body">
<div class="field">
<div class="control">
<input id="autoClose" type="checkbox" name="switchRoundedDefault" class="switch is-rounded">
<label for="autoClose">Close current tab on card creation</label>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="column is-one-quarter is-offset-1">
<article class="message is-info">
<div class="message-header">
<p>Problems, Suggestions?</p>
</div>
<div class="message-body">
Please submit feedback on the <a href="https://chrome.google.com/webstore/detail/one-click-trello/khhjgfllkgcfhhgocmiaknngnjncdbjm/support" target="_blank">Chrome web store</a> or on <a href="https://github.com/chrschorn/one-click-trello" target="_blank">GitHub</a>!
</div>
</article>
<article class="message is-link">
<div class="message-header">
<p>Tip Jar</p>
</div>
<div class="message-body has-text-centered">
<a class="button is-rounded is-link" href="https://www.paypal.com/donate/?hosted_button_id=C3YU73RKFVCHG">
<span class="icon"><i class="fa-solid fa-mug-hot"></i></span>
<span>Buy me a coffee</span>
</a>
</div>
</article>
</div>
</div>
</div>
</section>
<section id="logoutSection" class="section" style="display:none">
<div class="container is-max-desktop has-text-centered">
<button id="logout" class="button is-outlined">Logout</button>
</div>
</section>
<section id="loginSection" class="section" style="display:none">
<div class="container is-max-desktop">
<article class="message is-info">
<div class="message-header">
<p>Login Required</p>
</div>
<div class="message-body">
<div class="block">
Please login to Trello to use the extension. You're either logging in for the first time or your previous authentication has expired.
</div>
<div class="block">
<strong>Note:</strong> A new secure browser window will open in which you'll have to login to Trello. Afterwards, you'll be asked to grant permission to this extension to create cards on your behalf - in one click :) All data is either stored locally or in your browser's cloud-synced storage (if enabled by you). Please accept in order for this extension to work!
</div>
</div>
</article>
<div class="block has-text-centered">
<button id="login" class="button is-primary is-large js-modal-trigger" data-target="modal-js-example">
Login
</button>
</div>
</div>
</section>
</body>
</html>