Permalink
Browse files

Working front page

  • Loading branch information...
1 parent bd65079 commit 8e49c5d7c1cdeb9f2c5eef88fd18567ea29f6cc5 Robert Rees committed Mar 25, 2012
Showing with 56 additions and 1 deletion.
  1. +3 −0 .gitignore
  2. +15 −0 app.py
  3. +5 −0 forms.py
  4. 0 graph.py
  5. +3 −1 requirements.txt
  6. 0 run.py
  7. +13 −0 templates/base.html
  8. +17 −0 templates/index.html
View
@@ -0,0 +1,3 @@
+.redcar
+ve
+*.pyc
View
15 app.py
@@ -0,0 +1,15 @@
+import uuid
+
+from flask import Flask, render_template, redirect, request
+
+import graph
+import forms
+
+app = Flask(__name__)
+
+@app.route('/')
+def home_page():
+ return render_template('index.html', form=forms.NewPlayer())
+
+if __name__ == '__main__':
+ app.run(debug = True)
View
@@ -0,0 +1,5 @@
+import wtforms
+
+class NewPlayer(wtforms.Form):
+ name = wtforms.TextField()
+ description = wtforms.TextAreaField()
View
No changes.
View
@@ -1 +1,3 @@
-flask
+flask
+neo4jrestclient > 1.6
+wtforms
View
0 run.py
No changes.
View
@@ -0,0 +1,13 @@
+<!doctype html>
+
+<html>
+ <head>
+ </head>
+
+ <body>
+ {% block content %}
+
+ {% endblock %}
+ </body>
+
+</html>
View
@@ -0,0 +1,17 @@
+{% extends 'base.html' %}
+
+{% block content %}
+
+<h1>Enter Crumbly Castle</h1>
+
+<form action="/player" method="POST">
+ <ul>
+ <li>{{form.name.label}}</li>
+ <li>{{form.name}}</li>
+ <li>{{form.description.label}}</li>
+ <li>{{form.description}}</li>
+ <li><button type="submit">Enter</button></li>
+ </ul>
+</form>
+
+{% endblock %}

0 comments on commit 8e49c5d

Please sign in to comment.