Skip to content

Commit

Permalink
Auto stash before merge of "master" and "origin/master"
Browse files Browse the repository at this point in the history
  • Loading branch information
LEO-E-100 committed Jul 16, 2017
1 parent 87b1c7e commit 5032bb0
Show file tree
Hide file tree
Showing 10 changed files with 654 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/nhshd-service-api.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

485 changes: 485 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ url = "https://pypi.python.org/simple"
verify_ssl = true

[packages]
flask = "*"
requests = "*"
untangle = "*"
flask-cors = "*"
gunicorn = "*"
Flask = "*"
Flask-Cors = "*"
62 changes: 62 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ def display_thankyou():
def display_onlinereg():
return render_template('onlinereg.html')


@app.route('/feedback/<service_id>')
def show_feedback(service_id):
response = get_choices_service(service_id)
return render_template('ratings.html',
name=response['name'])

if __name__ == '__main__':
app.run(host='0.0.0.0', port=int(os.getenv('PORT', 5000)), debug=True)

53 changes: 53 additions & 0 deletions templates/ratings.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="en">

<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.4.3/css/bulma.css">
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
<link rel="stylesheet" href="style.css">
<meta charset="UTF-8">
<title>Feedback</title>
</head>

<body>
<div class='container has-text-centered'>

<div class='hero'>
<div class="hero-body">
<img src="http://nhshackday.com/assets/images/nhshd/header-logo2.png">
</div>
</div>
<div class='container'>
<h1 class='title'>NHS feedback</h1>

<p>How would you rate your service at {{name}} today?</p>

<div class='icons'>
<span class='icon is-large' id="1">
<i class = 'fa fa-star' onclick="fa fa-star"></i>
</span>

<span class='icon is-large' id="2">
<i class = 'fa fa-star'></i>
</span>

<span class='icon is-large' id="3">
<i class = 'fa fa-star'></i>
</span>

<span class='icon is-large' id="4">
<i class = 'fa fa-star'></i>
</span>

<span class='icon is-large' id="5">
<i class = 'fa fa-star'></i>
</span>
</div>

<button class='button is-primary' onclick=submit()>Submit</button>
</div>
</div>
</body>

</html>

0 comments on commit 5032bb0

Please sign in to comment.