def show_jobs(): jobs = Job.query(Job.is_public == True).order(-Job.created) return render_template( 'about/jobs.html', html_class='about_page', jobs=jobs )
def add(): form = JobForm() if request.method == 'POST' and form.validate_on_submit(): new_job = Job() form.populate_obj(new_job) new_job.put() return redirect(url_for('about.admins.jobs.index')) jobs = Job.query().order(-Job.created) return render_template( 'about/admins/jobs/add.html', jobs=jobs, form=form )
def index(): jobs = Job.query().order(-Job.created) return render_template( 'about/admins/jobs/index.html', jobs=jobs )