From 6625da426fa20aa50fde5c88c1566d9c60e6a1d4 Mon Sep 17 00:00:00 2001 From: Michael Kohler Date: Thu, 4 Apr 2019 21:18:03 +0200 Subject: [PATCH] add more fields --- field_config.json | 38 ++++++++++++++++++++++----- public/stylesheets/style.css | 9 ++++--- views/index.pug | 50 +++++++++++++++++++++++++++++------- 3 files changed, 78 insertions(+), 19 deletions(-) diff --git a/field_config.json b/field_config.json index 0b30840..9c28f39 100644 --- a/field_config.json +++ b/field_config.json @@ -1,16 +1,42 @@ { - "heading1": { + "fenix": { + "content": "**Fenix Version:** " + }, + "device": { + "content": "**Device:** " + }, + "android": { + "content": "**Android Version:** " + }, + "type": { + "content": "**Issue Type:** " + }, + "reproduce": { + "heading": true, + "content": "# Steps to Reproduce" + }, + "expected": { "heading": true, - "content": "# This is a test heading" + "content": "# Expected Behavior" }, - "test_field": { - "content": "**This is a test content:** " + "actual": { + "heading": true, + "content": "# Actual Behavior" + }, + "otherbrowser": { + "heading": true, + "content": "# Tried in other browser" }, - "test_field2": { - "content": "**This is a normal content..:** " + "upcomingfeature": { + "heading": true, + "content": "# Wish for an upcoming feature" }, "screenshot": { "image": true, "content": "" + }, + "github": { + "heading": true, + "content": "# GitHub Username" } } \ No newline at end of file diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index e31d7cd..f0add75 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -24,12 +24,12 @@ h1 { } a { - color: var(--link-color); - text-decoration: none; + color: #000; + text-decoration: underline; } -a:hover, a:visited { - color: var(--link-hover-color); +a:hover { + color: #003eaa; } header { @@ -121,6 +121,7 @@ footer { } footer a { + color: #fff; text-decoration: underline; } diff --git a/views/index.pug b/views/index.pug index 9220950..2e74ebd 100644 --- a/views/index.pug +++ b/views/index.pug @@ -16,21 +16,53 @@ block content p We're sorry. .form-container - h1 Some form... + h1 Report a Fenix bug + + p Did you find a Web Compatibility bug? The website you’re visiting has a bug in Firefox but not in another browser? File your bug here. form(action="/create", method="POST", enctype="multipart/form-data") div(class="input-group") - label(for="test") Test - input(type="text", name="heading1") + label(for="fenix") Fenix Version* + input(id="fenix", type="text", name="fenix", required) + div(class="input-group") + label(for="device") Device* + input(id="device", type="text", name="device", required) + div(class="input-group") + label(for="android") Android Version* + input(id="android", type="text", name="android", required) + div(class="input-group") + label(for="type") Issue Type* + select(id="type", name="type") + option(value="Crash") Crash + option(value="Language is not appearing properly") Language is not appearing properly + option(value="Non functional (Performance issues / slowness / loading)") Non functional (Performance issues / slowness / loading) + option(value="Functional (doesn’t behave as expected)") Functional (doesn’t behave as expected) + option(value="Android app related (bugs not inside the browser)") Android app related (bugs not inside the browser) + option(value="Other") Other + div(class="input-group") + label(for="reproduce") Steps to reproduce* - Write down everything you did immediately before you arrived at the bug as clearly as possible + textarea(name="reproduce", required) + div(class="input-group") + label(for="expected") Expected behavior* - What were you hoping/expecting the browser to do? + textarea(name="expected", required) + div(class="input-group") + label(for="actual") Actual behavior* - What was the actual result, what did the browser actually do? + textarea(name="actual", required) + div(class="input-group") + p Did you try this to another browser?* + label(for="otherbrowser-yes") Yes + input(id="otherbrowser-yes", name="otherbrowser", type="radio", value="yes") + label(for="otherbrowser-no") No + input(id="otherbrowser-no", name="otherbrowser", type="radio", value="no", checked) div(class="input-group") - label(for="test") Test - input(type="text", name="test_field") + label(for="screenshot") Add a screenshot of what you see + input(id="screenshot", type="file", name="screenshot") div(class="input-group") - label(for="test") Test - input(type="text", name="test_field2") + label(for="upcomingfeature") Is there a feature you would like to see in the upcoming Firefox for Android release? Let us know here! + textarea(name="reproduce") div(class="input-group") - label(for="test") Test - input(type="file", name="screenshot") + label(for="github") Your GitHub account name if you have one + input(id="github", type="text", name="github") button(type="submit") Create Issue footer