-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.html
28 lines (25 loc) · 953 Bytes
/
setup.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
<html>
<head>
<title>Citysearch® Twitter Bot Setup</title>
</head>
<body>
<h1>Twitter Credentials</h1>
{% if credentials %}
<p>Current username: {{credentials.username}}</p>
<p><a href="/setup/clear">Clear credentials</a> (this turns off the twitterbot).</p>
{% else %}
<p>No twitter username stored yet.</p>
{% endif %}
<p></p><a href="/setup/bitly">Configure bit.ly (url shortening) credentials</a></p>
<h2>Change username</h2>
{% if error %}
<p class="error">{{error}}</p>
{% endif %}
<form method="POST" action="/setup">
<label for="username">Username:</label>
<input type="text" id="username" name="username" value="{{credentials.username}}"/>
<label for="password">Password:</label>
<input type="password" id="password" name="password" value="{{credentials.password}}"/>
<input type="submit" value="store"/>
</form>
</html>