Exemplo n.º 1
0
def triage():
    form = Triage()
    if form.validate_on_submit():
        return redirect(
            url_for('.feedback',
                    ticket_type=PROBLEM_TICKET_TYPE,
                    severe=form.severe.data))
    return render_template('views/support/triage.html', form=form)
Exemplo n.º 2
0
def triage(ticket_type=PROBLEM_TICKET_TYPE):
    form = Triage()
    if form.validate_on_submit():
        return redirect(
            url_for('.feedback',
                    ticket_type=ticket_type,
                    severe=form.severe.data))
    return render_template('views/support/triage.html',
                           form=form,
                           page_title={
                               PROBLEM_TICKET_TYPE:
                               'Report a problem',
                               GENERAL_TICKET_TYPE:
                               'Contact GOV.UK Notify support',
                           }.get(ticket_type))