Exemple #1
0
def feedback(id, n, e, m, l):
    form = FeedbackForm()
    if request.method == 'POST' and form.validate_on_submit():
        print("HERE")
        f = form.fd.data
        print("1")
        print(f)
        mongo.db.feedback.insert({'feedback': f})
        print("3")
        flash("Submitted Successully!")
    return render_template("Feedback.html",
                           i=id,
                           name=n,
                           email=e,
                           mob=m,
                           lang=l,
                           form=form)
Exemple #2
0
    def index(self):
        """
        Get feedback

        :return:
        """
        form = FeedbackForm()
        return self.render('feedback.html', form=form)