def orgsignup(): orgform = OrganizationForm() if orgform.validate_on_submit(): neworg = Organization( name=orgform.name.data, types=orgform.types.data, description=orgform.description.data, category=orgform.category.data, ) neworg.save() flash("Congratulations, your organization has joined Charnate!") neworg.reload() #TODO RETURN ANOTHER TEMPLATE return render_template('orgform.html', form=orgform)
def education(): educationorgs = Organization.objects(category="Education") return render_template("education.html", educationorgs=educationorgs)
def corporations(): corporations = Organization.objects(types="Corporation") return render_template("corporations.html", corporations=corporations)
def other(): otherorgs = Organization.objects(category="Other") return render_template("other.html", otherorgs=otherorgs)
def cultural(): culturalorgs = Organization.objects(category="Cultural") return render_template("cultural.html", culturalorgs=culturalorgs)
def environment(): environmentorgs = Organization.objects(category="Environment") return render_template("environment.html", environmentorgs=environmentorgs)
def health(): healthorgs = Organization.objects(category="Health") return render_template("health.html", healthorgs=healthorgs)