created bug report page

This commit is contained in:
Lynne Megido 2019-09-06 20:54:29 +10:00
parent c38f01b07a
commit 7015431687
3 changed files with 45 additions and 3 deletions

View File

@ -113,7 +113,7 @@ input.button, button.button {
background-color: #777;
}
.btn-large {
.btn-large, button.btn-large {
font-size: 1.6em;
}
@ -150,14 +150,15 @@ label.important {
font-weight: 300;
display: block;
}
input, select {
input, select, textarea {
font-size: 1.2em;
line-height: 1.4em;
border: 3px grey solid;
border-radius: none;
padding: 3px;
font-family: "Roboto", sans-serif;
}
input:focus, select:focus {
input:focus, select:focus, textarea:focus {
border: 3px mediumpurple solid;
}

37
templates/report_bug.html Normal file
View File

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>FediBooks</title>
{% include 'imports.html' %}
</head>
<body>
<div class="container centred">
<h1 class="thin centred">Report a bug</h1>
</div>
<div class="container centred">
<form method='POST'>
<label for="title" class="important">Bug title</label>
<p>A short, concise description of what happened.</p>
<input name="title" class="full-width" type="text" placeholder="I can't delete my bot">
<label for="description" class="important">Description</label>
<p>A more detailed description of what happened, including the steps you took that caused this issue to appear.</p>
<textarea name="description" class="full-width" placeholder="I clicked the delete bot button and clicked confirm, but the bot was still there afterwards."></textarea>
<label for="comments" class="important">Further comments</label>
<p>If you'd like to, you may add a comment here with any additional information.</p>
<textarea name="comments" class="full-width" placeholder="This started happening when I disabled replies on all my bots."></textarea>
<div class="container centred">
<a href="/" class="button btn-large btn-secondary"><i class="fas fa-times"></i> Cancel</a>
<button class="button btn-large btn-primary"><i class="fas fa-exclamation-circle"></i> Submit bug report</button>
</div>
</form>
</div>
{% include 'footer.html' %}
</body>
</html>

View File

@ -395,6 +395,10 @@ def do_login():
session['error'] = "Incorrect login information."
return redirect(url_for("show_login_page"), 303)
@app.route("/issue/bug")
def report_bug():
return render_template("report_bug.html")
@app.route("/img/bot_generic.png")
def img_bot_generic():
return send_file("static/bot_generic.png", mimetype="image/png")