Пример #1
0
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)
Пример #2
0
def education():
    educationorgs = Organization.objects(category="Education")
    return render_template("education.html", educationorgs=educationorgs)
Пример #3
0
def corporations():
    corporations = Organization.objects(types="Corporation")
    return render_template("corporations.html", corporations=corporations)
Пример #4
0
def other():
    otherorgs = Organization.objects(category="Other")
    return render_template("other.html", otherorgs=otherorgs)
Пример #5
0
def cultural():
    culturalorgs = Organization.objects(category="Cultural")
    return render_template("cultural.html", culturalorgs=culturalorgs)
Пример #6
0
def environment():
    environmentorgs = Organization.objects(category="Environment")
    return render_template("environment.html", environmentorgs=environmentorgs)
Пример #7
0
def health():
    healthorgs = Organization.objects(category="Health")
    return render_template("health.html", healthorgs=healthorgs)