예제 #1
0
def home():
    form = auth.forms.AlertForm()
    cleaningcount = sanitation.get_count_remaining_tasks(config.cleaning)
    pestcount = sanitation.get_count_remaining_tasks(config.pest)
    suppliers = delivery.get_todays_suppliers()
    context = {"cleaningcount": cleaningcount,
               "pestcount": pestcount,
               "suppliers": suppliers}
    return render_template('landingpage.html', form=form, **context)
예제 #2
0
def orders():
    form = auth.forms.AlertForm()
    suppliers = delivery.get_suppliers()
    overview = delivery.get_overview()
    appliances = delivery.get_appliances()
    thermometers = delivery.get_thermometers()
    todays_suppliers = delivery.get_todays_suppliers()
    context = {"suppliers": suppliers,
            "overview": overview,
            "appliance": appliances,
            "todays_suppliers": todays_suppliers,
            "thermometers": thermometers}
    return render_template("orders.html", form=form, **context)