def configuration(): return render_template( 'script_creation.html', names=pretty_names, type_to_form={t: s(request.form) for t, s in type_to_form.items()}, type_to_name=type_to_name)
def scripts(): scheduling_form = SchedulingForm(request.form) scheduling_form.nodes.choices = Node.choices() scheduling_form.pools.choices = Pool.choices() scheduling_form.job.choices = Job.choices() return render_template( 'script_management.html', fields=script_public_properties, type_to_form={t: s(request.form) for t, s in type_to_form.items()}, names=pretty_names, scheduling_form=scheduling_form, scripts=Script.serialize())