Branch merge

This commit is contained in:
2015-02-01 23:10:54 +01:00
6 changed files with 13 additions and 13 deletions

View File

@@ -45,8 +45,8 @@ def index():
shots=shots)
@nodes.route("/create", methods=('GET', 'POST'))
def create():
@nodes.route("/add", methods=('GET', 'POST'))
def add():
form = NodeTypeForm()
if form.validate_on_submit():
@@ -59,4 +59,4 @@ def create():
db.session.commit()
return redirect(url_for('nodes.index'))
return render_template('nodes/create.html', form=form)
return render_template('nodes/add.html', form=form)

View File

@@ -53,8 +53,8 @@ def view(shot_id):
abort(404)
@shots.route("/create", methods=('GET', 'POST'))
def create():
@shots.route("/add", methods=('GET', 'POST'))
def add():
form = ShotForm()
if form.validate_on_submit():
@@ -72,7 +72,7 @@ def create():
db.session.add(shot)
db.session.commit()
return redirect('/')
return render_template('shots/create.html', form=form)
return render_template('shots/add.html', form=form)
@shots.route("/edit/<int:shot_id>", methods=('GET', 'POST'))