Esempio n. 1
0
def info():
    info = JobInfo.get_master_db()
    form = JobInfoForm(obj=info)
    if form.validate_on_submit():
        form.populate_obj(info)
        info.put()
        return redirect(url_for('about.admins.jobs.index'))
    return render_template(
        'about/admins/jobs/info.html',
        form=form
    )
Esempio n. 2
0
def get_jobs_info():
    from apps.about.models import JobInfo

    info = JobInfo.get_master_db().info
    return render_template("j_env/job_info.html", info=info)