Skip to content
Permalink
Browse files
feature 3 now includes the old feature 4
New feature 4 task is to display stats.
  • Loading branch information
aa7401 committed Dec 18, 2021
1 parent 4545e22 commit f264d8c92b6d97e1c58d7eb531cdd1eb537b1c99
Showing 1 changed file with 17 additions and 5 deletions.
@@ -30,7 +30,7 @@ Students 1-3 should have completed the survey(s) but user 4 should have not atte
The home screen should be visible without needing to log in. If logged in the user should see a **New survey** link or button that takes them to the _New Survey_ screen. Here they can create a new survey by completing the form and supplying the following data:

1. The survey name.
2. A multiline description of the survey that accepts _markdown_ formatting.
2. A multiline description of the survey.

Although not part of the form, the following data should be inserted into the database:

@@ -47,7 +47,9 @@ Logged in users should see a **My surveys** link or button. This takes them to t
2. The date it was created (but not the time).
3. The number of questions in the survey (see below).

Next to each there should be an **Add question** link or button. This takes them to a screen where they can add a new question. Each question includes the following data:
Next to each there should be an **Edit** link or button. This takes them to a screen where they can add and remove survey questions.

On this screen there should be an **Add question** link or button that allows for a new question to be added. This will prompt for the following data:

1. The question title.
2. A multiline description of the question that accepts _markdown_ formatting.
@@ -57,13 +59,15 @@ Although not part of the form, the following data should be inserted into the da
1. The id of the survey the question should be added to.
2. The date and time the question was created.

As each question is added, its title should be displayed on the screen together with a **Remove** link or button. Clicking on this should remove the question from the screen.

## Feature 3

The _Homepage_ should show the names of all the surveys created in the app. Against each survey name should be the number of questions in the survey.
The home page should display a list of all the active surveys. If the user is logged in they should see a **Take survey** link or button but this should not be displayed of the user is not logged in or they have already taken the survey.

## Feature 4
Clicking this should take the user to the _Survey_ page. This is a single page that displays each question in the survey one after the other.

Next to each survey on the _Homepage_ should be a **Take survey** link or button. Clicking this should take the user to the _Survey_ page. This is a single page that displays each question in the survey one after the other.
At the top of the page the user should see the name of the survey and the description. If the description contains any markdown formatting this should be rendered as HTML.

For each question it displays:

@@ -75,6 +79,14 @@ At the bottom of the page there is a **Submit survey** button or link. This proc

If the user has completed a surveym the **Take survey** button should not be shown. Instead this should show the _average_ score the user awarded during the survey (see top of this page for values).

## Feature 4

When a user is logged in and viewing the **My surveys** page they should see a **Responses** link or button next to each survey. Clicking on this takes them to responses screen.

At the top of the screen they should see the title and description as well as the number of people who have takn the survey.

Under this, each question should be listed showing title, description and average score (see top of this page) as well as how many people chose each of the responses.

---

## Extras

0 comments on commit f264d8c

Please sign in to comment.