Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
add more fields
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed Apr 4, 2019
1 parent c286d0e commit 6625da4
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 19 deletions.
38 changes: 32 additions & 6 deletions 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"
}
}
9 changes: 5 additions & 4 deletions public/stylesheets/style.css
Expand Up @@ -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 {
Expand Down Expand Up @@ -121,6 +121,7 @@ footer {
}

footer a {
color: #fff;
text-decoration: underline;
}

Expand Down
50 changes: 41 additions & 9 deletions views/index.pug
Expand Up @@ -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 <a href="https://webcompat.com">here</a>.

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") <strong>Steps to reproduce*</strong> - 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") <strong>Expected behavior*</strong> - What were you hoping/expecting the browser to do?
textarea(name="expected", required)
div(class="input-group")
label(for="actual") <strong>Actual behavior*</strong> - 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
Expand Down

0 comments on commit 6625da4

Please sign in to comment.