diff --git a/series.py b/series.py index e87b7b0..ae22a43 100644 --- a/series.py +++ b/series.py @@ -56,6 +56,9 @@ def series(id): ### DDP: should this be request.form or request.values? alert="Success" series_form = SeriesForm(request.form) + if request.method == 'POST': + if 'move_button' in request.form: + print( 'maybe we are moving a book up or down in series, we pressed: ' + request.form['move_button'] ) if request.method == 'POST' and series_form.validate_on_submit(): id = request.form['id'] series = Series.query.get(id) diff --git a/templates/books_for_series.html b/templates/books_for_series.html index 96839cc..c72c4d3 100644 --- a/templates/books_for_series.html +++ b/templates/books_for_series.html @@ -1,3 +1,4 @@ +
+ + +